9.3.3.2.1 What are Built-in Commands?
9.3.3.2.2 Enabling Built-in Commands
9.3.3.2.3 Built-in Commands in AdventNet TL1 Agent
9.3.3.2.4 Using General Built-in Commands
9.3.3.2.5 Using Delayed Activation Built-in Commands
Built-in Commands are provisioning input commands common to all OS/NE interfaces. They are commonly used input commands that have already been implemented in the Multi-protocol TL1 Agent.
Some General Built-in Commands as well as Built-in Commands for Delayed Activation have already been implemented in the TL1 Agent and are available in the tl1builtincommand.tcs file. This file can be loaded from the TL1 Browser to query any running agent. Please note that since the commands in the TCS file has already been implemented, it should not be loaded in the JMX Compiler for code generation
9.3.3.2.2 Enabling Built-in Commands
Follow the steps
below to enable Built-in Commands support in the JMX-TL1 Agent. Please
note that you have to enable Built-in Commands support before code generation.
|
9.3.3.2.3 Built-in Commands in AdventNet TL1 Agent
The TL1 Agent supports six general Built-in Commands and three Built-in Commands for Delayed Activation. You can use these commands to query the JMX-TL1 Agent both from the TL1 Browser and from the Craft or telnet terminal.
The JMX-TL1 Agent supports the following Built-in Commands for Delayed Activation feature.
Following are
the general Built-in commands that are available in the JMX-TL1 Agent.
These commands are available in the tl1builtincommands.tcs file.
Before testing the examples for Built-in commands, make sure you do the
following.
|
1. Command To Inhibit Autonomous Message
The syntax for this Built-in Command is as follows:
INH-AUTMSG:::<ctag>::;
When this Built in Command is executed, the agent stops sending Autonomous messages. All the Autonomous Messages generated after executing this command will be stored in the memory and will not be displayed.
E.g.: INH-AUTMSG:::4::;
2. Command To Allow Autonomous Messages
The syntax for this built-in command is as follows:
ALW-AUTMSG:::<ctag>::;
This Command generally follows Inhibit Autonomous Message Command. After execution of this command, the agent will start sending Autonomous Messages that were initially stopped using the Inhibit Autonomous Message Command.
E.g.: ALW-AUTMSG:::5::;
3. Command To Clear Autonomous Messages
The syntax for this built-in command is as follows:
CLR-ALARM:::<ctag>::;
This Command is used to clear all the Autonomous messages that are collected in the memory as a result of execution of Inhibit Autonomous Message Command. The execution of this command usually follows Inhibit Command.
For example, you may initially want to stop receiving Autonomous Messages, for which you may execute the Inhibit Autonomous Message Command. Then after a while, you may want to view only the Autonomous Messages from a given time, i.e., you may not need the previously generated Autonomous Messages. Under such circumstances, you can execute the Clear Autonomous Message command followed by Allow Autonomous Message Command.
E.g.: CLR-ALARM:::6::;
4.Command To Set the Source Identification String
The syntax for this built-in command is as follows:
SET-SID:::<ctag>::<INPUT SOURCE ID STRING>;
This Built-in Command is used for setting the source identification string. The default value "machine name" can be replaced by a string of your choice using this string. Source identifier resets output and autonomous message header. It identifies the NE from where output and autonomous messages are coming.
E.g.: SET-SID:::7::System;
The above example sets "System" as the source identification string.
5. Command To Get the List of Built-in Commands
The syntax for this built-in command is as follows:
GET-CMD-BLTIN:::<ctag>::;
This Command lists all the available Built-in Commands.
Example Request:
GET-CMD-BLTIN:::1::;
Example Response:
| Request Sent = GET-CMD-BLTIN:::1::; Response Message Received From :localhost <CR> <LF><LF> system 02-01-08 19:39:35<CR> <LF>M 67 COMPLD<CR> <LF> "ALW-AUTMSG"<CR> <LF> "CLR-ALARM"<CR> <LF> "INH-AUTMSG"<CR> <LF> "SET-SID"<CR> <LF> "GET-CMD"<CR> <LF> "ACT-DA"<CR> <LF> "CANC-DA"<CR> <LF> "RTRV-DA"<CR> <LF>; |
6. Command To Get the List of All Registered Commands.
The syntax for this built-in command is as follows:
GET-CMD-REG:::<ctag>::;
This Command Lists all the Commands that are registered with the agent. This includes the registered Built-in Commands as well as the Commands that are specific to the TCS file.
9.3.3.2.5 Using Delayed Activation Built-in Commands
Following the
Built-in commands for Delayed Activation feature are available in the JMX-TL1
Agent. These commands are available in the tl1builtincommands.tcs
file. Before testing the examples for Built-in commands, make sure you
do the following.
Please note that Delay Activation of messages are session specific. Retrieving, Activating and Canceling of Delayed Activation of Messages are also session specific. |
1.Command To Activate Delayed Activation
The syntax for this command is as follows:
ACT-DA::[ALL|ORDNUM]:<ctag>::;
This command executes the input message, which is stored in a message pending buffer for manual activation. This can also be called as Delayed Manual Activation.
By specifying ALL in the AID part of the command, all the pending messages in the buffer will be executed and corresponding responses will be sent immediately.
E.g.:ACT-DA::all:26::;
The above example activates all commands that were delayed activation and sends the processed response.
When ORDNUM, i.e., order number is specified in the AID part of the command, the input message for the corresponding order number alone will be executed and response will be sent.
E.g.: ACT-DA::3:26::;
The above example activates the command with Order Number as 3 that was delayed activation and sends the processed response.
2. Command To Cancel Delayed Activation
The syntax for this command is as follows:
CANC-DA::[ALL|ORDNUM]:<ctag>::;
Using this Command, the Delayed activation of the input message that was initially stored in a Message Pending buffer for execution at a later time can be canceled. This input command deletes the input message from the message pending buffer.
By specifying ALL in the AID part of the command, all the pending messages in the buffer are deleted.
E.g.:CANC-DA::all:26::;
The above example cancels the execution of all commands that were delayed activation.
When ORDNUM, i.e., order number is specified in the AID part of the command, the input message for the corresponding order number alone will be deleted from the message pending buffer.
E.g.:CANC-DA::3:26::;
The above example cancels the execution of the command with Order Number as 3 that was delayed activation.
3.Command To Retrieve Delayed Activation
The syntax for this command is as follows:
RTRV-DA::[ALL|ORDNUM]:<ctag>::TTYPE=TIME/MANUAL,TTIMEGE=yy-mm-dd-hh-mm, TTIMELE=yy-mm-dd-hh-mm;
Execution of this command lists the pending input messages in the buffer for Delayed Activation.
The AID part of the command is compulsory.
By specifying ALL in the AID part of the command, all the pending messages for Delayed Activation in the buffer gets retrieved and listed. The MPB list is keyword defined.
E.g., Request Sent:
RTRV-DA::all:::;
E.g., Response:
| Response Message
Received From :localhost <CR> <LF><LF> Source 02-01-08 17:14:07<CR> <LF>M 16 COMPLD<CR> <LF> "ORDERNUMBER=2:GB=,18-0-0:OR_MESG=RTRV-PM"<CR> <LF> ":GB=2-1-8,18-0-0:OR_MESG=ALW-LPBK"<CR> <LF> "ORDERNUMBER=3:GB=2-1-9:OR_MESG=RD-MEM"<CR> <LF> "ORDERNUMBER=4:GB=2-1-9,18-30-0:OR_MESG=OPR-SYNCNSW"<CR> <LF>; |
The above examples retrieves the all the commands that were Delayed activation.
When ORDNUM, i.e., order number is specified in the AID part of the command, the input message for the corresponding order number alone gets retrieved from the message pending buffer and listed.
E.g., Request Sent
RTRV-DA::1:23::;
E.g., Response
| Response Message Received From
: localhost <CR> <LF><LF> Source 02-01-09 22:51:49<CR> <LF>M 23 COMPLD<CR> <LF> "ORDERNUMBER=1:OR_MESG=RD-MEM"<CR> <LF>; |
The above examples retrieves the Delay activation command with OrderNumber 1.
TTYPE, TTIMEGE, and TTIMELE are the Message Payload block parameters for which values can be passed. These are optional inputs. One, two, or all the three MPB parameters can be passed as input along with any one of the AIDs. This helps in retrieving the required Input message quickly.
TTYPE is the target type, which can be Manual Delayed Activation input message or Automatic Delayed Activation input message. TTYPE can be MANUAL, or TIME, or BOTH.
TTIMEGE is the equal to or greater than time for which pending input message is to be retrieved and listed.
TTIMELE is the equal to or lesser than time for which pending input message is to be retrieved and listed.
TTIMEGE and TTIMELE are applicable only when TTYPE is specified as TIME.
E.g., Request
RTRV-DA::all:25::TTYPE=TIME, TTIMEGE=02-01-08, TTIMELE=02-01-09;
E.g., Response
| Response Message Received From :localhost <CR> <LF><LF> Source 02-01-08 17:21:58<CR> <LF>M 25 COMPLD<CR> <LF> "ORDERNUMBER=2:GB=,18-0-0:OR_MESG=RTRV-PM"<CR> <LF> "ORDERNUMBER=0:GB=2-1-8,18-0-0:OR_MESG=ALW-LPBK"<CR> <LF> "ORDERNUMBER=3:GB=2-1-9:OR_MESG=RD-MEM"<CR> <LF>; |