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

EEM not running ping/trace command

andretimoll
Level 1
Level 1

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

Joe Clarke
Cisco Employee
Cisco Employee

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.

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.