hpssacli

Show configuration:
/opt/hp/hpssacli/bin/hpssacli ctrl all show config

Controller status
/opt/hp/hpssacli/bin/hpssacli ctrl all show status

Show detailed controller information for all controllers
/opt/hp/hpssacli/bin/hpssacli ctrl all show detail

Show detailed controller information for controller in slot 0
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail

Rescan for New Devices
/opt/hp/hpssacli/bin/hpssacli rescan

Physical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status

Show detailed physical disk information
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail

Logical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status

View Detailed Logical Drive Status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show

Create New RAID 0 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

Create New RAID 1 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

Create New RAID 5 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

Delete Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 delete

Add New Physical Drive to Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

Add Spare Disks
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7

Enable Drive Write Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=enable

Disable Drive Write Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=disable

Erase Physical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd 2I:1:6 modify erase

Turn on Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=on

Turn off Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=off

Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify cacheratio=100/0

Enable smart array write cache when no battery is present (No-Battery Write Cache option)
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify nbwc=enable

Disable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

Enable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

Enable SSD Smart Path
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=enable

Disable SSD Smart Path
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=disable

 

Running ADU report without hpacucli

cd /opt/hp/hpssaducli/bin
[test]:/opt/hp/hpssaducli/bin # ls
hpssaducli hpssaduesxi upgrade.txt
[test]:/opt/hp/hpssaducli/bin # ./hpssaducli -f /tmp/adu-report.zip
HP Smart Storage Diagnostics 1.60.17.0

Posted in HP

StorEdge A1000 CLI commands

A1000: Basic checks/commands

/usr/lib/osa/bin/lad                                # Lists all RAID devices connected to the system
c2t0d0 1T04359725 LUNS: 0 1

/usr/lib/osa/bin/healthck <c2t0d0>                  # General check of selected device
Health Check Summary Information

mya1000_001:              Failed Battery                  # <– Failing battery
mya1000_001:              Dead LUN at Drive [2,0]         # <– Disk in bad state

healthck succeeded!

/usr/lib/osa/bin/raidutil -c <c2t0d0>               # Generic information about the device
LUNs found on c2t0d0.
LUN 0    RAID 0    103407 MB
LUN 1    RAID 0    103407 MB

raidutil succeeded!

/usr/lib/osa/bin/raidutil -c <c2t0d0> -i            # Detailed information
LUNs found on c2t0d0.
LUN 0    RAID 0    103407 MB
LUN 1    RAID 0    103407 MB

Vendor ID         Symbios
ProductID         StorEDGE A1000
Product Revision  0301
Boot Level        03.01.02.33
Boot Level Date   06/16/99
Firmware Level    03.01.02.35
Firmware Date     08/12/99
raidutil succeeded!

/usr/lib/osa/bin/raidutil -c <c2t0d0> -B             # Information about battery life
LUNs found on c2t0d0.
LUN 0    RAID 0    103407 MB
LUN 1    RAID 0    103407 MB
Battery age is between 810 days and 900 days.

raidutil succeeded!

# Battery age:
#         Between 630 and 720 days – near expiration
#         More than 720 días – Expired
# In any of two previous cases battery should be replaced

/usr/lib/osa/bin/raidutil -c <c2t0d0> -R             # Reset battery life counter
# RUN ONLY IF BATTERY HAS BEEN REPLACED!!!

/usr/lib/osa/bin/drivutil -I <c2t0d0>                # Information about LUNs

Group Information for mya1000_001

Group         No. of    RAID       No. of       Total       Remaining
LUNs      Level      Drives       Space(MB)   Space(MB)

1              1          0           6         103407             0
2              1          0           6         103407             0

drivutil succeeded!

/usr/lib/osa/bin/drivutil -i <c2t0d0>                # Information about each of the drives

Drive Information for mya1000_001

Location  Capacity   Status         Vendor  Product          Firmware     Serial
(MB)                              ID             Version      Number
[1,0]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1BM1N00
[2,0]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT0ZW4E00
[1,1]     17274      Optimal        SEAGATE ST318305LSUN18G  0340         3JKP6AD900
[2,1]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT19FG200
[1,2]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1BFZP00
[2,2]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1C09X00
[1,3]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1CC6T00
[2,3]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1BSBJ00
[1,4]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1BHY800
[2,4]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1CDN300
[1,5]     17274      Optimal        IBM     DDYST1835SUN18G  S94N         00391G1084
[2,5]     17274      Optimal        SEAGATE ST318404LSUN18G  4207         3BT1C5TT00

drivutil succeeded!

/usr/lib/osa/bin/rm6                                # RAID MANAGER Graphic interface

Solaris Disk information

format < /dev/null

prtdiag –v

iostat -En

metastat –t

metadb -i

zpool status -v

zpool history

zfs get all

prtconf -v

 

(for m-class systems)

To determine disk locations on XSCF run command showhardconf