Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

EEM not running ping/trace command

Hi Guys

Does anyone know how to get EEM to run a ping/trace?

Nothing is displayed in the flash if i use the following config

event manager applet BGPDOWN

event syslog pattern "received from neighbor"

action 1.0 cli command "enable"

action 1.1 cli command "ping 172.19.43.9 | append flash:ping_to_peer.txt"

If i change it to a regular show commmad it works

event manager applet BGPDOWN

event syslog pattern "received from neighbor"

action 1.0 cli command "enable"

action 1.1 cli command "show arp | append flash:arp_entries.txt"

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: EEM not running ping/trace command

The ping command is not valid. You cannot use a pipe on a ping command. If you were to try this command manually, it would fail.

You could convert this applet to a Tcl policy which could be made to do what you want. The attached policy should work for you.

1 REPLY
Cisco Employee

Re: EEM not running ping/trace command

The ping command is not valid. You cannot use a pipe on a ping command. If you were to try this command manually, it would fail.

You could convert this applet to a Tcl policy which could be made to do what you want. The attached policy should work for you.

247
Views
0
Helpful
1
Replies
CreatePlease to create content