[Contents] [Prev] [Next] [Index] [Report an Error]

Sending Messages

You can send a message to one or more terminals with the send command. You can specify a line number, a console number, or a vty number. You can also send the message to all terminals.

The following command sends the message “ hello console” to line 0:

host1#send 0 “ hello console”

The following command sends the message “ hello everyone” to all terminals:

host1#send * “ hello everyone”

If you begin the message on the same line as the send command, the first character of the message is considered to be a delimiter. You must use the same character to terminate the message. In both examples above, the delimiter was a double quotation mark ().

If you press Enter without typing the second delimiter, the CLI prompts you for more message text and reminds you to complete the message with the delimiter, as shown in the following example:

host1#send vty4 XYou can start a message on the same line
 Enter remainder of text message. End with the character 'X'.
and continue it on subsequent lines; the CLI prompts you for
 Enter remainder of text message. End with the character 'X'.
more message text until you enter the second delimiterX
 Proceed with send? [confirm]

If you do not begin the message on the same line as the send command, the CLI prompts you for the message text after you press Enter. The CLI does not recognize delimiters for these messages; you must enter Ctrl+z, as shown in the following example:

host1#send 0
 Enter remainder of text message. End with ^Z.
Good morning, Major Tom^Z
 Proceed with send? [confirm]

The receiving terminals display the message without regard to other output currently displayed on the terminal. Pagination is not affected.

The sending terminal is not affected by the state of the intended receiving terminal. For example, if the receiving terminal is flow-controlled off or at a --More-- prompt, the message is still sent, and the sending terminal is available for further commands. The receiving terminal in this case displays the message when subsequently flow-controlled on or when the user responds to the --More-- prompt.

The receiving terminal displays the message, the line number of the sender, the username of the sender if the user was authenticated through RADIUS, and the time the message was sent.

send


[Contents] [Prev] [Next] [Index] [Report an Error]