cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

748
Views
0
Helpful
1
Replies
Highlighted

Using "file size <>" in EEM script

Hi,

I'm working on a EEM script that saves logs to flash of the router and I'm trying to figure out a way to keep the file size under a certain limit to prevent the flash filling up from that one file. The problem now is that I'm not allowed to use the "file size <>" command in a EEM script. Anyway to get around this problem? I know this is because of the script is running in Safe-Tcl mode. Can I somehow get the scripts to run in a mode where I can use the "file size" command on a file I have created?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Using "file size <>" in EEM script

In the EEM flavor of safe-tcl file stat is available.  You should be able to use that to get the file size.

Mike

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

Using "file size <>" in EEM script

In the EEM flavor of safe-tcl file stat is available.  You should be able to use that to get the file size.

Mike

View solution in original post

CreatePlease to create content
Content for Community-Ad