Previous | Contents | Index |
TRANSACTION COMMITS BY PROCESS 14:12:48 Wed Nov 3 1999 on nodeA Commits Each # is 10tps Node, Process ID & name Absolute Rate/s 50 100 150 200 250 300 nodeA -ALL- -CLIENTS- 2401 45.0 #### nodeA -ALL- -SERVERS- 2401 45.0 #### nodeA 22941 smith_1 2401 45.0 #### nodeA 22933 jones_1 2401 45.0 #### |
Displays the transaction processing rate of each process on a system.
The cumulative total for all client and all server processes is also
given.
6.2.39 Monitor Tpslo
TRANSACTION COMMITS BY PROCESS 14:12:48 Wed Nov 3 1999 on nodeA.zko.dec.com Commits Node ID Process Abs. Rate | 2 4 6 8 10 nodeA -ALL- -CLIENTS- 5 2.0 ## nodeA -ALL- -SERVERS- 5 2.0 ## nodeA 22941 smith_1 10 4.0 #### |
Displays low end of the rate of transaction commits carried out by each
process using RTR. It is intended for systems with throughput less than
10 tps.
6.2.40 Monitor Traffic
LINK TRAFFIC Fri Sep 08 2000 14:38:08, NODE: -ALL- Bytes/sec Packets/sec Messages/sec Congestion Rcvd Sent Rcvd Sent Avrg Rcvd Sent Count Rate Total 13465.5 13213.3 123.8 121.2 239.1 53.3 53.3 35 0.0 NODEA -> NODEA 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0.0 NODEA -> NODEB 10718.0 2705.8 95.1 27.5 118.9 24.9 27.2 28 0.0 NODEB -> NODEB 41.7 41.7 1.2 1.2 1.4 1.2 1.2 0 0.0 NODEB -> NODEA 2705.8 10465.8 27.5 92.5 118.8 27.2 24.9 7 0.0 |
Displays a list of the links to other nodes. Shown for each link are:
byte rate, packet rate, message rate and congestion, in both
directions. Average packets per second is also shown. Uses counters in
the Network I/O (NIO) subsystem.
6.2.41 Monitor Trans
Monitoring transactions Thu Mar 4 1999 15:21:38, NODE: NODEA Transaction ID (Frontend) Facility FE-UserState 46d01f10,0,0,0,0,baa09da,abf10001 RTR$DEFAULT_FACILITY RTRCSV_TETRAUL aborting Transaction ID (router) Facility FE-UserState State Transaction ID (backend) Facility FE-UserState 46d01f10,0,0,0,0,baa09da,abf10001 RTR$DEFAULT_FACILITY RTRCSV_TETRAUL aborting |
Displays transaction state for transactions in a facility.
6.2.42 Monitor Upstream
FLOW CONTROL UPSTREAM STALLS BY NODE & FACILITY Mon Jul 16 2001 15:42:25, Node: Txn traffic Bdcst traffic fe->tr tr->be tr->be Node & Facility reqs stall reqs stall reqs stall Router used rtrdoc Test rtrdoc_ |
Displays flow-control induced traffic stalls upstream from the
controlling backend, between the frontend and the router, and between
the router and the backend. Upstream traffic runs towards the backend.
6.2.43 Monitor V2calls
RTR V2 system service calls, Node: NODEA , PID: 00000000, Process name: -ALL- Image: -ALL- 13:09:18 5-MAR-1999 Accept Reject Success Failure Outstng Calls dcl_tx_prc/server 3 0 4 0 0 4 dcl_tx_prc/req. 1 dcl_tx_prc/shut. 0 start_tx 1 0 1 0 0 1 start_tx /timeout 0 enq_tx 1 0 50395 0 0 50395 enq_tx /broadcast 25187 enq_tx /reply 25207 deq_tx 50381 0 50391 0 2 50393 deq_tx /reply 12 commit_tx 1 0 1 0 0 1 abort_tx 0 0 0 0 0 0 vote_tx /commit 25187 0 25189 0 0 25189 vote_tx /abort 0 vote_tx /forget 2 |
Displays calls made by applications to the Version 2.0 API.
6.2.44 Monitor XA
RTR XA Calls Node: nodea.zko PID: -ALL- Process name: -ALL- Image: -ALL- 11:42:06 Tue 6-Apr-1999 XA Verb Name Calls Success Readonly Failure open 0 0 0 0 close 0 0 0 0 start 0 0 0 0 end 0 0 0 0 prepare 0 0 0 0 commit 0 0 0 0 rollback 0 0 0 0 recovery 0 0 0 0 Rate 0 2 4 6 8 10 12 14 16 18 20 Active txn starts 0.0 0 |
Displays XA calls when using XA with RTR.
Each RTR API call can be invoked at CLI level using the RTR command utility. This is provided to facilitate testing. For example, clients can be tested before the corresponding servers have been written by manually entering the server's API calls.
The most commonly used RTR commands can also be invoked using the RTR web browser interface. The available commands include those used by a developer in a development environment as well as commands that allow you to monitor the operation of a production system. See Section 1.2.1 for instructions on how to use the RTR web browser interface.
7.1 Introduction
The commands that invoke the RTR API calls are similar to the call
names. For example, the
rtr_accept_tx()
call is invoked using CALL RTR_ACCEPT_TX at the CLI level.
Where possible, command qualifiers have been given the same names as the parameters to the API calls. See the C Application Programmer's Reference Manual for details about the parameters to API calls.
Most commands can be issued on remote nodes by using the /NODE=node-list or /CLUSTER qualifiers, or by preceding them with the SET ENVIRONMENT command to specify nodes where commands are to be executed. Commands such as DEFINE KEY are intended for local execution only.
Output from each command can be redirected to another device or file using the /OUTPUT qualifier.
Because the RTR command utility keeps parameter checking to a minimum, "what if" questions can be answered quickly without having to write test programs.
In a mixed RTR Version 2 and Version 3 or Version 4 environment, you cannot execute commands remotely with the /NODE qualifier. You can use the qualifier in a mixed Version 3 and Version 4 environment. |
This section describes in detail each command in the RTR command utility.
The command descriptions are presented in alphabetical order.
See CREATE FACILITY; ADD FACILITY is retained for compatibility reasons only.
The CALL RTR_ACCEPT_TX command causes a command server to execute the rtr_accept_tx() routine and to display the returned status.
CALL RTR_ACCEPT_TX
Command Qualifiers | Defaults |
---|---|
/CHANNEL_NAME=channel-name | /CHANNEL_NAME=RTR$DEFAULT_CHANNEL |
/CLUSTER | /NOCLUSTER |
/FORGET | /NOFORGET |
/INDEPENDENT | /NOINDEPENDENT |
/NODE[=node-list] | /NODE=default-node |
/OUTPUT[=filespec] | /OUTPUT=stdout |
/REASON[=reason] | /REASON=0 |
The CALL RTR_ACCEPT_TX command causes a command server to call the rtr_accept_tx() routine using values supplied on the command line.The numeric status returned from the call is then converted to its textual representation and displayed.
The rtr_accept_tx() routine itself is described in the C Application Programmer's Reference Manual.
The prototype of rtr_accept_tx() is:
rtr_status_t rtr_accept_tx ( rtr_channel_t channel, rtr_acc_flag_t flags, rtr_reason_t reason ) ;Table 7-1 shows the correspondence between values you supply on the command line and the C language parameter values produced and used for the call.
Table 7-1 Parameters for rtr_accept_tx C Parameter Name C Parameter Value Command Line Specification channel /CHANNEL_NAME=name flags RTR_NO_FLAGS [none] [D] RTR_F_ACC_FORGET /FORGET reason RTR_NO_REASON /NOREASON [D] reason_value /REASON=reason_value Issuing the CALL RTR_ACCEPT_TX command in preference to using the /ACCEPT qualifier with the CALL RTR_SEND_TO_SERVER or CALL RTR_REPLY_TO_CLIENT commands is only necessary when specifying an acceptance "reason" other than the default value of zero (using the /REASON qualifier).
/CHANNEL_NAME=channel_name
/CHANNEL_NAME=RTR$DEFAULT_CHANNEL
Specifies the channel for which the operation is to be performed.The command server uses a combination of the channel name and the window from which the call was issued to uniquely identify which channel to use.
channel_name is not case sensitive.
The default for channel_name is RTR$DEFAULT_CHANNEL.
/CLUSTER
/NOCLUSTER (D)
Specifies that the command is executed on all the nodes in the cluster.If neither /NODE nor /CLUSTER is specified, the command is executed on the nodes specified by the latest SET ENVIRONMENT command. If no SET ENVIRONMENT command has been entered, the command is executed only on the node where the command was issued.
Note
In environments that do not support remote command capability, the /CLUSTER qualifier causes the relevant command to be executed on the local node only. See Section 1.4 for more information./FORGET
/NOFORGET
Use /FORGET to specify the flags parameter as RTR_F_ACC_FORGET in the call rtr_accept_tx() .The default value for /FORGET is /NOFORGET, which causes the command server to use the value RTR_NO_FLAGS for the flags parameter in the call to rtr_accept_tx() .
/INDEPENDENT
/NOINDEPENDENT
Use the /INDEPENDENT qualifier to specify the flags parameter RTR_F_ACC_INDEPENDENT in the call to rtr_accept_tx() ./NODE[=node-list]
/NODE=default-node (D)
Specifies that the command is executed on all nodes specified in node-list . If node-list is omitted, the command is executed only on the node where the command was issued./OUTPUT[=filespec]
/OUTPUT=stdout (D)
Specifies that the resulting information is written to the file filespec . If /OUTPUT or filespec is omitted, the standard or default output is used./REASON[=reason]
/REASON=0
Use /REASON to supply a value for the reason parameter in the call to rtr_accept_tx() .The default value for /REASON is 0, which causes the command server to use the value RTR_NO_REASON for the reason parameter in the call to rtr_accept_tx() .
Accept the current transaction with a reason of 42.
RTR> CALL RTR_ACCEPT_TX /REASON=42 %RTR-S-OK, normal successful completion |
The CALL RTR_BROADCAST_EVENT command causes a command server to execute the rtr_broadcast_event() routine and to display the returned status.
CALL RTR_BROADCAST_EVENT [message-field1] [,message-field2,...]
[message-field1] [,message-field2...]
Specify the message to be sent (if any) as one or more comma-separated parameter values. You can use the /TYPE_OF_DATA and /LENGTH_OF_DATA positional qualifiers on each parameter value to specify the data type and length of each field.
Command Qualifiers | Defaults |
---|---|
/CHANNEL_NAME=channel-name | /CHANNEL_NAME=RTR$DEFAULT_CHANNEL |
/CLUSTER | /NOCLUSTER |
/EVENT_NUMBER=evtnum | None |
/FORMAT=fmt-string | /NOFORMAT |
/LENGTH_OF_FIELD=msg length | Depends on data type. |
/NODE[=node-list] | /NODE=default-node |
/OUTPUT[=filespec] | /OUTPUT=stdout |
/RECIPIENT_SPEC=rcpspc | /NORECIPIENT_SPEC |
/TYPE_OF_DATA=data type | /TYPE_OF_DATA=STRING |
The CALL RTR_BROADCAST_EVENT command causes a command server to call the rtr_broadcast_event() routine using values supplied on the command line.The numeric status returned from the call is then converted to its textual representation and displayed.
The rtr_broadcast_event() routine itself is described in the C Application Programmer's Reference Manual.
The prototype of rtr_broadcast_event() is:
rtr_status_t rtr_broadcast_event ( rtr_channel_t channel, rtr_bro_flag_t flags, rtr_msgbuf_t pmsg, rtr_msglen_t msglen, rtr_evtnum_t evtnum, rtr_rcpspc_t rcpspc, rtr_msgfmt_t msgfmt ) ;Table 7-2 shows the correspondence between values you supply on the command line and the C language parameter values produced and used for the call.
Table 7-2 Parameters for rtr_broadcast_event C Parameter Name C Parameter Value Command Line Specification channel /CHANNEL_NAME=name flags RTR_NO_FLAGS [none] [D] pmsg, msglen, msgfmt 1 [message definition parameter list with positional qualifiers ] evtnum 42 /EVENT_NUMBER=42 rcpspc "workstat*" /RECIPIENT_SPEC=
"workstat*"
The command server uses message data specified as command line parameter values to generate a record containing the message data (for the pmsg parameter), the message length (for the msglen parameter), and a record type description (for the msgfmt parameter).
/CHANNEL_NAME=channel-name
/CHANNEL_NAME=RTR$DEFAULT_CHANNEL
Specifies the channel for which the operation is to be performed.The command server uses a combination of the channel name and the window from which the call was issued to uniquely identify which channel to use.
channel_name is not case sensitive.
The default for channel-name is RTR$DEFAULT_CHANNEL.
/CLUSTER
/NOCLUSTER (D)
Specifies that the command is executed on all the nodes in the cluster.If neither /NODE nor /CLUSTER is specified, the command is executed on the nodes specified by the latest SET ENVIRONMENT command. If no SET ENVIRONMENT command has been entered, the command is executed only on the node where the command was issued.
Note
In environments that do not support remote command capability, the /CLUSTER qualifier causes the relevant command to be executed on the local node only. See Section 1.4 for more information./EVENT_NUMBER=user-event-number
The user event number associated with this broadcast, in the range of RTR_EVTNUM_USERBASE to RTR_EVTNUM_USERMAX (i.e. 0 to 250)./FORMAT[=fmt-string]
/NOFORMAT (D)
Specifies that a format string should be sent with this message.If /FORMAT is specified without fmt-string , RTR automatically generates a format string. The format string is generated using the parameters given for the qualifiers /SIGNED, /UNSIGNED, /STRING and /LENGTH. The following table shows permitted values for these qualifiers when using /FORMAT without fmt-string .
Table 7-3 Generated Format Strings Data Type With /LENGTH= With /NOLENGTH STRING =n, "%nC" "%nC" where
n=strlen(string)SIGNED =1, "%SB" "%SL" SIGNED =2, "%SW" "%SL" SIGNED =4, "%SL" "%SL" UNSIGNED =1, "%UB" "%SL" UNSIGNED =2, "%UW" "%SL" UNSIGNED =4, "%UL" "%SL" Refer to the C Application Programmer's Reference Manual, section "Defining a Message Format Description" for information on constructing an fmt-string parameter.
/LENGTH_OF_FIELD=field-length
Enter the size of the message field that you want to define. The default for string types is the length of the message entered, plus one (for the zero termination byte). The default for signed and unsigned types is four. This is a positional qualifier; it must immediately follow the message field that it refers to./NODE[=node-list]
/NODE=default-node (D)
Specifies that the command is executed on all nodes specified in node-list . If node-list is omitted, the command is executed only on the node where the command was issued./OUTPUT[=filespec]
/OUTPUT=stdout (D)
Specifies that the resulting information is written to the file filespec . If /OUTPUT or filespec is omitted, the standard or default output is used./RECIPIENT_SPEC=rcpspc
Enter a string specifying the recipient name. The wildcard characters asterisk (*) and question mark (?) are permitted.rcpspc is case sensitive.
/TYPE_OF_DATA=STRING|SIGNED|UNSIGNED
/TYPE_OF_DATA=STRING (D)
Enter the data type of the message field that you want to define. The default is the string type. This is a positional qualifier; it must immediately follow the message field that it refers to.
This command broadcasts user event number 23 to all channels having a null string rcpnam (the default). A message is sent with the broadcast.
RTR> CALL RTR_BROADCAST_EVENT "Dollar is up"/EVENT_NUMBER=23 %RTR-S-OK, Normal successful completion |
The following command broadcasts user event number 24 to all recipients whose /RECIPIENT_NAME matches the DEALER% string (that is, DEALER1, DEALER2, DEALERx). Note that only the event is broadcast; there is no associated message.
RTR> CALL RTR_BROADCAST_EVENT /EVENT=24/RECIPIENT_SPEC=DEALER% %RTR-S-OK, Normal successful completion |
The following example shows a broadcast message containing two fields. The first field is of type unsigned, entered as a hexadecimal number; the second field is of type string.
RTR> CALL RTR_BROADCAST_EVENT /EVENT=24 0xFA9BC0 /TYPE_OF_ DATA=UNSIGNED/LENGTH=8,"This field of the message is a string" %RTR-S-OK, Normal successful completion |
Previous | Next | Contents | Index |