Multiple User Sessions
Page 4-35

Communicating with Other Users

If you want to send a message to another user, enter write followed by the user’s session
number. If you wanted to send a message to a user connected on the console port (session
0), you would enter
write 0
at the system prompt. The switch would then display
Enter message. (End with CTRL-D or 'exit')
Everything you type now will by sent to the user connected on the console port until you
press CTRL-D or enter exit on a line by itself. Here is an example of the write command:
write 0
I need the write privilege
exit
The user receiving the message would see the following:
Message from user 'admin' on session 3.
I need the write privilege
End of message.
If you enter an invalid session number, the switch will display an error message. For exam-
ple, if you entered
write 1
at the system prompt and no user was connected through the modem port (session 1), the
switch would display
ERROR: Session 1 is an invalid session number.
Note
After you have received a message or after you have
written a message you must press the <Enter> key to
regain the system prompt.

Deleting Other Sessions

If you are logged on as admin or diag, you can kill the session of another user. For example, if
you want the write privilege and you are logged on as diag or admin, you must end the
session of the user who currently has the write privilege with the kill command. The syntax
for the kill command is as follows:
kill [[-t <timeout>] -f] <session_number>
The session_number is assigned by the switch and can be displayed with the who command,
which is described in Listing Other Users on page 4-34. If you do not use the -f option, then
the system will wait until the other user presses <Enter> or finishes his current command. If
you do use this option, then the other user’s session will be terminated immediately.
The -t option can be used with the -f option to set the amount of time before the other user’s
session is terminated. See Advanced Kill Command Options on page 4-37 for descriptions of
the -f and -t options.