cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1128
Views
0
Helpful
1
Replies

How to send some text from command to syslog in router ?

SamyHupia
Level 1
Level 1

Dear all ,

 

I would like to use command show interface in router and i like to capture some text from the result of command like

Router#show interface interface A is down interface B is UP interface A speed 100GB status stable interface B speed 10GB status unstable

i need to capture to send msg form this result to syslog like interface A is down speed 100GB status stable

How to do in cisco router (ios-xe) , or use python or EEM/TCL script in router ?

can i send log every 5mins.

in router can custom msg to syslog by command is "send log "text""

thank you for your help.

i can do only cisco command. i never know how to do it

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

instead of router doing that work for you, why not syslog poll to router use snmpwalk and store the results.

based on the condition you have more options to send email, txt or alerts in your dashboads.

 

rather some limited usage on router scripting (this is not meant to be full fledge stack).

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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:

Review Cisco Networking products for a $25 gift card