06-02-2015 09:40 AM
I am testing writing output to a file on a router but I'm not having any luck. I created the file prior to configuring the event and used append but nothing is ever written to the file however the first action works fine. Any help?
event manager applet savelog
event syslog pattern "Interface Loopback0.* down" period 1
action 1.0 syslog msg "Interface down!"
action 1.1 cli command "enable"
action 1.2 cli command "show clock | append flash:interface_down.txt"
action 1.3 cli command "show interface lo0 | append flash:interface_down.txt"
STL-RTR01#sh flash:
-#- --length-- -----date/time------ path
!output omitted
23 0 Jun 02 2015 10:55:40 -05:00 interface_down.txt
STL-RTR01#sh log
!output omitted
.Jun 2 2015 11:25:13.819 est: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to down
.Jun 2 2015 11:25:13.823 est: %HA_EM-6-LOG: savelog: Interface down!
STL-RTR01#more flash:interface_down.txt
STL-RTR01#
06-02-2015 12:19 PM
Appears to be an IOS/platform issue it works on a 2911 but not an 1841.
06-10-2015 12:36 AM
Hi KWillacey_2,
This seems to be limitation of linear flash file system, I have this problem on my WS-C3750X-48P.
Link here.
A small test you can to verify this is to run sample command on CLI:
sh ver | append flash:shver.txt
You'll see error like this : % Appending is not supported in this file system
Funny thing is, when I tried to append to ftp or tftp, I got the same not supported error as above!
Using tee or redirect will not solve it, it will overwrite the existing file.
Thx.
Firdaus
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide