HP 3000 Manuals

Batch Interface Commands [ HP LaserRX/MPE User's Manual: Analysis Software ] MPE/iX 5.0 Documentation


HP LaserRX/MPE User's Manual: Analysis Software

Batch Interface Commands 

You can use batch interface commands to automate periodic repetitive
tasks, such as graph printing, or streamline complex connection
sequences.

You can execute several batch interface commands together on the MS-DOS
command line or from a .BAT file as long as you do not exceed 90
characters.

One advantage of .BAT file execution is that it lets you use variable
substitution.  For example, you can use a single .BAT file to print
graphs for different logfiles.

If the batch interface command line exceeds 90 characters, you can create
an HP LaserRX/MPE batch interface command (.BIC) file to overcome this
limitation. 

For more information on .BIC files, see "The HP LaserRX/MPE Batch
Interface Command File" .

The HP LaserRX/MPE batch interface commands are described in Table 9-1
(*).

          Table 9-1.  HP LaserRX/MPE Batch Interface Commands 

-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
|  Batch Interface Command  |         Parameter         |              Description              |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -openlocal                | logfile                   | Open up to five local logfiles.       |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -serial                   |                           | Specifies a single serial connection. |
|                           |                           | Logs on with values configured with   |
|                           |                           | the Configure Serial Connect command. |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -lan                      |                           | Specifies a single LAN connection.    |
|                           |                           | Logs on with values configured with   |
|                           |                           | the Configure LAN Connect command.    |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -seriallogon              | userid,user/              | Use the -seriallogon option to cause  |
|                           | userpass.account/         | a more customized logon than that     |
|                           | acctpass,group/ grouppass | configured with Configure Serial      |
|                           |                           | Connect, which is what you get with - |
|                           |                           | serial.                               |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -serialcmd                | filename.cmd /password    | Specifies a basic serial command      |
|                           |                           | file.  (A basic serial command file   |
|                           |                           | allows an automated dialog in which   |
|                           |                           | specific prompts are recognized by    |
|                           |                           | your PC and programmed responses are  |
|                           |                           | provided to those prompts.  This      |
|                           |                           | allows automating a dialog with a     |
|                           |                           | data switch, a dial-out modem, a PAD, |
|                           |                           | etc.  See "Invoking Basic Serial      |
|                           |                           | Command Files"  for details.)      |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------

          Table 9-1.  HP LaserRX/MPE Batch Interface Commands (cont.) 

-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
|  Batch Interface Command  |         Parameter         |              Description              |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -lanlogon                 | userid,user/              | Use the -lanlogon option to cause a   |
|                           | userpass.account/         | more customized logon than that       |
|                           | acctpass,group/ grouppass | configured with Configure LAN         |
|                           |                           | Connect, which is what you get with   |
|                           |                           | -lan.                                 |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -lanname                  | lannode                   | Specifies the node you want.          |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -openremote               | logfile                   | Open a single remote logfile.         |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -record                   | macro file                | Start HP LaserRX/MPE in record mode.  |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -playback                 | macro file.REC            | Play back a macro file.  The file     |
|                           |                           | name must include the .REC extension. |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -exitapp                  |                           | Exit HP LaserRX/MPE and return to     |
|                           |                           | Microsoft Windows.                    |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -exitwin                  |                           | Exit HP LaserRX/MPE and return to     |
|                           |                           | MS-DOS.                               |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------
|                           |                           |                                       |
| -cmdfile                  | command file.BIC          | Invokes a batch interface command     |
|                           |                           | file.  The file name must include the |
|                           |                           | .BIC extension.  (See "The HP         |
|                           |                           | LaserRX/MPE Batch Interface Command   |
|                           |                           | File"  for details on .BIC files.) |
|                           |                           |                                       |
-------------------------------------------------------------------------------------------------

Example:  Using Batch Interface Commands 

You could use batch interface commands to start HP LaserRX/MPE with an
MS-DOS command, open the local logfile DEMO.PRF, play back the PRINT.REC
macro and exit HP LaserRX/MPE upon completion:

     C:\LASERRX> win laserrx -openlocal DEMO.PRF -playback PRINT.REC -exitwin

Example:  Connecting to a Single System 

The simplest strategy for connecting to a single remote system is to
configure your choices within HP LaserRX/MPE and then use the -serial or
-lan option on the MS-DOS command line to invoke those choices.

First configure a single connection from the PC to the HP 3000:

   1.  Run HP LaserRX/MPE.

   2.  Select the Configure LAN Connect or Configure Serial Connect
       command.

       Enter and save the information you want to keep.  If you click  OK 
       instead of  Save, the entries are kept for the current session of
       HP LaserRX/MPE only.


NOTE In the Configure LAN Connect and Configure Serial Connect dialog boxes, all passwords are protected on the screen and encrypted in WIN.INI to ensure security.
Then, when you want to make a connection from the command line, type either -serial or -lan. -serial causes HP LaserRX/MPE to invoke the configuration you saved with the Configure Serial Connect dialog box; -lan causes HP LaserRX/MPE to invoke the configuration you saved with the Configure LAN Connect dialog box. You can use a batch interface command file to connect to more than one system at a time--up to five LAN or one serial and four LAN. Example: Customizing LAN Connections Remember that the -lan batch interface command confines you to a single LAN connection as configured in the Configure LAN Connect dialog box. There may be times when you want to analyze logfiles that reside on different systems. The -lanlogon and -lanname batch interface commands let you customize your LAN logon. -lanname sys1.corp.usa -lanlogon batchrx,scope/hotshot.sys/nobreach,scope See "Example: LAN Connection within a .BIC File" .


MPE/iX 5.0 Documentation