Mac用のRAIDドライブとして定評のあるPROMISE Pegasusですが、スクリプトを用いて、ステータスを監視したりしたい場合があります。




server001:~ user$ promiseutil
Promise Utility
Version: 3.18.0000.36 Build Date: Apr 21, 2014

List available RAID HBAs and Subsystems
Type # Model Alias WWN Seq
hba 1 * Pegasus R6 xxxx-xxxx-xxxx-xxxx 1
hba 2 Pegasus R6 xxxx-xxxx-xxxx-xxxx 2

Totally 2 HBA(s) and 0 Subsystem(s)

The row with ‘*’ sign refers the current working HBA/Subsystem path
To change the current HBA/Subsystem path, you may use the following command:

spath -a chgpath -t hba|subsys -p .

Type help or ? to display all the available commands

cliib> ?
Commands are designed in the following format:

The following commands are supported:

aboutView utility information.
arrayView or edit array information. Create, edit or delete a new or existing array. Create, edit or delete logical drives in an existing array. To physically locate an array in an enclosure. Accept an incomplete array condition.
batteryView battery information or to recondition a battery.
bbmView or clear the BBM defect list of the specified configured physical drive.
bgaView status of all current background activities. Enable or disable relevant background activities. Modify the background task rate for each of the background tasks.
buzzView buzzer status, enable/disable and turn on/off buzzer.
checktableView logical drive error tables.
cloneView logical drive clone status and progress. Start, stop a clone.
configFor express or automatic configuration. For advanced configuration please see the ‘array’ command.
ctrlView or edit controller information and settings.
dateView or edit system time.
enclosureView or edit enclosure and SEP information and settings. Locate an enclosure via LEDs.
eventView or clear events logs
exportExport files to remote tftp host.
factorydefaultsRestore settings to factory defaults.
initView logical drive initialization status and progress. Start, stop, pause or resume an initialization or a quick initialization.
logdrvView or edit logical drive information and settings. Locate a logical drive via LEDs.
migrateStart and monitor disk array migration process.
mpView media patrol status and progress. Start, stop, pause, or resume media patrol.
pdmView PDM status and progress. Start, stop, pause, or resume PDM process.
phydrvView or edit physical drive information and settings. Locate a physical drive via LEDs.
ptiflashUpdate system software and firmware through local host.
rcView redundancy check status and progress. Start, stop, pause or resume redundancy check.
rbView rebuild status and progress. Start, stop, pause, or resume a rebuild process.
scView spare check status. Start spare check.
smartS.M.A.R.T diagnostic for physical drives.
spareCreate or modify hot spare drives.
spathDiscover and change subsystem path.
statsView or reset statistics.
subsysView or edit subsystem information and settings.
syncView logical drive synchronization status and progress.
topologyView SAS topology, the physical connections and device information. For products that support multiple enclosures only.
transitView transition status and progress. Start, stop, pause, or resume a transition process.
helpWhen used alone will display this menu. When used in conjunction with a command (e.g.: help array) it will display help information for that particular command.
?This can be used in place of the help command or optionally can be used as a switch for a command such as array -? to provide command usage



Not all extended keys are supported. However, BACKSPACE and the left and
right arrow keys can be used for command line editing. In addition, the up
and down arrow keys will allow scrolling through the command history buffer.

If context specific help is needed, each command has a -h option that will
provide help for that command. It is also possible to use the format
HELP to get context sensitive help. Each command also has a -? option
to provide usage of the command.

Each command when used alone, such as “array” will display a summary of
relevant information. If more information is desired, the -v verbose mode can
be used. This will provide information for all relevant aspects of that

Usage terminology is as follows:
[square braces] depict an optional switch
depict user input

Type ” | more” at the end of each command, to display info page by page.