Configuring Message Parameters

 

Message configuration is one of the important tasks while sending a CLI command to device. You can do message configuration for the following reasons.

The following message parameters can be configured before sending messages through the CLI Browser :

 

 

Set the request Time-out

 

Sets the timeout in milliseconds for the request message. If the response is not received within the time a timeout occurs.

 

Set the Message Suffix

 

Sets the message suffix for the message. This will be appended at the end of each message sent.

 

Set the Message Prompt

 

This is the Prompt/delimiter for the command being sent. The default Message Prompt will be set according to Prompt/Delimiter set in the Connection Parameters while trying to establish connection with the remote host. It can be configured according to the Prompt/Delimiter expected in the response for the input command.

 

Interrupt Command to be Sent

 

If the response is not received within the time-out, the interrupt command will be sent to the device. It can be set in such a way that the command prompt returns and the next command can be sent.

 

Enable the Command Echo

 

It is to indicate whether to enable or disable the command echoing. By enabling the CommandEcho, the command that is sent will be displayed in the response received.

 

Disable the Prompt Echo

 

It is to indicate whether to disable or enable the prompt echoing. By disabling the PromptEcho the prompt will not be displayed. For this function to work set the whole command prompt in the text field where the Message Prompt/Delimiter is set.

 

Enable Action for Multiple Prompts

 

Set the possible multiple prompts and corresponding actions, for setting the prompts the device can return after executing a command. In general, when the response does not fit into the screen, it prompts for an action from user to receive the remaining response.

 

For example in UNIX machines when commands such as man is sent to the device, it prompts ":" after receiving a block of response and you have to send "space" from Keyboard as a corresponding action.

 

 

After enabling the action for multiple prompts, you can add the prompt and corresponding action to perform. All the prompts and corresponding actions are added in a table. While sending CLI command to the device, if it encounters any of the prompt the corresponding action will be sent to the device.

 

Note: To Configure the Message Parameters

  • Click in Toolbar or Settings from Edit menu.

  • To display the command that is sent in Response Received Tab Enable the CommandEcho check box.

  • Check/Un-check the Disable CommandEcho check box to hide/display the command prompt in Response Received Tab. For this function to work set the whole command prompt in the text field where the Message Prompt/Delimiter is set.

  • Set the Request Timeout in milliseconds for receiving the response (timeout occurs and an exception is thrown if response is not received within that period).

  • Set the Message Suffix to be appended at the end of each message sent (default is \n).

  • Set the Message Prompt according to the Prompt/Delimiter expected in the response for the input command sent.

  • Enable Action for Multiple Prompts and store the prompt and corresponding action.

  • Click OK to accept or to Cancel to the configuring message parameters.

 

 



Copyright © 2009 ZOHO Corp. All Rights Reserved.