Management Sessions

mgmt-session-show

In earlier versions of Netvisor, Netvisor did not support viewing current user sessions using the CLI.  This can be very useful for security and troubleshooting. Netvisor now lists all currently logged-in users along with the IP they are connecting from and the login time when you execute the command, mgt-session-show.

Syntax   mgmt-session-show

user user-string

Displays the user name.

cli-user cli-user-string 

Displays the name used to log into the switch.

pid pid-number

Displays the process ID.

terminal terminal-string

Displays the terminal.

from-ip ip-address

Displays the IP address for the user.

login-time date/time: yyyy-mm-ddTHH:mm:ss

Displays the time and date that the user logged into the switch.

remote-node remote-node-string

Displays the name of the remote node.

vnet vnet-string

Displays the VNET assigned to the user.

type cli|api|shell

Displays the type of login session.

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.

sort-asc

Display output in ascending order.

sort-desc

Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.

show-headers|
no-show-headers

Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.

count-output

Display the number of entries in the output. This is useful with vRouter show commands.

unscaled

Display full values in the output instead of scaled approximate values.

raw-int-values

Display integer values instead of mapped values

sum-by

Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

Defaults   None

Access   Network Administrator

History   Command introduced in Version 3.0.0

Usage   Use this command to display users logged into the switch.

Examples  To display users logged into the switch, NAT-1, use the following syntax:

CLI network-admin@switch > mgmt-session-show

switch        user  cli-user      pid   terminal from-ip      login-time     type  

------------- ----- ------------- ----- -------- ------------ -------------- -----

Spine-ext-41  admin network-admin 13805 pts/3    10.60.1.216  11:20:52       cli   

Spine-ext-41  root  network-admin 8589  pts/2    10.14.20.109 11-15,17:16:17 cli   

Spine-ext-41        network-admin                             08:24:10       api   

Spine-ext-41        network-admin                             08:23:40       api   

Spine-ext-41  root                19139 pts/1    10.14.22.54  11-15,11:01:08 shell

Spine-ext-43  root  network-admin 5206  pts/2    10.14.20.109 11-15,17:17:22 cli   

Spine-ext-43  root                12720 pts/3    10.60.1.139  11-16,08:19:26 shell

Spine-ext-43  root                3846  pts/1    10.14.22.54  11-15,11:21:47 shell

Spine-ext-43  root                4614  pts/4    10.14.20.109 11-16,18:21:04 shell

Spine-ext-42        network-admin                             08:24:17       api   

Spine-ext-42        network-admin                             08:24:06       api   

Spine-ext-42  root                12880 pts/1    10.14.20.109 11-15,17:16:51 shell