VMware Cloud Community
BKFrancescoB
Contributor
Contributor
Jump to solution

HP SSA CLI utility - Installed but "command not found"

Hi, I rarely use esxi shell, so I'm sure it's a noob question, sorry Smiley Happy .

I want to add some disks to my array (DL380 Gen8 - P420i smart array). In the past I managed it through the Array Configuration Utility by rebooting the host. Now I'm aware of the HPSSACLI utility that lets me do the job online.
My esxi image is HPE customized (https://my.vmware.com/web/vmware/details?downloadGroup=OEM-ESXI55U3B-HPE&productId=353) and from my readings what is needed to run the utility should already be installed. I queried for .VIBs and I got:

~ # esxcli software vib list |  grep 'hpssacli\|scsi-hpvsa'
hpssacli                       2.40.13.0-5.5.0.1198611                HPE              PartnerSupported  2016-05-13
scsi-hpvsa                     5.5.0.100-1OEM.550.0.0.1331820         Hewlett-Packard  PartnerSupported  2016-05-13


If I go to /opt/hp/hpssacli/bin/ and I type hpssacli I get:

/opt/hp/hpssacli/bin # hpssacli
-sh: hpssacli: not found

What am I missing? Smiley Happy Thank you. Francesco

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

Looks like you have to specify it by full path:  /opt/etc/etc/hpssacli

View solution in original post

0 Kudos
16 Replies
daphnissov
Immortal
Immortal
Jump to solution

Is hpssacli in the bin directory?

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

in the bin directory I have:

/opt/hp/hpssacli/bin # ls

hpssacli      hpssacli_esx

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

ls -lah in /opt/hp/hpssacli/bin and provide output.

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

/opt/hp/hpssacli/bin # ls -lah

total 16300

drwxr-xr-x    1 root     root         512 Jan  5 11:44 .

drwxr-xr-x    1 root     root         512 Jan  5 11:44 ..

-r-xr-xr-x    1 root     root       15.9M Nov  4  2015 hpssacli

-r-xr-xr-x    1 root     root         335 Nov  4  2015 hpssacli_esx

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

And if you're in that directory you cannot execute:  hpssacli --help   ??

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

Exactly.

/opt/hp/hpssacli/bin # hpssacli --help

-sh: hpssacli: not found

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

What about .hpssacli --help  (leading dot)

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

It's the same:

/opt/hp/hpssacli/bin # .hpssacli

-sh: .hpssacli: not found

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

I forgot to say that I have the same behavior on the second host too.

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Looks like you have to specify it by full path:  /opt/etc/etc/hpssacli

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

Here we go. It works. It neither can be run in interactive mode:

~ # /opt/hp/hpssacli/bin/hpssacli

   ERROR: This application cannot be run in interactive mode under this environment.

It works only with full path and full command specified like:

~ # /opt/hp/hpssacli/bin/hpssacli -h

CLI Syntax

   A typical HPSSACLI command line consists of three parts: etc etc etc

0 Kudos
BKFrancescoB
Contributor
Contributor
Jump to solution

Thank you Smiley Happy

0 Kudos
MBreidenbach0
Hot Shot
Hot Shot
Jump to solution

If you are in that directory ./hpssacli shoud work (thats DOT SLASH hpssacli)

BKFrancescoB
Contributor
Contributor
Jump to solution

Yes, I confirm that either in that way it works! Thanks to you too Smiley Happy.

If possible, to avoid opening another discussion, do you know if using hpssacli is supported also for array expansion when using StoreVirtual VSA as storage (you know, the HP software defined storage solution)? I'd want to use it to add some disks to the host arrays on which there is a two nodes StoreVirtual VSA cluster. Or HP VSA requires the VSA VM to be powered off before adding physical disks to the underlying storage?

Francesco

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

I don't know about that one specifically (maybe MBeidenbach0 does), but my personal thought would be to err on the side of caution and do it with the VSA powered down. In my experience with other hosts and storage solutions, an online array expansion can produce some instability and even PSODs. So unless you can test it in a dev environment to know for sure, I wouldn't risk it. Just my personal opinion there.

BKFrancescoB
Contributor
Contributor
Jump to solution

Thank you for the advice. I'm performing the expansion offline Smiley Happy

Bye,

Francesco

0 Kudos