User's Manual

218 Working With CLI Command Results
SUSE
®
Linux Enterprise Server terminal. To display command output with
control over scrolling, type the CLI command and append the pipe symbol
followed by more. For example, type:
omreport system summary | more
or
omreport servermodule summary | more
The multiscreen system summary displays the first screen. When you want to
see the next screen of command output, press the spacebar.
Writing Command Output to a File
When redirecting command results to a file, you can specify a filename (and
a directory path if necessary) to which you want the command results to be
written. When specifying the path to which you want your file to be written,
use the appropriate syntax for your operating system.
You can save command results in two ways. You can overwrite any file that has
the same name as the output file you specify, or you can keep adding results of
commands to a file of the same name.
Saving Command Results to a File That Can Be Overwritten
Use the -outc option when you want to overwrite data stored in previously
written files. For example, at 11:00 A.M. you capture fan probe RPM readings
for fan probe 0 on your system and write the results to a file called fans.txt.
You type:
omreport chassis fans index=0 -outc fans.txt
or
omreport mainsystem fans index=0 -outc fans.txt
Partial results written to the file are:
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