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 ZTERM - Interactive Routine Interface

ZTERM Available Commands

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

The commands available in ZTERM (displayed by entering ?) are:

ZTERM>  ?
Code Description................... Code Description..................
CL - Close program ZLU NM - Retrieve ZLU from name
CN - Send a control message OP - Open program ZLU
CW - Send control write PE - Peek on primary ZLU
DI - Quiet option PT - Set port configuration
DL - Display logical terminal info PU - Update physical terminal info
DN - Display node entry info PZ - Peek on any program ZLU
DP - Display physical terminal info QL - Set queue limit
DZ - Display ZLU entry info RC - Set receiver for terminal ZLU
IT - Display interface terminal info RE - Read on primary ZLU
LG - Get logical terminal data RX - Receive all on primary ZLU
LP - Put logical terminal data RZ - Read on any program ZLU
LQ - Allocate log. terminal queue SE - Send a message
LS - Allocate log. terminal storage SL - Sleep for N seconds
LU - Update logical terminal table ST - Disp terminal status
MG - Move logical terminal group S7 - SS7 processing
MP - Set ZLU mapping SZ - Size of program ZLU queue
MV - Move message between queues TM - Set timeout on program ZLU
MX - Terminal multiplexing control TR - Transfer to command file
TV - Transmit with verification TX - Send test messages
RV - Receive with verification XM - Send test messages (range)
ND - Set destination node & timeout

For more details on a specific request type ?,XX
ZTERM>

If more details of a particular command format are needed, enter the two letter command identifier after the ? and ZTERM will display more information. For example:

ZTERM> ?? TX
Request format:- TX,ZLU,len,[mode],[total],[window],[tagp]

Further explanation of the available commands is in alphabetic order. As most of the commands use ZCOM routine calls, more information on each is available under the specific routine call as documented in the ACC Programmer’s Reference Guide.

ZTERM ignores the case of the letters in most commands (case insensitive). Only the SE (send) and CW (control write) are case sensitive. For these two commands the data string, prompted by the command, is sent as entered (without any case conversion).

/E - Exit Program

Format: /E

This command terminates ZTERM, closing its ZLU. This command has the same effect as EX.

CL - Close ZLU

Format: CL,ZLU 

Closes the specified program ZLU. Returns the ZLU to the ZCOM subsystem for reuse. Uses the zclos routine call.

CN - Control Requests

Format:CN,ZLU1,ZLU2,req,[mode],[port,type,poll,select],[t1,t2]

The CN command is used to send control requests to terminal ZLUs in the range ZLU1 to ZLU2. The valid requests (req) available under the CN command are:

SE -

Set terminal parameters

EN-

Enable terminal

DI-

Disable terminal

AC-

Activate terminal

DE-

Deactivate terminal

The port, type, poll, and select parameters are only used for “SE” request, and the terminal must be disabled before they can be changed. They are described under zcntl in the ACC Programmer’s Reference Guide. See under zsend in that manual for a detailed description of mode. A terminal must be both enabled and activated before it can send and receive messages.

CW - Control Write

Format: CW,ZLU,mode,tag1,tag2

Functions in the same way as the SE command but in this case the zcntl routine is used to generate a control write request, rather than zsend (which generates a write request). ZTERM responds with:

Input message (max 80 chars)

Enter text for the control write, then press <return>.

DI - Control Displays

Format: DI,on/off/error

Controls the display of messages by commands that send or receive messages (e.g., RE - read, RX - receive, RL - receive and loopback, TX - transmit). If the display is set off, then all the messages are suppressed. If error is used then only messages containing non-zero status codes are displayed. If on is used, the full message display is restored.

DL - Display Logical Terminal Table Information

Format: DL,ZLU1 [,ZLU2] [,+Q]

Displays the logical terminal information for the specified terminal ZLU or range of ZLUs. The information is in hexadecimal and ASCII. The +Q option suppresses the hexadecimal listing. See under “Terminal Table Pages” in the section on Tables and Data Structures in the ACC Programmer’s Reference Guide, for the logical terminal table layout.

