Contributor
Contributor

Using HP SSACLI commands via powercli

HI all

I am trying to create a script to extract the controller configuration info for an esx host.

to run if SSH'd onto the Host  i would type the following ...

# esxcli ssacli cmd -q "controller slot=0 show config detail"

When trying to run in a script using powercli, i have got as far as creating a variable for the esxcli commands to be run against a  host .. so for example i can run the following command and it will work ...

# $esxcli.network.nic.list.Invoke() ......... and it will return a list of all the NIC's installed int he Host

Can anyone advise the syntax to use to be able to query the storage controller via powercli ?

Thanks !

0 Kudos
3 Replies
Leadership
Leadership

Afaik, this ssacli is an HP Smart Storage extension.

Perhaps you better ask on a HP forum?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Leadership
Leadership

Have you seen Re: PowerCli to get HBA Firmware details


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Contributor
Contributor

$esxcli = Get-EsxCli -VMHost MyEsx

$esxcli.ssacli.cmd("controller slot=0 show config detail")

this one worked for me on my esxi 6.5 host.

/s/Harshvardhan Gupta
0 Kudos