Using the Junos Space CLI to View Users Logged In to the Junos Space GUI
Junos Space administrators can execute the jmp_users command in the Junos Space CLI to view users logged in to the Junos Space GUI.
The command output contains the following details:
USER NAME: Specifies the user logged in to the Junos Space GUI
IP ADDRESS: Specifies the IP address from which the user has logged in to the Junos Space GUI
LOGIN TIME: Specifies the time when the user logged in to the Junos Space GUI
NODE NAME: Specifies the name of the Junos Space node to which the user has logged in or, in other words, the Junos Space node that is serving the user
To view the users logged in to the Junos Space GUI by using the Junos Space CLI:
- Log in to the Junos Space CLI.
The Junos Space Settings Menu appears.
- On the Junos Space Settings Menu, to access shell, type
one of the following numbers:
6, if the Junos Space Appliance is a JA2500 Junos Space hardware appliance
7, if the Junos Space Appliance is a virtual appliance
You are prompted to enter the administrator password.
- Enter the administrator password.
- At the command prompt, type one of the following commands:
jmp_users all to view all the users logged in to the Junos Space fabric
The following sample shows the output of the jmp_users all command:
+-----------+----------------+---------------------+--------------+ | USER NAME | IP ADDRESS | LOGIN TIME | NODE NAME | +-----------+----------------+---------------------+--------------+ | super | 192.168.27.10 | 2014-12-18 8:50:02 | Node4 | | super | 192.168.28.11 | 2014-12-18 9:00:25 | Node4 | | usr01 | 192.168.28.19 | 2014-12-18 10:10:10 | Node3 | | usr02 | 192.168.29.15 | 2014-12-18 11:36:42 | Node3 | +-----------+----------------+---------------------+--------------+
jmp_users -node nodename to view the users logged in to the node specified by nodename; the nodename can be the IP address or the host name of the node
The following sample shows the output of the jmp_users -node Node4 command:
+-----------+----------------+---------------------+--------------+ | USER NAME | IP ADDRESS | LOGIN TIME | NODE NAME | +-----------+----------------+---------------------+--------------+ | super | 192.168.27.10 | 2014-12-18 8:50:02 | Node4 | | super | 192.168.28.11 | 2014-12-18 9:00:25 | Node4 | +-----------+----------------+---------------------+--------------+
jmp_users currentnode to list the users logged in to the same node as the administrator, or in other words, served by the node to which the administrator has logged in
You can also enter only jmp_users, without any options, (default option) to view the users logged in to the same node as the administrator.
The following sample shows the output of the jmp_users currentnode command, where currentnode is Node3:
+-----------+----------------+---------------------+--------------+ | USER NAME | IP ADDRESS | LOGIN TIME | NODE NAME | +-----------+----------------+---------------------+--------------+ | usr01 | 192.168.28.19 | 2014-12-18 10:10:10 | Node3 | | usr02 | 192.168.29.15 | 2014-12-18 11:36:42 | Node3 | +-----------+----------------+---------------------+--------------+