Redirecting command output – HP NonStop G-Series User Manual
Page 36
![background image](/manuals/397027/36/background.png)
Measure Command Interface (MEASCOM)
Measure User’s Guide — 520560-003
2 -8
Redirecting Command Output
Redirecting Command Output
You can redirect command output to save a Measure report, plot, or INFO command
display in a file:
•
To redirect the output from one MEASCOM command, specify the OUT
filename
option immediately after the command, on the same line and before any
arguments. For example:
4+ LIST /OUT $PERF.DATA.MYVOL/ CPU 1, FROM 12:30, TO 12:45
•
To redirect the output of multiple MEASCOM commands, enter the OUT
filename
command. The file named in this command will contain the prompts
and MEASCOM commands as well as the command output. For example:
6+ OUT $PERF.DATA.MYVOL
The output files created by both the OUT option and the OUT command can be edited,
printed, included in reports, or used as command (OBEY) files.
This example creates a command file named DAILY. The command file can be used,
with minimal editing, to configure a measurement.
7+ ADD MEASUREMENT NOV5
8+ INFO MEASUREMENT /OUT DAILY/ NOV5
9+ EXIT
45> FUP COPY DAILY
Add measurement $PERF.DATA.NOV5 -- Current Data File --
From 5 Nov 2003, 10::36, To 5 Nov 2003, 13:49:27
Cpu 12 Entities 564 Words
Process 1325 Entities 95400 Words
File 180 Entities 6120 Words
Discopen 161 Entities 2415 Words
-- Add Cpu *
-- Add Process *
-- Add File $SYSTEM.SYSTEM.*
-- Add Discopen $SPOOL.*.*
11 RECORDS TRANSFERRED
46>
You can also save a copy of all or part of a MEASCOM session by using the LOG TO
and LOG STOP commands.
The LOG TO command causes MEASCOM to write a copy of all succeeding prompts,
command lines, and command output to the specified file. The LOG STOP command
causes MEASCOM to stop writing to the log file and close it. MEASCOM automatically
closes the log file at the end of a session.