Cisco IOS – Send message to other users on the system

If you work in an environment were it is common that there are more than 1 person in a device at a given time or you notice there are other people logged in when you are going to be doing some intrusive maintenance it may be beneficial to send a message to that other person to let them know. A quick and dirty way to do this is directly from the command line itself using the ‘send’ command.

 

First you will want to check to see if another user is logged in and how they are logged in (vty, console) to do this you will use the show users command.

So I can see that I am user 2 because I have the “*” on my line, and I see that user1 is logged into vty0, so I can send a message directly to that terminal by issuing the command below.

send vty 0 : Sends a message to the vty 0 channel

After hitting enter I am prompted to enter a message.

I enter the message and hit control + z to exit and send the message

Hit enter to confirm

 

And If we look at the console of user1 we can see the message come through.

 

So now user1 and user2 could communicate back and forth via this method, now lets say I am again user2 and want to send a message to every terminal on the system because I am about to reboot the device. Rather than sending a message to each logged in user (if there are more than 2) I can send a broadcast and below is an example of doing that, note the command is ‘send *’.

 

 

As you can see the message also appeared on my own terminal because it has been broadcasted to the entire system, now I know that anyone logged into the system knows my plan to reboot and knows a way to contact me in the event they need me to wait.

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*