11-21-2019 03:35 AM
Hello,
I need to analyse in my syslog server (Splunk) the toppology on my router network (about 1000 routers).
I suppose that activating the normal OSPF logs and sending then to the syslog server would not be enough because, in this case I would get only some log when some events like route reconfiguration occur (or when special OSPF timers trigger).
So, ideally I would like to run everyday (automatically) the command 'show ip ospf neighbor' and get the result directly in my syslog server.
Is there a way to do so ?
Many thanks for helping !
Solved! Go to Solution.
11-21-2019 04:00 AM
Hi there,
the following EEM script will run the command at midday every day and output the result into the log buffer:
event manager applet FOO event timer cron cron-entry "00 12 * * *" action 1.0 cli command "enable" action 2.0 cli command "show ip ospf neigh" action 3.0 syslog msg "$_cli_result" action 4.0 cli command "exit"
cheers,
Seb.
11-21-2019 04:00 AM
Hi there,
the following EEM script will run the command at midday every day and output the result into the log buffer:
event manager applet FOO event timer cron cron-entry "00 12 * * *" action 1.0 cli command "enable" action 2.0 cli command "show ip ospf neigh" action 3.0 syslog msg "$_cli_result" action 4.0 cli command "exit"
cheers,
Seb.
11-21-2019 04:49 AM
Hi Seb,
Wonderful !
Thanks very much for you kind and very quick help !
Cheers,
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