HP XP P9000 RAID Manager Reference Guide (T1610-96061, January 2014)

If the STDIN device does not have appropriate mirror description (MU#), the target device is
excepted as a comment as shown below:# ERROR [INVALID MUN (2 < 1)]
/dev/rdsk/c24t0d3 SER = 61456 LDEV = 195 [ OPEN-3 ]
If the STDIN device is mixed among the storage systems of differential mirror control, the target
device is excepted as a comment as shown below:# ERROR [MIXING RAID TYPE]
/dev/rdsk/c24t0d3 SER = 61456 LDEV = 195 [ OPEN-3 ]
rmawk
The rmawk command is a scriptable command for associating with the pair operation commands
and raidcom commands.
This command provides basically the following three functions:
Outputs by filtering STDIN with the specified conditions.
Command | rmawk @1-eq:PAIR -a @2-ne:0
Performs the command with the variable parameter specified by interpreting STDIN with the
specified conditions.
Command | rmawk @3-eq:TAR exe="Command line @1"
Tests by interpreting the output command with the specified conditions or waits until the
conditions become TRUE, by performing the specified command.
rmawk exe="Command line" @2-eq:PAIR -o @2-eq:PSUS
rmawk exe="Command line" @2-eq:COPY timeout=300
Syntax
/HORCM/usr/bin/rmawk [-h | exe="" | sys="" | timeout=value | interval=value | -BL | -AT |
-EC[VAL] | @variable operators ]
Options and parameters
DescriptionOption
No option displays Help/Usage.No argument
or
-h
Specifies the command line to be performed when the result of the specified formula and the
conditions are TRUE. The testing/waiting specifies the command to be its target.
exe="command_line"
"@variable" with the field variables of STDIN can be included in the command line.
Example:
exe="raidcfg -a qry -o hgrp -pport @1"
exe="raidcfg -a reg -o hgrp -pport @1-@2 -pname @3
"exe="type map.txt | rmawk @@L-eq:@L exe=\"raidcfg -a map -o
snap -pname @1 -pldev @5 @@1\""
Specifies printing (with Line Feed) when the result of the specified formula and the conditions are
TRUE.
exe="print …. "
"@variable" with the field variables of STDIN can be included in the command line. When
"@variable" is specified as "@C#/C#*", the variable is interpreted as character string. When
"@variable" is specified as "@C#?/C#+/L/C/R", the variable is interpreted as integer.
The printing range is from "print" to the end including spaces.
Example:
exe="print PORT=@1 LDEV=@3"
exe="print PORT=@1 LDEV=@3 Total CAP = @4+"
Specifies printing (without Line Feed) when the result of the specified formula and the conditions
are TRUE.
exe="printn…. "
rmawk 125