The HP LaserRX/MPE Batch Interface Command File [ HP LaserRX/MPE User's Manual: Analysis Software ] MPE/iX 5.0 Documentation
HP LaserRX/MPE User's Manual: Analysis Software
The HP LaserRX/MPE Batch Interface Command File
The MS-DOS command line is limited to 90 characters. You can overcome
this limitation by building a batch interface command file. A batch
interface command file is nothing more than a series of batch interface
commands entered one per line in an ASCII file. Batch interface commands
can not be nested. (That is, each batch interface command can only be
used once in a given .BIC file.)
You may use any PC editor or word processor that will produce an ASCII or
text file to create an HP LaserRX/MPE batch interface command file.
Example: Using a .BIC File with a Macro
The following is an example of a .BIC file that uses the PRINT.REC macro
created earlier. (PRINT.REC prints the Global Bottlenecks graph.)
-openlocal demo.prf
-playback print.rec
-exitwin
If you named this file DRAW.BIC, it could be invoked with the following
command:
C:\LASERRX> win laserrx -cmdfile draw.BIC
NOTE We strongly recommend that you use .BIC as the file extension for
HP LaserRX/MPE batch interface command files.
Variable substitution is not supported for HP LaserRX/MPE batch
interface command files. If you want to print graphs for different
logfiles, you must create a separate .BIC file for each logfile.
Example: Serial Connection within a .BIC File
The following example illustrates how you could use the following .BIC
file to connect to a system through the serial port, open the LOGGLOB
logfile, print the Global Bottlenecks graph, and exit:
-serial
-openremote logglob.scope.sys
-playback print.rec
-exitwin
Remember that the -serial batch interface command invokes the default
serial connection saved in the Configure Serial Connect dialog box.
Example: LAN Connection within a .BIC File
The following batch interface command file--DRAWSYS1.BIC--uses both the
-lanlogon and -lanname batch interface commands to make a LAN connection
to a different system than the default specified on the Configure LAN
Connect dialog box. It then opens the RXMO9010 remote logfile, plays
back the PRINT.REC macro, and exits. The PRINT.REC macro draws the
Global Bottlenecks graph for the last day of the extracted logfile.
-lanname sys1.corp.usa
-lanlogon batchrx,scope/hotshot.sys/nobreach,scope
-openremote rxmo9010
-playback print.rec
-exitwin
You can run HP LaserRX/MPE and this .BIC file by entering the following
on the command line:
C:\LASERRX> win laserrx -cmdfile drawsys1.bic
To draw the same graph for remote file RXMO9009 on system SYS2, you could
create the file DRAWSYS2.BIC:
-lanname sys2.corp.usa
-lanlogon batchrx,scope/geewhiz.sys/x054z31,scope
-openremote rxmo9009
-playback print.rec
-exitwin
NOTE This illustrates the advantage of having recorded PRINT.REC without
an Open logfile event. It allows you to use this macro file with
any logfile you specify on the command line. See "Example:
Automated Printing of Graphs" for details on the creation of
PRINT.REC.
You can invoke DRAWSYS2.BIC as follows:
C:\LASERRX> win laserrx -cmdfile drawsys2.bic
Tip A batch interface command file is especially useful for establishing
remote file access for multiple systems.
MPE/iX 5.0 Documentation