cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
398
Views
2
Helpful
3
Replies

EEM config success, but couldn't find result in directory..

eeebbunee
Level 1
Level 1

Hello Professionals,

Could you please see my EEM script is alright?

 - Goal: Want to get 'show ip arp' results everyday 11:00am and send it to tftp server.

 - EEM Script:

  event manager applet IPARP_LOG 
  event timer cron cron-entry "0 11 * * *" maxrun 100
  action 1 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.log"

When I directly type 'show ip arp | redirect tftp://192.168.1.11/iparp.log', I am able to see result txt file from the 192.168.1.11.

When I check the event manager history, it says applet has been made successfully.

No. Job Id Proc Status Time of Event Event Type Name
10 13       Actv success Wed May 1 12:54:00 2024 timer cron applet: IPARP_LOG

Could you tell me where did I miss?

Thank you for providing your time.

 

2 Accepted Solutions

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

how long that taking when you do manually that show ip arp ( do you have many list and taking more than 1minute to log ?)

try below

event manager applet IPARP_LOG
event timer cron cron-entry "0 11 * * *" maxrun 100
action 1 cli command "enable"
action 2 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.log"
action 3 syslog msg "show ip arp completed"

If you using AAA then use below to bypass authorisation

event manager applet IPARP_LOG authorization bypass

BB

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

How to Ask The Cisco Community for Help

View solution in original post

action 2 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.$_event_pub_sec.log"

if you like to add more then look below thread :

https://community.cisco.com/t5/network-management/eem-what-is-the-time-refernce-for-event-pub-sec/td-p/4983383

 

BB

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

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

how long that taking when you do manually that show ip arp ( do you have many list and taking more than 1minute to log ?)

try below

event manager applet IPARP_LOG
event timer cron cron-entry "0 11 * * *" maxrun 100
action 1 cli command "enable"
action 2 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.log"
action 3 syslog msg "show ip arp completed"

If you using AAA then use below to bypass authorisation

event manager applet IPARP_LOG authorization bypass

BB

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

How to Ask The Cisco Community for Help

eeebbunee
Level 1
Level 1

I got correct applet result! appreciate you!!
One more thing please, um, How can I save the file name with date and time?

Cause I found that iparp.log file has been updated due to same filename from the tftp server..

*I found $_event_pub_sec, so action 2 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.log_$_event_pub_sec" could be correct answer..?

Thank you so much!!

action 2 cli command "show ip arp | redirect tftp://192.168.1.11/iparp.$_event_pub_sec.log"

if you like to add more then look below thread :

https://community.cisco.com/t5/network-management/eem-what-is-the-time-refernce-for-event-pub-sec/td-p/4983383

 

BB

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

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card