cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2152
Views
0
Helpful
3
Replies

APIC CLI to show all currently active sessions

pn2020
Level 1
Level 1

Is there an equivalent CLI command in APIC to show currently active sessions like when you click on System->Active Sessions (snapshot below).

 

I was looking into netstat, but so far haven't found a solution yet.

 

Thanks.

 

Screen Shot 2020-10-14 at 6.21.30 PM.png

2 Accepted Solutions

Accepted Solutions

Robert Burns
Cisco Employee
Cisco Employee

moquery -c aaaActiveUserSession

Regards,

Robert

View solution in original post

Sig Nine
Level 1
Level 1
Hi, pdn2020.

Try the following:
apic1# show aaa sessions 
 Username    User Type   Host             Login Time
 ----------  ----------  ---------------  ------------------------------ 
 admin       local       192.168.1.1      2020-10-16T04:27:08.733+00:00  
 user1       local       192.168.1.2      2020-10-16T04:32:48.238+00:00
Regards,

View solution in original post

3 Replies 3

Robert Burns
Cisco Employee
Cisco Employee

moquery -c aaaActiveUserSession

Regards,

Robert

Sig Nine
Level 1
Level 1
Hi, pdn2020.

Try the following:
apic1# show aaa sessions 
 Username    User Type   Host             Login Time
 ----------  ----------  ---------------  ------------------------------ 
 admin       local       192.168.1.1      2020-10-16T04:27:08.733+00:00  
 user1       local       192.168.1.2      2020-10-16T04:32:48.238+00:00
Regards,

pn2020
Level 1
Level 1

Thanks Robert and Sig.  They both work and are useful.  

Save 25% on Day-2 Operations Add-On License