12-05-2017 12:03 PM - edited 03-01-2019 06:17 PM
Is it possible to write a script that would start a capture point and then stop it after 5 minutes and then export it to a tftp server, then again wait for few minutes to re-start the capture point and repeat the whole process again?
We need to capture data on one of our routers for more than 24 hours and with the amount of memory available on the router and traffic it's not possible. I understand with the approach above we will lose some data, but that's not a big deal.
Please let me know if this can be done or if there is better way of accomplishing this.
Thanks!
Solved! Go to Solution.
12-05-2017 07:27 PM
12-07-2017 03:46 PM
12-09-2017 02:49 AM
This is certainly possible with EEM. In fact, I've written a Tcl example of how to do the digital packet recorder with EPC and EEM. Have a look at https://supportforums.cisco.com/t5/network-infrastructure-documents/a-digital-packet-recorder-for-your-router/ta-p/3154423 and see if you can modify this to meet your needs.
12-05-2017 07:27 PM
12-05-2017 10:51 PM
12-06-2017 02:00 PM
12-07-2017 03:46 PM
12-09-2017 02:49 AM
This is certainly possible with EEM. In fact, I've written a Tcl example of how to do the digital packet recorder with EPC and EEM. Have a look at https://supportforums.cisco.com/t5/network-infrastructure-documents/a-digital-packet-recorder-for-your-router/ta-p/3154423 and see if you can modify this to meet your needs.
12-11-2017 09:08 AM
Thank you both for the comments and scripts. I haven't got a chance to test the script because I ended it up doing it manually as there was a change in schedule. I will be testing it in the next few days so I won't have to do it manually in future. I will let you guys know when I am done testing.
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: