08-05-2022 07:42 AM
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.
08-05-2022 09:50 AM
Try this:
show running-config devices | display xpath | include "authgroup <<authgroup_name>>"
08-20-2022 10:11 AM
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 ] )
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide