CLI Guide
Append command results to an existing file
Use the -outa option when you want to append new command results to data stored in a previously written file. For example, at 11:00
A.M. you capture fan probe RPM readings for fan probe 0 on the system and write the results to a file called fans.txt. To compare these
results with output for the same probe obtained four hours later, you can use the
-outa command to append the new output to fans.txt.
Type:
omreport chassis fans index=0 -outa fans.txt
or
omreport mainsystem fans index=0 -outa fans.txt
Fans.txt now reads as follows:
Table 229. Append command results to an existing file
Index : 0
Status : OK
Probe Name : System Board Fan 1 RPM
Reading : 2380RPM
Minimum Warning
Threshold
: 600RPM
Maximum Warning
Threshold
: 5700RPM
Minimum Failure
Threshold
: 500RPM
Maximum Failure
Threshold
: 6000RPM
Index : 0
Status : OK
Probe Name : System Board Fan 1 RPM
Reading : 3622RPM
Minimum Warning
Threshold
: 900RPM
Maximum Warning
Threshold
: 3500RPM
Minimum Failure
Threshold
: 500RPM
Maximum Failure
Threshold
: 6000RPM
You can use a text editor to insert the time that each block of data was captured. In comparing the two snapshots for fan probe 0, you
can see that the second report shows several changes. The reading of fan RPM has increased by 621 RPM but is still within normal range.
Someone has raised the minimum warning threshold by 200 RPM and has decreased the maximum warning threshold by 2000 RPM.
Selecting A Format For The CLI Command Output
You can specify a format for the CLI command results. The format determines how the command output is displayed. If the command
results are directed to a file, the format is captured by the file to which you write the command results.
The available formats include:
• List (lst)
• Semicolon-separated values (ssv)
Working With CLI Command Results
179