Message configuration is one of the important tasks while sending a CLI command to device. You can do message configuration for the following reasons.
Message suffix differs from device to device. It may be \n for UNIX OS where as \r for Windows OS.
The prompt varies from device to device. In general, the prompt for UNIX machines is $, #, or some other where as for Windows it may be :\>. If you are connecting devices such as routers the prompt may be > in user mode where as # in privilege mode. Hence you need to change the prompt to send CLI commands to devices such as routers in different modes.
Some times you may need to increase the timeout after establishing the connection, as some responses may need more time to receive the response.
You may need to send different prompts for receiving the response from the device that can be addressed by enabling the action for multiple prompts.
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