ZTERM>  dl 10
09:03:50 Owning ZLU 10
09:03:50 Mux number 1
09:03:50 Port number 1
09:03:50 Term. number 32
09:03:50 Next group ZLU 10
09:03:50 Device type 48
09:03:50 Logical type 99
09:03:50 Sys status flg 0h
09:03:50 MX prog node 0
09:03:50 MX prog ZLU# 0
09:03:50 Rcvr prog node 0
09:03:50 Rcvr prog ZLU# 0
09:03:50 Log. term addr 0h
09:03:50 Logical status 0h
09:03:50 Tx count 0
09:03:50 Rx count 0
09:03:50 Error count 0
09:03:50 Application # 10
09:03:50 Institution # 0
09:03:50 Branch # 0
09:03:50 Work # 0
09:03:50 Area # 0
09:03:50 Terminal name L2 DCE
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII....ASCII....
000 000A E5D0 0001 0120 002D E088 000A 0030 0063 0000 eP -‘ 0 c
010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
020 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000 ““““
030 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
040 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000 ““““
050 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
060 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000 ““““
070 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
080 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000 ““““
090 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
100 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000 ““““
110 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
120 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
130 000A 0000 0000 0000 0000 4C32 2044 4345 2020 2020 L2 DCE
140 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
150 0000 4F46 0000 0000 0000 0000 0322 8F5C 0000 0000 OF ” \
160 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
170 0000 0000 0000 0000 0000 0000 000B 0000 0000 FFFF ““
180 0001 001F 0000 FFFF 0007 0007 0007 0007 0000 0000 ““
190 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
200 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
210 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
220 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
230 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
240 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
250 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
260 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
270 0000 0000 0000 0000 0000 0000
09:03:50 *

DP - Display Physical Terminal Table Information

Format: DP,ZLU,[ZLU2],[+Q]

Displays the physical terminal information for the specified terminal ZLU, or range of ZLUs, in hexadecimal and ASCII. The +Q option suppresses the display of the hexadecimal data. See under “Physical Terminal Table” in the section on Table and Data Structures in the ACC Programmer’s Reference Guide, for the physical terminal table layout.

Example

ZTERM> dp 601

