
send
Sends a message and/or file to one or all console and telnet users.
Syntax: send [ console | vty number | * | file filename]
*
Sends a message to all logged in users
console
Sends a message to logged in console users.
vty number
Sends a message to a logged in vty user or the telnet user.
file filename
Saves a message in a file to send later
Description: The send command send distributes a messages and/or files to all or one of logged in users.
Use the send * command to send a message and/or file to all logged in users.
Use the send console command to send a message and/or file to users logged onto the console.
Use the send vty number command to send a message and/or file to a particular vty user on the system.
Use the send file filename command to save a message in a file.
Factory Default: None.
Command Mode: Privileged.
Example 1: In the following example, a message is sent to all logged in users:
- The send * command is used to send a message to all logged in users.
- The system responds with the prompt for the user to input the text message.
- User types in text message and hits enter. The system displays who the author of the message is, the time and the date of the message as well as the text of the message. The system prompts for a Yes/No answer to send the message.
- User types Y and hits enter to send message
- The system sends message and displays vty users logged in.
router#send *
router#Enter message text: CTRL-F to include a file; CTRL-Z to end; CTRL-C to cancel.
router# This is a test of the send command.
[End]
This is your message:
***
***Message from admin on vty 2 t *
***14:58:37.162 Mon Apr 8 2002
***
This is a test of the send command.
Send message? (y/n)[y]: y
Vty 0 is logged in
Vty 1 is logged in
Vty 3 is logged in
Vty 4 is logged in
Example 2: In the following example, a message is sent to vty 1:
- The send vty 1 command sends a message to the console.
- The system responds with the prompt for the user to input the text message.
- User types in text message and executes by ending with CNTL Z.
- The system displays who the author of the message is, the time and the date of the message as well as the text of the message. The system prompts for a Yes/No answer to send the message.
- User types Y and hits enter to send message
- The system sends message and displays vty users logged in.
router#send vty 1
router#Enter message text: CTRL-F to include a file; CTRL-Z to end; CTRL-C to cancel.
router# This is a test of the send command.
[End]
This is your message:
***
***Message from admin on vty 2 t *
***14:58:37.162 Mon Apr 8 2002
***
This is a test of the send command.
Send message? (y/n)[y]: y
Sending message to vty 1
Example 3: In the following example, a message is sent to the console:
- The send console command sends a message to the console.
- The system responds with the prompt for the user to input the text message.
- User types in text message and executes by ending with CNTL Z.
- The system displays who the author of the message is, the time and the date of the message as well as the text of the message. The system prompts for a Yes/No answer to send the message.
- User types Y and hits enter to send message
- The system sends message and displays vty users logged in.
router#send console
router#Enter message text: CTRL-F to include a file; CTRL-Z to end; CTRL-C to cancel.
router# This is a test of the send command.
[End]
This is your message:
***
***Message from admin on vty 2 t *
***14:58:37.162 Mon Apr 8 2002
***
This is a test of the send command.
Send message? (y/n)[y]: y
Sending message to console.
Example 4: In the following example, a message is saved to a file on the a drive:
- The send file filename command sends a message to the console.
- The system responds with the prompt for the user to input the text message.
- User types in text message and executes by ending with CNTL Z.
- The system displays who the author of the message is, the time and the date of the message as well as the text of the message. The system prompts for a Yes/No answer to send the message.
- User types Y and hits enter to send message
- The system sends message and displays vty users logged in.
router#send file April
router#Enter message text: CTRL-F to include a file; CTRL-Z to end; CTRL-C to cancel.
router# This is a test of the send command.
[End]
This is your message:
***
***Message from admin on vty 2 t *
***14:58:37.162 Mon Apr 8 2002
***
This is a test of the send command.
Send message? (y/n)[y]: y
Sending message to console.
Related Commands:
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: sys_mgmt.fm
HTML File Name: sys_mgmt36.html
Last Updated: 02/25/05 at 14:26:49