Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show system users

List of Syntax

Syntax
Syntax (TX Matrix Router)
Syntax (TX Matrix Plus Router)
Syntax (MX Series Router)

Syntax

show system users <no-resolve>

Syntax (TX Matrix Router)

show system users <all-chassis | all-lcc | lccnumber | scc> <no-resolve>

Syntax (TX Matrix Plus Router)

show system users<detail><all-chassis | all-lcc | lcc number | sfc number> <no-resolve>

Syntax (MX Series Router)

show system users <all-members><local><member member-id><no-resolve>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

sfc option introduced for the TX Matrix Plus router in JUNOS Release 9.6.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Description

List information about the users who are currently logged in to the router or switch.

Note: The show system users command lists the information about administrative users that are logged in to a router or switch using the CLI, J-Web, or an SSH client. The output does not list information about web users or automated users that are logged in from a remote client application using Junos XML APIs, such as NETCONF.

Options

none

List information about the users who are currently logged in to the router or switch.

all-chassis

(TX Matrix and TX Matrix Plus routers only) (Optional) Show users currently logged in to all the routers in the chassis.

all-lcc

(TX Matrix and TX Matrix Plus routers only) (Optional) On a TX Matrix router, show users currently logged in to all T640 routers (or line-card chassis) connected to the TX Matrix router. On a TX Matrix Plus router, show users currently logged in to all T1600 routers (or line-card chassis) connected to the TX Matrix Plus router.

all-members

(MX Series routers only) (Optional) Display users currently logged in to all members of the Virtual Chassis configuration.

lcc number

(TX Matrix and TX Matrix Plus routers only) (Optional) On a TX Matrix router, show users currently logged in to a specific T640 router that is connected to the TX Matrix router. On a TX Matrix Plus router, show users currently logged in to a specific T1600 router that is connected to the TX Matrix Plus router. Replace number with a value from 0 through 3.

local

(MX Series routers only) (Optional) Display users currently logged in to the local Virtual Chassis member.

member member-id

(MX Series routers only) (Optional) Display users currently logged in to the specified member of the Virtual Chassis configuration. Replace member-id with a value of 0 or 1.

no-resolve

(Optional) Do not attempt to resolve IP addresses to hostnames.

scc

(TX Matrix routers only) (Optional) Show users currently logged in to the TX Matrix router (or switch-card chassis).

sfc number

(TX Matrix Plus routers only) (Optional) Show users currently logged in to the TX Matrix Plus router (or switch-fabric chassis). Replace number with 0.

Additional Information

By default, when you issue the show system users command on a TX Matrix or TX Matrix Plus master Routing Engine, the command is broadcast to all the T640 (in a routing matrix based on a TX Matrix router) or T1600 (in a routing matrix based on a TX Matrix Plus router) master Routing Engines connected to it. Likewise, if you issue the same command on the TX Matrix or TX Matrix Plus backup Routing Engine, the command is broadcast to all the T640 (in a routing matrix based on a TX Matrix router) or T1600 (in a routing matrix based on a TX Matrix Plus router) backup Routing Engines that are connected to it.

Required Privilege Level

view

List of Sample Output

show system users
show system users lcc no-resolve (TX Matrix and TX Matrix Plus Router)
show system users (TX Matrix Plus Router)
show system users (QFX Series)
show system users no-resolve (QFX Series)

Output Fields

Table 1 describes the output fields for the show system users command. Output fields are listed in the approximate order in which they appear.

Table 1: show system users Output Fields

Field Name

Field Description

time and up

Current time, in the local time zone, and how long the router or switch has been operational.

users

Number of users logged in to the router or switch.

load averages

Load averages for the last 1 minute, 5 minutes, and 15 minutes.

USER

Username.

TTY

Terminal through which the user is logged in.

FROM

System from which the user has logged in. A hyphen indicates that the user is logged in through the console.

LOGIN@

Time when the user logged in.

IDLE

How long the user has been idle.

WHAT

Processes that the user is running.

Sample Output

show system users