20:11:27 Owning ZLU 601
20:11:27 MUX number 0
20:11:27 Port number 1
20:11:27 Term. number 0
20:11:27 Port linkage A857F0h
20:11:27 HPQ linkage 0h
20:11:27 LPQ linkage 0h
20:11:27 Rx node 0
20:11:27 Rx ZLU 0
20:11:27 Rx node cntrl 0
20:11:27 Rx ZLU cntrl 0
20:11:27 DVT status 9000h
20:11:27 FWT status A100h
20:11:27 Physical type 62
20:11:27 Poll address 0h
20:11:27 Select address 0h
20:11:27 Option word 0h
20:11:27 Call address No address
20:11:27 X25 VC number 0
20:11:27 Tx Msg count 0
20:11:27 Rx Msg count 0
20:11:27 Error count 0

Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 0259 EBB0 0000 0100 0000 0000 0000 0000 0000 0000 Yk0
010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
020 0000 0000 00A8 57F0 0000 0000 0000 0000 0000 0000 (Wp
030 7FFF FFFF 0000 0000 0000 0000 0000 0000 0000 0000
040 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000
050 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
060 0000 0000 0000 0064 0000 0000 0000 0000 0000 0000 d
070 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001
080 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
090 0000 0000 0000 0000 0000 0064 0000 0000 0000 0000 d
100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
110 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
120 0000 0000 0000 1388 0000 0000 0000 0000 0000 0000
130 0000 0000 0000 0000 0000 0000 0000 0000 0000 0003
140 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
150 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
160 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
170 0000 0000 0000 0000 0000 0000 0259 9000 A100 003E Y ! >
180 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
190 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
09:17:40 *

DZ - ZLU Information

Format: DZ,ZLU

Displays the information for the specified ZLU from the ZLU table (in hexadecimal and ASCII) in the following format.

Example

ZTERM>  dz 10
09:26:16 ZLU entry for ZLU # 10
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII.....
000 E5D0 0001 0121 0000 0000 544D 3030 3031 3020 0000 eP ! TM00010
010 0000 0000 0000 0000 007A 7EC8 0000 0000 0000 0000 z~H

The ZLU table field descriptions are detailed in the “ZLU Tables” section in the Tables and Data Structures section of the ACC Programmer’s Reference Guide.

EX - Exit Program

Format: /E

This command terminates ZTERM, closing its ZLU. This command has the same effect as /E.

IT - Interface Table Information

Format: IT,card

This command displays the interface table information for the specified ACC card, in hexadecimal and ASCII, as per the DZ command. The contents of the interface table are discussed under Interface Table in the Tables and Data Structures section of the ACC Programmer’s Reference Guide.

Example

,0
20:26:35 Interface table (basic part) for Mux 0
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII.....
000 0000 0000 0A10 0004 FFFF FFFF FFA4 4000 0006 8005 $@
010 0000 0009 0000 0000 000C 0000 0008 0001 0008 0800
020 2F6F 7074 2F61 6363 2F7A 3732 3030 612F 6C6F 6F70 /opt/acc/z7200a/loop
030 6261 636B 2E7A 6162 7320 2020 2020 2020 2020 2020 back.zabs
040 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
050 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
060 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
070 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
080 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
090 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
100 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
110 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
120 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
130 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020
140 2020 2020 2020 2020 2020 2020 2020 2020 357D C1F0 5}Ap
150 4C4F 4F50 4241 434B 2020 2020 2A7E A728 554D 5558 LOOPBACK *~’(UMUX
160 3330 3241 2020 2020 3034 2E58 2020 2020 01D0 0000 302A 04.X P
170 0000 0000 0000 0000 7FFF FFFF 0000 0000 0000 0000
180 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
190 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000
200 0000 0000 7FFF FFFF 0000 0000 0000 0000 0000 0000
210 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001
220 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
230 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
240 0000 0000 00AD 3AA0 0000 0000 00AD 3BE0 0000 0000 -: -;`
250 00AD 3D20 0000 0000 00AD 3E60 0000 0000 00AD 3E80 -= ->` ->
260 0000 0000 00AD 3EA0 0000 0000 00AD 3EB0 0000 0000 -> ->0
270 00AD 3EC0 0000 0000 00AD 3EE0 0000 0000 00AD 7F00 ->@ ->` -
280 0000 0000 007A AEC8 0000 0000 007A AE70 z.H z.p

LG - Get Logical Terminal Data From Queue

Format: LG,zlu,[queue]

This command retrieves logical terminal queue data from the specified logical terminal data queue. If the queue number is omitted, the number will be defaulted to the queue number from the last data queue command (LQ, LG or LP). The retrieved data will be displayed on the terminal.

LP - Put Logical Terminal Data to Queue

Format: LP,zlu,[queue]

This command puts a test message (of length 100 bytes) on the specified logical terminal data queue. If the queue number is omitted, it will be defaulted to the queue number from the last data queue command (LQ, LG or LP).

LQ - Allocate Logical Terminal Queue

Format: LQ,appl,label
appl

application number (0 for general allocation)

label

unique label for queue within application (up to 6 ASCII characters)

This command requests a logical terminal data queue for the given terminal application with the given label. If this label is already allocated for this application, then the existing queue number will be returned. This command may be used to set the logical queue number for subsequent LG and LP commands.

LS - Allocate Logical Terminal Storage

Format: LS,appl,label,size
appl

application number (0 for general allocation)

label

storage label (up to 6 ASCII characters)

size

Bit 15 = 0 : allocate if new
Bit 15 = 1 : do not allocate
Bits 14-0 : size of storage in words

This command will find an existing storage for this application with matching label and size. If the storage is not already allocated then the command will allocate it if this is specified.

In either case, the command returns the logical terminal table offset of the storage. This offset may be used in the LU command.

LU - Update Logical Terminal Table

Format: LU,ZLU,INDX,[len]

LU is allows the logical terminal table to be updated. Access is only allowed into the User data portion of the table. The value INDX is the offset into the table relative to the origin at 0. The index is in 16-bit words. If an index value is given that is before the start of the User area or beyond the end of the table, an error is returned. If the length plus the offset will fall beyond the end of the table, an error is also returned.

If the [len] field is specified, then each 16-bit word is prompted one at a time. When all words have been entered, the routine zltup is used to update the logical terminal table.

MG - Move Logical Terminal Between Physical Terminal Group

Format: MG,TZLU,NZLU

The terminal multiplexing capability of the ZCOM system allows multiple logical terminals to link to a single physical terminal. This command re-links an existing logical terminal (referred to by TZLU) to a different physical terminal (referred to by NZLU). The source terminal cannot be the only terminal linked to the original physical terminal; otherwise an error will be returned. This command uses the zltmg routine.

MP - ZLU Mapping

Format: MP,ZLU,MZLU

Sets up a ZLU mapping. All messages for the ZLU are mapped to the MZLU as specified in the command. Uses the zmapr routine call.

MV - Move Message

Format: MV,[zlu],[dzlu]

Moves message between queues. If the first zlu is not specified, then the ZTERM primary program ZLU is assumed. If the destination dzlu is not specified, then the message is discarded, otherwise it is moved to the destination queue. This command moves the first message only from the head of the first ZLU queue. Uses the zqmve routine call.

MX - Terminal Multiplexing Control

Format: MX,TZLU,MODE

Used to enable or disable multiplexing for a logical terminal.

Mode values:

  1. enable outbound multiplexing

  2. enable inbound multiplexing

  3. disable outbound multiplexing

  4. disable inbound multiplexing

ND - Set or display default ZCOM node number

Format: ND,[node,[timeout]]

This command sets up the node number to be used in subsequent ZTERM commands. The node number will be used in the ZTERM commands that can be executed in a remote node (e.g. SE, DZ). Those that can only be executed in the local node are not affected (e.g. OP, RE).

If “node” is not specified, ZTERM displays the default node without change.

If “timeout” is specified with the node number, the default timeout for that node is set to that value in seconds. This node number is set up to the local node when ZTERM starts up.

DN - Display a node entry

Format: ND, node
or: DNI, index

DN displays the node entry for node number “node”.

DNI displays the node entry for node index “index”. Note that node index ranges from 0, 1, ...

NM - Retrieve ZLU from Name

Format: NM,name,[node]

Retrieves the ZLU from the name only. Enter the name of the ZLU, (8 bytes maximum). If there is a ZLU of that name, the system will respond with “ZLU is nnn”. The remote node call is not currently implemented. Uses the zname routine call.

OP - Open Program ZLU

Format: OP,[name],[PRIM]

Opens a program ZLU. If PRIM is not specified, then the program ZLU will be an auxiliary. The name of the ZLU must be specified if more than one ZLU is being opened. Uses the zopen routine call.

PE - Peek at ZLU

Format: PE,[wait]

Peeks at the ZTERM primary ZLU. This command does not remove the message from the head of the queue. If wait specified, then the program will display the messages as they are received. If no messages are received then an INT signal can be used to interrupt the wait (this can usually be generated by using a ^C). Uses the zpeek routine call.

ZTERM>  pe
08:12:43 Message from program ZLU #0802 length 22 tag1=0000 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 5468 6973 2069 7320 6120 7465 7374 206D 6573 7361 This is a test message
010 6765 e.

The PE command can also be used to display the header of the message by using the command modifier HD.

ZTERM> pehd
08:12:47 Message from program ZLU #0802 length 22 tag1=0000 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII.....
000 0200 007B 0322 2021 007B 0322 2021 0000 0000 0000 { ” ! { ” !
010 0000 0000 0000 0000 0016
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 5468 6973 2069 7320 6120 7465 7374 206D 6573 7361 This is a test message
010 6765 e.

PT - Set Port Parameters

Format:  PT,card,port,rcode,param,[config1],[config2]

Sets port parameters. The parameters are similar to those used in the zport call. See under zport in the ACC Programmer’s Reference Guide.

All terminals on the port must be disabled before this command is used.

card -

ACC card number

port -

ACC port number

rcode -

1: Use configured data
2: Use data in this command

param -

0: Set config, clock, and port mode
1: Set config parameters
2: Set clock parameters
3: Set port mode

config1 -

Port configuration word (High 16 bits)

config2 -

Port configuration word (Low 16 bits)

(an “H” suffix indicates a hex value):

SYNC,NoParity,ExtClock,9600

-

0006H

SYNC,OddParity,ExtClock,9600

-

0106H

ASYNC,NoParity,IntClock,19200

-

0418H

ASYNC,EvenParity,IntClock,19200

-

0718H

PU - Update Physical Terminal Table Information

Format: PU,ZLU,INDX,[len]

Updates the physical terminal table user data area. This command prompts for each of the words (16-bit values) in turn. When [len] words have been read, ZTERM uses the zptup routine to update the physical terminal table. If [len] is not specified 1 is assumed.

ZTERM>  pu 10 96 2
16:03:50 Input word 0001 - 1
16:03:53 Input word 0002 - 2
ZTERM>

PZ - Peek at ZLU

Format: PZ,ZLU,[wait]
Format: PZHD,ZLU,[wait]

Peeks at any program ZLU. This command is the same as the PE command, except that any program ZLU can be entered. If wait is specified, then the program will display the messages as they are received. If no messages are received then an INT signal can be used to interrupt the wait (this can usually be generated by using a ^C).

ZTERM>  pz 802
10:10:10 Message from program ZLU #0802 length 20 tag1=0001 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII....ASCII....
000 5A54 4552 4D73 3720 206D 6573 7361 6765 206E 6F2E ZTERMs7 message no.

The PZ command can also be used to display the header of the message by using the command modifier HD.

ZTERM>  pzhd 802
10:10:18 Message from program ZLU #0802 length 20 tag1=0001 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII....ASCII....
000 0200 007B 0322 2421 007B 0322 2421 0001 0000 0000 { ”$! { ”$!
010 0000 0000 0000 0000 0014
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 5A54 4552 4D73 3720 206D 6573 7361 6765 206E 6F2E ZTERMs7 message no.

RC - Set Terminal Receiver

Format:  RC,ZLU1,[ZLU2],[rzlu],[rnode],[mode]

Sets up either the ZTERM primary ZLU as receiver for the specified terminal ZLU1 or range of terminal ZLUs (ZLU1 to ZLU2 inclusive), or can be used to set up an alternate program ZLU (rzlu & rnode) to be receiver for the terminal ZLU. If rnode is not supplied, it defaults to the local node. Uses the zrcvr routine call.

RE - Read ZTERM ZLU

Format: RE,[wait]
Format: REHD,[wait]

Reads the ZTERM program primary ZLU. If wait is specified, then the program will continue to read the ZLU display the messages as they are received. If no messages are received then an INT signal can be used to interrupt the wait (this can usually be generated by using a ^C).

ZTERM> re

08:12:54 Message from program ZLU #0802 length 22 tag1=0000 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII....ASCII....
000 5468 6973 2069 7320 6120 7465 7374 206D 6573 7361 This is a test message
010 6765 e.

The RE command can also be used to display the header of the message by using the command modifier HD.

ZTERM>  rehd
10:10:18 Message from program ZLU #0802 length 20 tag1=0001 tag2=0000
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 0200 007B 0322 2421 007B 0322 2421 0001 0000 0000 { ”$! { ”$!
010 0000 0000 0000 0000 0014
Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII....
000 5A54 4552 4D73 3720 206D 6573 7361 6765 206E 6F2E ZTERMs7 message no.

RL - Loopback on Primary ZLU

Format:-   RL,[LIst/LAtency],[sendmode],[dzlu],[AC],[maxtime]

Reads the ZTERM primary ZLU in a loop re-transmitting each received message and produces timing statistics. (Use RC to set up the primary ZLU as a receiver first if the test is on a terminal). Any messages received are returned to either their source or, if specified, to the destination ZLU (dzlu).

The options have the following meanings:

LIst

Display the contents of the messages as well as the statistical information

LAtency

This option enables the roundtrip latency time measurement in ms. This option cannot be set with the LI list option. The latency measurement inserts 10 bytes of timing information into the buffer as messages are sent and compares the time when the message is received again. The latency measurement will not be done with buffers shorter than 10 bytes. The latency statistics are displayed when the RL command terminates or is terminated.

sendmode

The mode as explained under zsend in the ZCOM routine calls section of the ACC Programmer’s Reference Guide. Each received message is resent with this mode.

dzlu

The ZLU to which the message is to be routed (default to source if not specified).

AC

Activate the terminal ZLU after every received message (restart polling).

maxtime

This parametersets a maximum runtime, in seconds. If this is zero then the command runs without a time limit, otherwise it will terminate after [maxtime] seconds.

The display of the message information is controlled by the DI (display) command.

This is a blocking command and will remain active until a ZCOM call error is encountered (such as ZCOM shutdown, ierr=-2), or until a sigint (usually ^C) is received by ZTERM. It accumulates the number of messages received for the duration of the command and the elapsed time in milliseconds. This information is displayed when the command is stopped or completes.

RV - Receive and validate messages

Format: RV,[LI],[AC],[maxtime]

Receive and validate messages from primary ZLU. This command works in conjunction with the TV command in another copy of ZTERM to validate both message content and sequence.

Optionally LI may be specified to list the incoming data in hex as it is received. AC may also be specified if the protocol module requires reactivation after each received message.

The command optionally has a maximum runtime set in the [maxtime] parameter. If this is zero then the command runs without a time limit, otherwise it will terminate after [maxtime] seconds.

The RV command will also terminate if it received a start message, and then receives end messages from all the terminal ZLUs from which it has received messages - see the TV command.

RX - Receive on ZLU

Format:-   RX,[LIst],[ACtivate],[maxtime] 

RX receives and displays messages received on ZTERM’s program ZLU. This is a blocking command and will remain active until a ZCOM call error is encountered (such as ZCOM shutdown, ierr=-2), or until a SIGINT (usually ^C) is received by ZTERM. It accumulates the number of messages received for the duration of the command and the elapsed time in milliseconds. This information is displayed when the command is stopped or completes.

The options have the following meanings:

LIst

Display the contents of the messages as well as the statistical information.

AC

Activate the terminal ZLU after every received message (restart polling).

maxtime

This parametersets a maximum runtime, in seconds. If this is zero then the command runs without a time limit, otherwise it will terminate after [maxtime] seconds.

RZ - Read ZLU

Format: RZ,ZLU,[wait]
Format: RZHD,ZLU,[wait]

Reads any program ZLU. This command functions in exactly the same way as the RE command, however as a ZLU number is entered, any program ZLU can be read. Uses the zread routine call.

S7 - SS7 processing

Format: S7, [OF]

This command enables special processing for SS7 Level-1 devices. S7,OF disables the SS7 processing.

When SS7 processing is enabled the RV, TX, RX, XM, and RL commands are modified for testing with an SS7 level-1 protocol.

In particular, the first 2 bytes of all transmitted frames are sequenced to ensure that any two consecutive frames will always contain different data in these bytes. The sequence number used for TX, XM and RL is reset to zero by the S7 command.

Any received frames 3 bytes long or shorter are discarded (assumed to be FISUs or illegal for SS7).

While SS7 processing is enabled, the prompt is changed to “Z.SS7>” as a reminder.

SE - Send to ZLU

Format: SE,ZLU,mode,tag1,tag2

Sends a message to the indicated ZLU number. The ZLU may be either a terminal or a program ZLU. Use ZSCAN to find out the ZLU numbers of the programs, if necessary. The mode and tag parameters are as described under zsend in the ZCOM routine calls section. ZTERM responds to the above command with:

Input message (max 80 chars) 

Enter the message to be sent, and press <return>. Uses the zsend routine call.

ST - Physical Terminal Status

Format: ST,ZLU

Displays the physical terminal status. The ST command is used to determine the status of the particular terminal ZLU. For example:

ZTERM>  st 10
16:17:31 Terminal ZLU # 10,type 25 PTDRST D000H PTFWST 2100H Type X25.LAPB
16:17:31 Logical terminal 289, Mux 1, port 1, terminal 32
16:17:31 Z80 status: Enabled,Fast poll,Inactive,UP
16:17:31 Driver status: Initialized,Enabled,Inactive,Available
16:17:31 1 Receive msgs, 0 Transmit msgs, 131072 Errors
16:17:31 *
ZTERM>

ST translates some of the physical terminal table fields (as provided in the DP command) into the above information.

SW - Swap Physical Terminal Tables

Format: SW,ZLUA,ZLUB

The physical terminal table data and associated logical terminals are exchanged by this command. Makes use of the zxcpt call.

SZ - Queue Size

Format:  SZ,[zlu] 

Gets program queue size. Returns the number of messages queued to the specified program ZLU. (Cannot be a terminal ZLU.) If a ZLU is not entered, the ZTERM program ZLU is used. The system responds with “ZLU nnn has queue depth nnnn”. Uses the zqsze routine call.

TM - Timeouts

Format: TM,ZLU,time

Sets the timeout on specific program ZLU in seconds. The timeout may be cancelled by setting the time value to zero. Uses the ztimr routine call.

TR - Transfer to Command File

Format: TR,[CommandFileName]

Transfers to a command file (commandfilename) that contains a sequence of ZTERM commands. Allows for recurring sequences of events to be automated.

TV - Transmit verification messages

Format:
TV,zlu1,zlu2,len,number,[window],[tagp],[maxtime],[apno]
or:
TVFL,zlu1,zlu2,len,number,[window],[tagp],[maxtime],[apno]

Transmit verification messages to a range of ZLUs. This command is used in conjunction with the RV command in another copy of ZTERM to validate both message content and sequence. The parameters have the following meanings:

zlu1,zlu2

Range of ZLUs to send messages to

len

Length of the test messages [0..8000], default is 40

number

Number of messages to send to each ZLU

window

Outstanding transmit window

tagp

Terminal tag parameter (mrqtag)

maxtime

Optional maximum runtime

apno

If set this must match the ltapno field in the logical terminal table of the terminal ZLU, otherwise no messages will be sent on that ZLU.

If the command is issued as TVFL rather than TV then a flag message is sent 1 second before the first data message, and on completion of the test a termination message is sent to every terminal ZLU which has been used in the test. The completion message contains the number of messages sent to that ZLU. These message are used by the receiving copy of ZTERM to delimit the start and end of the test and to verify that all messages have been received. The receiver resets it’s statistics when the start message arrives and terminates the RV command when the end message arrives.

The command optionally has a maximum runtime set in the [maxtime] parameter. If this is zero then the command runs without a time limit, otherwise it will terminate after [maxtime] seconds.

If the [apno] field is used then only terminal ZLUs whose logical terminal table application number “ltapno” field matches the [apno] field are used. If [apno] is not set then all terminals in the range are used.

TX - Transmit Test

Format:-   TX,ZLU,[len],[mode],[total],[window],[tagp],[apno]

The TX command is used for a general transmit test. The parameters have the following meanings:

ZLU

ZLU to which messages are to be sent

len

Length of the test messages [0..8000], default is 40

mode

Any valid send mode (see under ZSEND),
default 0 - Send no wait, no errors

total

Total number of messages, default 1

window

Only applicable if definite status requested.
Indicates the number of messages that will be sent before any acknowledgments are waited on

tagp

Terminal tag parameter (mrqtag)

apno

If set this must match the ltapno field in the logical terminal table of the terminal ZLU, otherwise no messages will be sent on that ZLU.

The test proceeds until the total number of messages are sent or the test is interrupted using sigint (usually ^C).

The test message sent to the terminal (up to “len” length) is

 ’ABCDEFGHIjKLMNOPQRStUVWXYZabcDefghijklmNopqrstuvwXyz’ etc 

The messages that appear on the terminal running ZTERM depend on the mode chosen. If the mode requests a definite response then the status of the send will be reported to the screen from which ZTERM is running. Uses the zsend routine, and the zread if any windows are specified.

XM - Transmit Test

Format:- XM,ZLU1,ZLU2,[len],[mode],[total],[window],[tagp],[apno]

The XM command is used for a general transmit test. It is similar to the TX command, but it sends test messages to a range of ZLUs from ZLU1 to ZLU2.

See description of TX commands for use of each parameter.

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