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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to dump flows to a fixed size file?

Hello,

I have EEM script to dump top talkers to a flash, but I don't want to exceed the file size to 5MB (for example), is any way I can make this as a circulate file?

thanks.

event manager session cli username name
event manager applet Check-TOPTALKERS
 event timer watchdog name timer time 300
 action 1.0 cli command "enable"
 action 2.0 cli command "show clock | append flash0:TopTalkers"
 action 2.1 cli command "sh ip flow top-talkers | append flash0:TopTalkers"
 action 3.0 cli command "end"
!

Everyone's tags (3)
1 REPLY
Cisco Employee

Look at the solution to https

Look at the solution to https://supportforums.cisco.com/discussion/13310896/eem-search-index-file-flash. ; This will show you how to get the size of a file on flash.  From there, you can check to see if it's larger than you want.  You can't really do circular, but you could backup the current file and then overwrite it with new contents.

44
Views
0
Helpful
1
Replies