cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
408
Views
0
Helpful
4
Replies

acs search

Mary
Level 1
Level 1

in acs, we manage around a few hundred devices, how to search the device list that with syslog enabled?

 

also I have one switch XYZ and 30 more switches, how to define syslog server name and trap for XYZ only? the rest 30 switches, i don't want to assign syslog server

4 Replies 4

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

ACS is a AAA platform used to manage system access, it is not a configuration management solution which it sounds like what you are after.

If you don't have one of those in place then your best bet is to write a script to parse the running config of your estate and return the lines containing logging host

 

cheers,

Seb.

can you show me the similar script?

OK, you're in luck. This is one of the first python scripts I wrote. It does require that all your running configs have been downloaded to a directory.

The script will parse all the configs for a search string of your choosing, and then group devices together depending on what results are returned:

 

To run it:

python grepDiff.py -s <search_term> -c <path_to_configs>

 

eg:

python grepDiff.py -s aaa -c C:\Users\srupik\PycharmProjects\srupik-apic-em-tools\helplessPottery\src\configs\

 

You can download the script here:

https://github.com/sebrupik/srupik-apic-em-tools/blob/master/wrongBounce/src/grepDiff.py

 

Incidentally if you want something to download all you configs to run the above script against, then I wrote one to do that. It does require that you have APIC-EM installed.

 

https://github.com/sebrupik/srupik-apic-em-tools/blob/master/helplessPottery/src/helplessPottery.py

 

cheers,

Seb.

s, but we don't use aci, can we have the shell script running on server?

Review Cisco Networking products for a $25 gift card