Finding Out Who Is Logged In to the Router

Problem

You are logged in to the router and you want to see who else is logged in.

Solution

Use the show system users command to see who is logged in to the router:

	aviva@router1> show system users
	 9:10PM up 11 hrs, 2 users, load averages: 0.00, 0.00, 0.00
	USER TTY FROM LOGIN@ IDLE WHAT
	mike p0 server1.juniper.net 9:09PM - -tcsh (csh)
	aviva p1 server1.juniper.net 8:42PM - cli

 

Discussion

More than one person can log in to the router at one time. Each person can perform various operations, from viewing router statistics to rebooting the router and changing the router's configuration. Once you access the router, you might also want to see who else is working on the router. You display who is logged in using the show system users command, which is basically the same as the Unix w command. This command shows the username, the terminal number through which they are connected, the server they have logged in from, when they logged in, how long they have been idle, and what they are doing. The output in this recipe shows that the user mike is working in the Unix shell on the router and the user aviva is working in the CLI.

As you are logging in to the router, if others are logged in, the CLI does not display any messages. However, when you enter configuration mode, the CLI indicates that another user is also configuring the router:

	aviva@router1> configure
	Entering configuration mode
	Users currently editing the configuration:
	 mike terminal p2 (pid 5465) on since 2005-04-06 21:30:42 UTC
	 [edit class- 
of-service scheduler-maps]
	The configuration has been changed but not committed

Here, you see that the user mike is also working in configuration mode and has made changes to the class-of-service portion of the configuration.

See Also

Recipe 2.19


Router Configuration and File Management

Basic Router Security and Access Control

IPSec

SNMP

Logging

NTP

Router Interfaces

IP Routing

Routing Policy and Firewall Filters

RIP

IS-IS

OSPF

BGP

MPLS

VPNs

IP Multicast



JUNOS Cookbook
Junos Cookbook (Cookbooks (OReilly))
ISBN: 0596100140
EAN: 2147483647
Year: 2007
Pages: 290
Authors: Aviva Garrett

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net