EntireX Broker provides the following internal services: Command Service and Information Service, which can be used to administer and monitor brokers. Because these services are implemented internally, nothing has to be started or configured. You can use these services immediately after starting EntireX Broker. This document covers the following topics:
Queries the Broker for different types of information, generating an
output text string with basic formatting. This text output can be further
processed by script languages. ETBINFO
uses data descriptions called profiles
to control the type of data that is returned for a request. ETBINFO
is useful
for monitoring and administering EntireX Broker efficiently, for example how
many users can run concurrently and whether the number of specified message
containers is large enough.
Although basic formatting of the output is available, it is usually formatted by script languages or other means external to the Broker.
In a BS2000/OSD environment, run the command-line utility ETBINFO
as shown below:
/CALL-PROCEDURE (LIB=EXX960.JOBS,ELE=ETBINFO)
This executes the utility in BS2000/OSD dialog mode.
The ETBINFO
parameters are supplied using an SDF variable, for
example:
/COMMAND = '-b&(BROKER-ID) -dBROKER'
See the delivered ETBINFO
job control in EXX960.JOBS.
The table below explains the command-line parameters. The format string and profile parameters are described in detail following the table. All entries in the Option column are case-sensitive.
Option | Command-line Parameter | Req/ Opt |
Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-b |
brokerid |
R | Broker identifier, for example
localhost:1971:TCP .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-c |
class |
O | Class as selection criterion. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-C |
csvoutput |
O | Comma-separated values, suitable for input into a spreadsheet or other analysis tool. Any format string specified by means of format string or profile command-line parameters is ignored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-d |
object |
R | Possible values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-e |
recv class |
O | Receiver's class name. This selection criterion
is valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-f |
Format String | O | Format string how you expect the output. See Profile. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-g |
recv service |
O | Receiver's service name. This selection criterion
is valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-h |
help |
O | Prints help information. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-i |
convid |
O | Conversation ID as selection criterion. Only
valid for object CONVERSATION .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-I |
conv type |
O | Conversation's type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-j |
recv server |
O | Receiver's server name. This selection criterion
is valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-k |
recv token |
O | Receiver's token. This selection criterion is
valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-l |
level |
O | The amount of information displayed:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-m |
recv userid |
O | Receiver's user ID. This selection criterion is
valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-n |
server name |
O | Server name. This selection criterion is valid
only for the objects SERVER ,
SERVICE or
CONVERSATION .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-p |
file | O | Here you can specify a file that defines the layout of the output. There are
default files you can modify or you can use your own. The default files are:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-q |
puserid |
O | Physical user ID. This selection criterion is
valid only for objects CLIENT ,
SERVER ,
CONVERSATION ,
SUBSCRIBER ,
PUBLISHER or
PUBLICATION .
Note: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-P |
publication id |
O | Publication ID. This selection criterion is valid
only for object PUBLICATION .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-r |
sec |
O | Refresh information after seconds. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-s |
service |
O | Service. This selection criterion is valid only
for objects SERVER ,
SERVICE or
CONVERSATION .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-S |
"sslparms" |
O | When using SSL transport. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-t |
token |
O | This selection criterion is valid only for
objects CLIENT ,
SERVER , SERVICE ,
CONVERSATION ,
SUBSCRIBER ,
PUBLISHER ,
PUBLICATION or
TOPIC .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-T |
topic |
O | Topic name. This selection criterion is valid
only for objects PUBLICATION ,
SUBSCRIBER ,
PUBLISHER , or
TOPIC .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-u |
userid |
O | User ID. This selection criterion is only valid
for the display types CLIENT ,
SERVER , SERVICE ,
CONVERSATION ,
SUBSCRIBER ,
PUBLISHER ,
PUBLICATION or
TOPIC .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-U |
subscr type |
O | Subscriber's subscription type. This selection
criterion is valid only for object
SUBSCRIBER .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-v |
UOW status |
O | Unit of work status. This selection criterion is
valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-w |
UOW ID |
O | Unit of work ID. This selection criterion is
valid only for object PSF .
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
-x |
userid |
O | User ID. For security purposes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-y |
password |
O | Password. For security purposes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
-z |
token |
O | Used with userid
to uniquely identify a caller to Command and Information Services.
|
If you do not use the profile option or a format string, your output will be an unformatted list with all columns of that display type. To display specific columns, specify a profile that includes only those columns.
The following default sample profiles include all the columns defined for each display type:
|
|
|
You can either delete the columns not required or copy the default profile and modify the order of the columns. Ensure that the column names have a leading "%". Column names can be written in one line or on separate lines. The output is always written side by side.
On BS2000/OSD, the profiles used to control the amount of data
displayed are contained in EXX960.JOBS and are called
PRO-BROKER
, PRO-CLIENT
etc.
Profile for object SERVICE: PRO-SERVICE.
To use a profile, the profile itself needs to be extracted from LMS
library EXX960.JOBS. Uncomment the LMS-section including SDF variable
COMMAND
in S-procedure ETBINFO
and adapt the
profile name. For example:
... / START-LMS // MOD-LMS-DEFAULTS MAX-ERROR-WEIGHT=*RECOVERABLE // EXTRACT-ELEMENT - // *LIB(LIB = &(EXX-JOBS), - // ELEM = PRO-SERVICE, - // TYPE = S), - // TO-FILE = #PROFILE, - // FILE-ATTR = (ACCESS-METHOD=*SAM), - // WRITE-MODE = *ANY //END /COMMAND = '-b&(BROKER-ID) -dSERVICE -p#PROFILE -lFULL' ...
See also the delivered ETBINFO
job control in EXX960.JOBS for more
details.
The format string, if specified, will override the use of a profile. The
format string is built like a printf()
in C language.
The string must be enclosed in quotation marks. You can specify the columns by
using a "%" and the column name. The column name must contain
letters only. Numeric characters are not allowed. You can specify the length of
column output by using a format precision, as in the ANSI-C
printf()
function. The column name must be followed by
a blank. For example:
/COMMAND = '-b&(BROKER-ID) -d BROKER -f "%12.12CPLATNAME %NUM-SERVER %NUM-CLIENT"'
which produces the following output, for example:
BS2000/OSD W 30 100
You can also use an arbitrary column separator, which can be any
character other than "%". You can use \n
for a new
line in the output and \t
for a tabulator in the format string or
profile. For example:
/COMMAND = '-b&(BROKER-ID) -d SERVER -f "UserID: %5.5USER-ID Token: %5.5TOKEN"'
which produces:
UserID: HUGO Token: MYTOK UserID: EGON Token: UserID: HELMU Token: Helmu
If you want to structure your output a little more, you can operate with
the \n
or \t
character. For example:
/COMMAND = '-b&(BROKER-ID) -d SERVICE -f "Class:%5.5SERVER-CLASS \n\tName:%5.5SERVER-NAME \n\tService:%5.5SERVICE"
which produces:
Class:DATAB Name:DB10 Service:Admin Class:PRINT Name:LPT1 Service:PRINT ...
Allows the user to take actions - for example purge a unit of work, stop a server, shut down a Broker - against EntireX Broker.
In a BS2000/OSD environment, run the ETBCMD
command-line utility like
this:
/CALL-PROCEDURE (LIB=EXX960.JOBS,ELE=ETBCMD)
This executes the utility in BS2000/OSD dialog mode.
The ETBCMD parameters are supplied using an SDF variable. For example:
/COMMAND = '-b&(BROKER-ID) -dBROKER -cTRACE-ON -oLEVEL1'
See also delivered ETBCMD
job control in EXX960.JOBS.
The table below explains the command-line parameters. All entries in the Option column are case-sensitive.
Command-line Parameter | Option | Parameter | Req/ Opt | Explanation |
---|---|---|---|---|
brokerid |
-b |
e.g. ETB001 |
R | Broker ID. |
command |
-c |
|
R | Command to be performed. See List of Commands and Objects below. |
object type |
-d |
|
R | The object type to be operated on. See List of Commands and Objects below.
Within EntireX Broker nomenclature, a participant is an application implicitly or explicitly logged on to the Broker as a specific user. A participant could act as client, server, publisher or subscriber. |
-e |
errornumber |
O | Error number being trapped. | |
-E |
O | Exclude attach servers from service shutdown. | ||
help |
-h |
O | Prints help information. | |
class/server/service |
-n |
class/server/service |
O | Service triplet. |
option | -o |
|
O | Command option. |
puserid |
-p |
puserid |
O | Physical User ID. For SERVER and PARTICIPANT objects only. This
must be a hex value.
|
sslparms |
-s |
SSL parameters | O | When using SSL transport. |
seqno |
-S |
sequence number |
O | Sequence number of participant. |
token |
-t |
token |
O | Token. For PARTICIPANT and SUBSCRIBER objects only.
|
topic |
-T |
topic |
O | Topic name. For SUBSCRIBER object only.
|
uowid |
-u |
uowid |
O | Unit of work ID. For PSF object only. |
userid |
-U |
userid |
O | User ID. For PARTICIPANT and SUBSCRIBER objects only.
|
secuserid |
-x |
userid |
O | User ID for security purposes. |
transportid |
-X |
Transport ID | O | One of the following:COM|NET|SSL|Snn|TCP|Tnn . See table below.
|
secpassword |
-y |
password |
O | Password for security purposes. |
This table explains the possible values for parameter transportid
:
Transport ID | Explanation |
---|---|
COM |
all communicators |
NET |
NET transport communicator |
SSL |
all SSL communicators |
S00 |
SSL communicator 1 |
S01 |
SSL communicator 2 |
S02 |
SSL communicator 3 |
S03 |
SSL communicator 4 |
S04 |
SSL communicator 5 |
TCP |
all TCP/IP communicators |
T00 |
TCP/IP communicator 1 |
T01 |
TCP/IP communicator 2 |
T02 |
TCP/IP communicator 3 |
T03 |
TCP/IP communicator 4 |
T04 |
TCP/IP communicator 5 |
This table lists the available commands and the objects to which they can be applied.
Command | Object | ||||||||
---|---|---|---|---|---|---|---|---|---|
ALLOW-NEWUOWMSGS |
x | ||||||||
CLEAR-CMDLOG-FILTER |
x | ||||||||
CONNECT-PSTORE |
x | ||||||||
DISABLE-ACCOUNTING |
x | ||||||||
DISABLE-CMDLOG-FILTER |
x | ||||||||
DISABLE-CMDLOG |
x | ||||||||
DISCONNECT-PSTORE |
x | ||||||||
ENABLE-ACCOUNTING |
x | ||||||||
ENABLE-CMDLOG-FILTER |
x | ||||||||
ENABLE-CMDLOG |
x | ||||||||
FORBID-NEWUOWMSGS |
x | ||||||||
PING |
x | ||||||||
PRODUCE-STATISTICS |
x | ||||||||
PURGE |
x | ||||||||
RESET-USER |
x | ||||||||
SET-CMDLOG-FILTER |
x | ||||||||
SHUTDOWN |
x | x | x | x | x | ||||
START |
x | ||||||||
STATUS |
x | ||||||||
STOP |
x | ||||||||
SUBSCRIBE |
x | ||||||||
SWITCH-CMDLOG |
x | ||||||||
TRACE-OFF |
x | x | x | ||||||
TRACE-ON |
x | x | x | ||||||
UNSUBSCRIBE |
x |
Note:
Object type TRANSPORT
applies to operating systems z/OS and z/VSE only.
Example | Description |
---|---|
/COMMAND ='-h' |
Displays ETBCMD help text. |
/COMMAND='-b &(BROKER-ID) -d BROKER -c
TRACE-OFF' |
Turns Broker tracing off. |
/COMMAND='-b &(BROKER-ID) -d BROKER -c TRACE-ON -o
LEVEL2' |
Sets Broker trace level to 2. |
/COMMAND='-b &(BROKER-ID) -d BROKER -c
SHUTDOWN' |
Performs Broker shutdown. |
/COMMAND='-b &(BROKER-ID) -d SERVICE -c SHUTDOWN -o IMMED -n
ACLASS/ASERVER/ASERVICE' |
Shutdown service CLASS=ACLASS,SERVER=ASERVER,SERVICE=ASERVICE .
See also SHUTDOWN SERVICE for more information on
shutdown options.
|
Create list of servers and shutdown specific server in two
steps (first step uses ETBINFO ). See also SHUTDOWN SERVER .
|
|
/COMMAND='-b &(BROKER-ID) -d SERVER -l FULL -f"%USER-ID
%SEQNO"' |
1. Determine a list of all servers with sequence numbers. |
/COMMAND='-b &(BROKER-ID) -d SERVER -c SHUTDOWN -o IMMED
-S32' |
2. Shutdown server with sequence number 32. |
/COMMAND='-b &(BROKER-ID) -d BROKER -c
PING' |
Performs an EntireX ping against the Broker. |
/COMMAND='-b &(BROKER-ID) -d PSF -c
DISCONNECT-PSTORE' |
Disconnects the Broker PSTORE. |
/COMMAND='-b &(BROKER-ID) -d PSF -c
CONNECT-PSTORE' |
Connects the Broker PSTORE. |
/COMMAND='-b &(BROKER-ID) -d PSF -c PURGE -u
100000000U00001A' |
Purges a unit of work. |
/COMMAND='-b &(BROKER-ID) -d PSF -c
ALLOW-NEWUOWMSGS' |
Allows new units of work to be stored. |
/COMMAND='-b &(BROKER-ID) -d PSF -c
FORBID-NEWUOWMSGS' |
Disallows new units of work to be stored. |
/COMMAND='-b &(BROKER-ID) -d SUBSCRIBER -c SUBSCRIBE -U U1 -t t1 -T
NYSE' |
Subscribes subscriber to topic NYSE. |
/COMMAND='-b &(BROKER-ID) -d SUBSCRIBER -c UNSUBSCRIBE -U U1 -t t1 -T
NYSE' |
Unsubscribes subscriber from topic NYSE. |
The broker command-line utility etbsrv
monitors and controls all local brokers; remote
brokers can also be monitored.
Use command BROKER START
to start a specified broker:
ETBSRV
BROKER START "ETB001"
Use command BROKER PING
to display the status of a specified local or remote broker.
Return code 0 means the broker is running; any other value means the broker has stopped. See Component Return Codes in EntireX.
Example:
ETBSRV
BROKER PING "ETB001"
Enter the command without specifying a broker to display the status of all brokers.
The information is the same as displayed using System Management Hub.
Use command BROKER PINGRPC <brokerid> <class/server/service>
to display the status of a
specified RPC server.
Return code 0 means the RPC server is running; any other value means the RPC server has stopped. See Component Return Codes in EntireX.
Example:
ETBSRV
BROKER PINGRPC "ETB001" "SAG/ETBCIS/RPCCIS"
The information is the same as displayed using System Management Hub.
Use command
to stop and restart a specified broker. Example:
ETBSRV
BROKER RESTART
BROKER RESTART "ETB001"
Use command BROKER STOP
to stop a local broker. Example:
ETBSRV
BROKER STOP "ETB001"
Activate security with command
; once activated, security can only be deactivated with command
ETBSRV
SECURITY ENABLESECURITY DISABLE
.
To enable automatic scripts to execute administration service commands without having to enter a password,
set the option TRUSTED-USER=YES
when administration service security is activated.
ETBSRV
SECURITY ENABLE TRUSTED-USER=YES
Disable security with command
.
ETBSRV
SECURITY DISABLE