Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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>

    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 OS 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 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:

    • 0 through 3, when T640 routers are connected to a TX Matrix router in a routing matrix.
    • 0 through 3, when T1600 routers are connected to a TX Matrix Plus router in a routing matrix.
    • 0 through 7, when T1600 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.
    • 0, 2, 4, or 6, when T4000 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.
    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 routersonly) (Optional) Show users currently logged in to the TX Matrix Plus router. Replace number with 0.

    Additional Information

    By default, when you issue the show system users command on the master Routing Engine of a TX Matrix router or a TX Matrix Plus router, the command is broadcast to all the master 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

    List of 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)

    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, 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      
    regress  p0       scc-re0                          10:15AM     - telnet hostA
    regress  p1       scc-re0                          10:16AM     - telnet hostA
    regress  p2       scc-re0                          10:19AM     - telnet hostA
    regress  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
    regress  p0       10.209.208.123                   1:18AM     21 cli           
    regress  p1       172.17.29.207                    1:37AM      2 cli           
    regress  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
    
    regress@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
    regress  p0       pssraj-t61.jnpr.net              1:18AM     22 cli           
    regress  p1       eng-shell4.juniper.net           1:37AM      - cli           
    regress  p2       bigpink.juniper.net              1:40AM      - cli           
    regress  p3       sv-cuty-01.englab.juniper.net    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)  

    Published: 2013-08-15