cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2829
Views
0
Helpful
2
Replies

Output not appending to file

Kelvin Willacey
Level 4
Level 4

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#

2 Replies 2

Kelvin Willacey
Level 4
Level 4

Appears to be an IOS/platform issue it works on a 2911 but not an 1841.

afirdaus068
Level 1
Level 1

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

 

Review Cisco Networking for a $25 gift card