Skip to content

Instantly share code, notes, and snippets.

@rohantmp
Last active September 7, 2021 14:19
Show Gist options
  • Save rohantmp/b952da394e03bdf5422b900626d91f6a to your computer and use it in GitHub Desktop.
Save rohantmp/b952da394e03bdf5422b900626d91f6a to your computer and use it in GitHub Desktop.
lsmcli for hpe

Setup

Find appropriate rpm for your architecture here: https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX-d5125e2bff7d4e92a1b0fcebc6

$ sudo yum install -y libstoragemgmt libstoragemgmt-hpsa-plugin;
$ sudo yum install -y http://downloads.linux.hpe.com/SDR/repo/spp/RedHat/8/x86_64/current/ssacli-4.21-7.0.x86_64.rpm
$ export LSMCLI_URI=hpsa://?ssacli=$(which ssacli)

Please share the output from the following lsmcli commands:

List disks:

$ sudo lsmcli list --type=DISKS                                                                                                                                                   
ID                 | Name                       | Type | Size | Status | System ID      | SCSI VPD 0x83 | Disk Paths | Revolutions Per Minute | Link Type                                     
---------------------------------------------------------------------------------------------------------------------------------------------------------
BTHV603000TL400NGN | ATA     MK0400GEYKD 1I:1:2 | SSD  | 0    | OK     | PDNNK0BRH571XZ |               |            | Non-Rotating Medium    | PATA/SATA
17V3K9U7F1EA       | ATA     MB1000GDUNU 1I:1:1 | SATA | 0    | OK     | PDNNK0BRH571XZ |               |            | 7200                   | PATA/SATA

List systems and note the ID (in this case it's PDNNK0BRH571XZ):

$ lsmcli list --type=SYSTEMS                 
ID             | Name                                 | Status | Info                      | FW Ver | Mode    | Read Cache Percentage
-------------------------------------------------------------------------------------------------------------------------------------
PDNNK0BRH571XZ | Smart HBA H240 in Slot 1 (RAID Mode) | OK     |  "Controller Status"=[OK] | 4.52-0 | HW RAID | -1

Use the id from the previous step to list capablities for each system:

$ sudo lsmcli capabilities --sys=PDNNK0BRH571XZ   
--------------------------------------------------------------
BATTERIES                                        | SUPPORTED  
DISKS                                            | SUPPORTED  
DISK_LOCATION                                    | SUPPORTED  
DISK_VPD83_GET                                   | SUPPORTED  
POOL_MEMBER_INFO                                 | SUPPORTED  
SYS_FW_VERSION_GET                               | SUPPORTED  
SYS_MODE_GET                                     | SUPPORTED  
VOLUMES                                          | SUPPORTED  
VOLUME_CACHE_INFO                                | SUPPORTED  
VOLUME_DELETE                                    | SUPPORTED  
VOLUME_ENABLE                                    | SUPPORTED  
VOLUME_LED                                       | SUPPORTED             
VOLUME_PHYSICAL_DISK_CACHE_UPDATE                | SUPPORTED      
VOLUME_PHYSICAL_DISK_CACHE_UPDATE_SYSTEM_LEVEL   | SUPPORTED  
VOLUME_RAID_CREATE                               | SUPPORTED  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment