09-21-2017 02:18 AM - edited 03-08-2019 12:07 PM
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
09-21-2017 07:28 AM
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.
09-28-2017 03:18 AM
09-28-2017 03:46 AM - edited 09-28-2017 11:58 PM
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.
10-02-2017 01:33 AM
s, but we don't use aci, can we have the shell script running on server?
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