cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
640
Views
0
Helpful
2
Replies

Finding Authgroup's devices.

casbarre
Cisco Employee
Cisco Employee

Hi team,

I'd like to know if it's possible to check  an authgroup's list of devices. I'm only able to view the authgroups  but not the devices they include:

 

 

admin@nso-msl-01(config)# devices authgroups group ?
This line doesn't have a valid range expression
Possible completions:
  The name of the authgroup  ATP             ATP_B           NCS6K-2      PAT         
  ZTP                        cisco           lab_paswd       netsim       operations  
  stc-svs-asr9K              stc-svs-asr920  stc-svs-ncs560  tacacs_test  test4BPA  

 

 Is there a way of finding the list of devices of each authgroup? Would I have to check each device's configuration to see to which authgroup they belong to?

Your help is very much appreciated. Thank you.

Best regards.

2 Replies 2

tcragg1
Cisco Employee
Cisco Employee

Try this:

show running-config devices | display xpath | include "authgroup <<authgroup_name>>"

Nabsch
Spotlight
Spotlight

Hello,

You can  use this command 

 

show running-config devices device * authgroup | display xpath

Or you can write a basic python script that iterate throught device and create a dict ( authgroup_name: [ list of device using the authgroup ] )