user@host> show system users
 7:30PM  up 4 days,  2:26, 2 users, load averages: 0.07, 0.02, 0.01
USER     TTY FROM              LOGIN@  IDLE WHAT
root     d0  -                Fri05PM 4days -csh (csh)
blue   p0 level5.company.net 7:30PM     - cli

show system users lcc no-resolve (TX Matrix and TX Matrix Plus Router)

user@host> show system users lcc 2 no-resolve
lcc2-re0:
--------------------------------------------------------------------------
10:34AM PDT up 1 day,  7:11, 5 users, load averages: 0.03, 0.01, 0.00
USER     TTY      FROM                              LOGIN@  IDLE WHAT
root     d0       -                                3:21AM   7:12 /bin/csh      
user  p0       scc-re0                          10:15AM     - telnet hostA
user  p1       scc-re0                          10:16AM     - telnet hostA
user  p2       scc-re0                          10:19AM     - telnet hostA
user  p3       scc-re0                          10:24AM     - telnet hostA

show system users (TX Matrix Plus Router)

user@host> show system users
sfc0-re0:
--------------------------------------------------------------------------
 1:41AM  up 26 mins, 3 users, load averages: 0.08, 0.04, 0.03
USER     TTY      FROM                              LOGIN@  IDLE WHAT
user  p0       10.209.208.123                   1:18AM     21 cli           
user  p1       172.17.29.207                    1:37AM      2 cli           
user  p2       172.17.28.19                     1:40AM      - cli           

lcc0-re0:
--------------------------------------------------------------------------
 1:41AM  up 26 mins, 0 users, load averages: 0.00, 0.00, 0.03

lcc1-re0:
--------------------------------------------------------------------------
 1:41AM  up 26 mins, 0 users, load averages: 0.00, 0.02, 0.03

lcc2-re0:
--------------------------------------------------------------------------
 1:41AM  up 26 mins, 0 users, load averages: 0.16, 0.06, 0.02

lcc3-re0:
--------------------------------------------------------------------------
 1:41AM  up 26 mins, 0 users, load averages: 0.12, 0.04, 0.04

user@aj> show system users               
sfc0-re0:
--------------------------------------------------------------------------
 1:42AM  up 28 mins, 4 users, load averages: 0.02, 0.03, 0.02
USER     TTY      FROM                              LOGIN@  IDLE WHAT
user  p0       device1.example.com              1:18AM     22 cli           
user  p1       device2.example.com              1:37AM      - cli           
user  p2       device3.example.com              1:40AM      - cli           
user  p3       device4.example.com              1:42AM      - -csh (csh)    

lcc0-re0:
--------------------------------------------------------------------------
 1:42AM  up 28 mins, 0 users, load averages: 0.02, 0.01, 0.03

lcc1-re0:
--------------------------------------------------------------------------
 1:42AM  up 28 mins, 0 users, load averages: 0.07, 0.04, 0.03

lcc2-re0:
--------------------------------------------------------------------------
 1:42AM  up 27 mins, 0 users, load averages: 0.07, 0.06, 0.02

lcc3-re0:
--------------------------------------------------------------------------
 1:42AM  up 28 mins, 0 users, load averages: 0.05, 0.04, 0.04

show system users (QFX Series)

user@switch> show system users
USER     TTY      FROM                              LOGIN@  IDLE WHAT
tlewis   p0       172.22.18.117                    2:54AM     39 -cli (cli)    
tlewis   p1       172.22.18.117                    3:01AM      - -cli (cli)    
tcheng   p2       172.22.17.197                    3:08AM     11 -cli (cli)  

show system users no-resolve (QFX Series)

user@switch> show system users no-resolve
USER     TTY      FROM                              LOGIN@  IDLE WHAT
tlewis   p0       172.22.18.117                    2:54AM     39 -cli (cli)    
tlewis   p1       172.22.18.117                    3:01AM      - -cli (cli)    
tcheng   p2       172.22.17.197                    3:08AM     11 -cli (cli)  

Modified: 2016-06-09

Modified: 2016-06-09