Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ACC Utilities Reference Guide > Chapter 4 ZMNTR - ZCOM Runtime Monitor

Running ZMNTR (ZCOM Runtime Monitor)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

ZMNTR has the following runstring options:

Usage:

zmntr [-m mfile] [-k]

Options:

-m mfile

Alternate message file (default /opt/acc/msg/default.msg)

-k

Don't fork "ied" to get Korn shell like command stack

The -m option is to specify an alternate message file other than the default one comes with the ACC product installation.

The -k option is to disable the running of the "ied" process to act as the input front-end to ZMNTR. Refer the man page of ied for more details. Note that if ZMNTR is used in a non-interactive way, it may be necessary to use -k option to avoid undesired results.

To run ZMNTR from the shell prompt

To run ZMNTR from the shell prompt $ enter:

$ zmntr
ZMNTR: ZCOM 6.2.0.0 Runtime Monitor, Rev 1.0
ZMNTR>

ZMNTR program displays the banner line showing the ZCOM data structure version and the ZMNTR program revision. The prompt ZMNTR> indicates ZMNTR is ready to accept interactive commands. Commands are entered using either commas or spaces as delimiters between parameters. For example:

ZMNTR> tt 1 5
ZMNTR> tt,1,5

both have the same effect.

ZMNTR can also execute commands directly from the shell command line. For example:

$ zmntr tt 1 5

will start ZMNTR, execute the TT command, and then exit from ZMNTR returning to the shell prompt. This command may also be entered with commas as delimiters between the command parameters, but must have a space between ZMNTR and the TT command, for example:

$ zmntr tt,1,5

is allowed, but:

$ zmntr,tt,1,5

is not allowed.

Running from a command file

ZMNTR may also be run from a command file. The command file may be invoked in two ways. Firstly from the interactive mode by entering the TR command followed by the file name, or from the shell command line. For example:

ZMNTR> tr command.file
$ zmntr tr command.file

Refer to the TR command description for more details on command files.

Command stack

If ZMNTR is run interactively from an HP terminal (such as HP2392, or 700/92), or a window emulating an HP terminal, a command stack facility is available to allow easy repetition of previously used commands, and editing of those commands for reuse.

The command stack is displayed by entering / causing ZMNTR to display the list of most recently used commands on the screen. For example:

ZMNTR> /
---Commands---
tt 1 100
?
mx 0 1
di 1 100

ZMNTR positions the cursor at the bottom of the list. Any of the commands may be reused by positioning the cursor on the desired line and pressing <Return>. If the command needs to be changed before reusing, then it can be modified on the screen before pressing <Return>.

Output to a file

The output from ZMNTR is usually displayed on the terminal. However if ZMNTR is run with standard out redirected to an alternate destination, then only the ZMNTR prompts will be seen on the terminal. For example, the usual dialog for two TT commands is shown below:

$ zmntr
ZMNTR> tt 1 5
ZLU# Mx p:sc Terminal Description.. Rx.Mes Tx.Mes Error E.Rate State.......
0001 00 0L00 L2 DCE 2 7 0 0.00% Up,Link Estbd
0002 00 1L00 L2 DCE 2 9 0 0.00% Up,Link Estbd
0003 00 2L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0004 00 3L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0005 00 4L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
**** ** ** Message totals 7 31 0 .00% ************
ZMNTR> tt 6 10
ZLU# Mx p:sc Terminal Description.. Rx.Mes Tx.Mes Error E.Rate State.......
0006 00 5L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0007 00 6L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0008 00 7L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0009 01 0L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
0010 01 1L00 L2 DCE 1 5 0 0.00% Up,Link Estbd
**** ** ** Message totals 5 25 0 .00% ************

ZMNTR> ex
ZMNTR> Rev 12.06 <950503.1200>

$

However, if the output is redirected to a file zmntr.out the dialog reduces to the following:

$ zmntr -k > zmntr.out
ZMNTR: ZCOM 6.2.0.0 Runtime Monitor, Rev 1.0
ZMNTR> tt 1 5
ZMNTR> tt 6 10
ZMNTR> ex
$

The generated output can be seen by viewing the file zmntr.out.

$ more zmntr.out
ZLU# Mx p:sc Terminal Description.. Rx.Mes Tx.Mes Error E.Rate State.......
0001 00 0L00 L2 DCE 2 8 0 0.00% Up,Link Estbd
0002 00 1L00 L2 DCE 2 10 0 0.00% Up,Link Estbd
0003 00 2L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0004 00 3L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0005 00 4L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
**** ** ** Message totals 7 36 0 .00% ************
ZLU# Mx p:sc Terminal Description.. Rx.Mes Tx.Mes Error E.Rate State.......
0006 00 5L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0007 00 6L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0008 00 7L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0009 01 0L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
0010 01 1L00 L2 DCE 1 6 0 0.00% Up,Link Estbd
**** ** ** Message totals 5 30 0 .00% ************
$

The output can also be directed to a file using the LL command. Refer to the section “LL - Set New List File” for a more detailed description for that command.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000 Hewlett-Packard Development Company, L.P.