cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
316
Views
5
Helpful
2
Replies

sending 'show ip ospf neighbor' command result to syslog

ehironehiron
Beginner
Beginner

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 !

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Advisor VIP Advisor
VIP Advisor

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.

View solution in original post

2 Replies 2

Seb Rupik
VIP Advisor VIP Advisor
VIP Advisor

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.

Hi Seb,

Wonderful !

Thanks very much for you kind and very quick help !

Cheers,

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers