show system users
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>
Description
List information about the users who are currently logged in to the router or switch.
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 routers and TX Matrix Plus routers only) (Optional) Show users currently logged in to all the routers in the chassis. |
all-lcc | (TX Matrix routers 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 connected T1600 or T4000 LCCs. |
all-members | (MX Series routers only) (Optional) Display users currently logged in to all members of the Virtual Chassis configuration. |
lcc number | (TX Matrix routers 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 router that is connected to the TX Matrix Plus router. Replace number with the following values depending on the LCC configuration:
|
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 |
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 routersonly) (Optional) Show users
currently logged in to the TX Matrix Plus router. Replace |
Additional Information
By default, when you issue the show system users
command
on the primary Routing Engine of a TX Matrix router or a TX Matrix
Plus router, the command is broadcast to all the primary Routing Engines
of the LCCs connected to it in the routing matrix. Likewise, if you
issue the same command on the backup Routing Engine of a TX Matrix
or a TX Matrix Plus router, the command is broadcast to all backup
Routing Engines of the LCCs that are connected to it in the routing
matrix.
Required Privilege Level
view
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.
Field Name |
Field Description |
---|---|
|
Current time, in the local time zone, and how long the router or switch has been operational. |
|
Number of users logged in to the router or switch. |
|
Load averages for the last 1 minute, 5 minutes, and 15 minutes. |
|
Username. |
|
Terminal through which the user is logged in. |
|
System from which the user has logged in. A hyphen indicates that the user is logged in through the console. |
|
Time when the user logged in. |
|
How long the user has been idle. |
|
Processes that the user is running. |
Sample Output
- show system users
- show system users lcc no-resolve (TX Matrix, TX Matrix Plus Router)
- show system users (TX Matrix Plus Router)
- show system users (QFX Series)
- show system users no-resolve (QFX Series)
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, 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 user1 p0 scc-re0 10:15AM - telnet hostA user1 p1 scc-re0 10:16AM - telnet hostA user1 p2 scc-re0 10:19AM - telnet hostA user1 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 user2 p0 10.209.208.123 1:18AM 21 cli user2 p1 192.0.2.207 1:37AM 2 cli user2 p2 192.0.2.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 user3@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 user1 p0 192.0.2.117 2:54AM 39 -cli (cli) user2 p1 192.0.2.116 3:01AM - -cli (cli) user3 p2 192.0.2.97 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 user1 p0 192.0.2.117 2:54AM 39 -cli (cli) user2 p1 192.0.2.116 3:01AM - -cli (cli) user3 p2 192.0.2.97 3:08AM 11 -cli (cli)
Release Information
Command introduced before Junos OS Release 7.4.
sfc
option introduced for the TX Matrix Plus router
in JUNOS OS Release 9.6.