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

How to dump flows to a fixed size file?

kchengva1
Level 1
Level 1

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"
!

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.