show users
Use this command to display information about current users.
Command Syntax
show users
Parameters
None
Default
None
Command Mode
Execution mode and Privileged execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show users
Current user : (*). Lock acquired by user : (#).
CLI user : [C]. Netconf users : [N].
Location : Applicable to CLI users.
Session : Applicable to NETCONF users.
Line User Idle Location/Session PID TYPE Role
(*) 130 vty 0 [C]root 00:00:36 pts/0 20872 Local network-admin
(#) NA [N]root NA 1 NA NA network-admin
NA [N]root NA 2 NA NA network-admin
131 vty 1 [C]joyce 00:00:26 pts/1 17593 Remote network-admin
Here is the explanation of the output fields.
|
Entry |
Description |
|
Current user |
Indicates which CLI or NetConf session is currently active (*). |
|
CLI user |
Shows the session types: [C] for CLI users. |
|
Location |
Indicates context: Location applies to CLI users (e.g., pts/0). |
|
Session |
Session applies to NETCONF users (numeric session ID). |
|
Lock acquired by user |
Indicates which session holds a lock (#). |
|
Netconf users |
Shows the session types: [N] for NETCONF users. |
|
Line |
Virtual terminal line number (vty) for the CLI session or NA for NETCONF sessions. |
|
User |
The username of the session (e.g., root, joyce). |
|
Idle |
How long the user has been idle, in dd:hh:mm or hh:mm:ss format. |
|
Location/Session |
For CLI users: the terminal location (e.g., pts/0). For NETCONF users: the session ID. |
|
PID |
Process identifier name associated with the session (NA for NETCONF sessions without an associated local process). |
|
TYPE |
Type of session: Local (direct console), Remote (SSH or telnet), or NA for NETCONF sessions. |
|
Role |
RBAC role assigned to the user for this session (e.g., network-admin). |