The Show Users Cisco command
Command Name: show users
Function: The 'show users' command in Cisco networking displays information about the users currently connected to a device. It provides details such as username, IP address, interface, login time, and other relevant information.
Usage: The 'show users' command can be used on various Cisco devices, including routers, switches, and access points. To execute the command, enter 'show users' in the command-line interface (CLI) of the device.
Output: The output of the 'show users' command typically includes the following information:
- Username: The username of the user who is currently logged in to the device.
- IP Address: The IP address assigned to the user's device.
- Interface: The network interface through which the user is connected.
- Login Time: The time when the user logged in to the device.
- Idle Time: The amount of time the user has been idle (inactive) since login.
- Line: The port or virtual terminal number associated with the user's connection.
- State: The current state of the user's connection, such as "active" or "inactive."
Additional Information:
- The 'show users' command can be used to monitor user activity on a Cisco device.
- It is particularly useful for troubleshooting connectivity issues, identifying inactive or idle users, and managing user access.
- The output of the 'show users' command may vary slightly depending on the specific device model and software version.
- The 'show users' command can be combined with other commands to gather more detailed information about user sessions.
- Proper authorization is required to execute the 'show users' command.
show users Usage Examples
- Show All Users (Detailed Information):
show users | include (username | address | login_time)
- Show Active Users:
show users active
or
show users active | count
- Show Users Logged In Within a Specific Time Range:
show users since 00:00 | include (username | address | login_time)
- Show Users Connected to a Specific Interface:
show users interface GigabitEthernet0/1
- Show Users Authenticated by a Specific Method:
show users authentication-method radius
- Show Users Whose Sessions Are Idle:
show users idle
- Show All Users Including Inactive Sessions:
show users all
or
show users all | include (username | address | login_time)
- Show Non-Telnet Users:
show users include non-telnet
- Show Users Connected from a Particular IP Address:
show users source-ip 10.1.1.1
- Show Specific User Details:
show users username john_doe | include (username | address | login_time)