Example scripts, Example 1, Example scripts 15-6 – HP NetRAID-4M Controller User Manual
Page 316: Example 1 15-6

15-6
Command Line Interface User’s Guide
Example Scripts
This section provides example scripts that you may find useful or
that you can adapt for your work environment.
Example 1
The script in this example is the get configuration script, which is
supplied with the controller software in a file named getcfg.hpn. The
script comprises all CLI commands that display CLI information.
See the Command Line Interface Reference Guide for information on
each command. The script produces two output files: cfg.log and
cfg.str.
getcfg.hpn
logfile start cfg.log
controller list
controller details
controller show channels
controller show automatic_failover
controller show container_verify
task list
container list /full
container show failover
disk list
disk show smart
disk show smart /view_changeable
disk show space
disk show partition
disk_set list /members
enclosure list /full