Discussion:
[c-nsp] ASR1001 tracelogs
Peter Persson
2014-03-23 20:41:56 UTC
Permalink
Hey,

I've got a odd request and im unable to get it fixed.
I got a ASR1001 with a constantly growing "tracelogs" folder. The space on
disk is not an issue, its more of annoying when i get my rancid updates.

Do anyone of you have any solution about this?

Regards,
Peter
_______________________________________________
cisco-nsp mailing list cisco-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Klaus Kastens
2014-03-23 21:43:09 UTC
Permalink
Hi Peter,
Post by Peter Persson
I got a ASR1001 with a constantly growing "tracelogs" folder. The space on
disk is not an issue, its more of annoying when i get my rancid updates.
Do anyone of you have any solution about this?
We had the same problem with RANCID starting somewhere in IOS-XE 3.6.
You can avoid writing tracelogs by setting the log level to "emergency",
unfortunately this has to be done for every process:

platform trace runtime slot F0 bay 0 process chassis-manager module all-modules level emergency
platform trace runtime slot F0 bay 0 process emd module all-modules level emergency
platform trace runtime slot F0 bay 0 process forwarding-manager module all-modules level emergency
|
platform trace runtime slot R0 bay 0 process pluggable-services module all-modules level emergency
platform trace runtime slot R0 bay 0 process shell-manager module all-modules level emergency
platform trace runtime slot R0 bay 0 process virt-manager module all-modules level emergency

There was a bug in earlier IOS-XE versions, platform trace level
setting was ignored. IIRC this was fixed somewhere in 3.9 (CSCuc89971).

Before this fix we used a filter in the rancid script's "ShowFlash"
parser, also filtering the changing size output:

next if (/ \/bootflash\/$/);
next if (/ \/bootflash\/tracelogs$/);
next if (/ \/bootflash\/tracelogs\//);
next if (/\d+ bytes total \(\d+ bytes free\)$/);


Best regards,
Klaus
_______________________________________________
cisco-nsp mailing list cisco-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Pete Lumbis
2014-03-23 22:44:58 UTC
Permalink
Although it doesn't really help with Rancid, you can manually clean up (or
configure an EEM script to do it for you)
http://www.cisco.com/c/en/us/td/docs/routers/asr1000/operations/guide/asr1000ops/performing_file_system_cleanups.html

The caveat with cleaning up the tracelogs aggressively would be if they
were needed to help troubleshoot a TAC case. Not common, but frustrating to
not have when dealing with a high priority RCA issue.

-Pete
Post by Peter Persson
Hey,
I've got a odd request and im unable to get it fixed.
I got a ASR1001 with a constantly growing "tracelogs" folder. The space on
disk is not an issue, its more of annoying when i get my rancid updates.
Do anyone of you have any solution about this?
Regards,
Peter
_______________________________________________
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
_______________________________________________
cisco-nsp mailing list cisco-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Christian Deckelmann
2014-03-24 08:27:56 UTC
Permalink
Post by Peter Persson
Hey,
I've got a odd request and im unable to get it fixed.
I got a ASR1001 with a constantly growing "tracelogs" folder. The space on
disk is not an issue, its more of annoying when i get my rancid updates.
Do anyone of you have any solution about this?
Here, rancid didn´t detect IOS XE anymore after an ASR OS upgrade from
3.7 to 3.10.
Because of that, the builtin tracelogs filter didn´t match.

I had do change
if (/cisco ios .* IOS-XE/i) { $ios = "XE"; }
to
if (/Cisco IOS-XE/i) { $ios = "XE"; }
in
/usr/lib/rancid/bin/rancid

Regards,
Christian


_______________________________________________
cisco-nsp mailing list cisco-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Tassos Chatzithomaoglou
2014-03-24 08:33:02 UTC
Permalink
Isn't that supposed to be solved in some rancid version?

http://www.shrubbery.net/rancid/CHANGES

rancid: filter filesize and date of tracelogs dir on IOS-XE


--
Tassos
Post by Peter Persson
Hey,
I've got a odd request and im unable to get it fixed.
I got a ASR1001 with a constantly growing "tracelogs" folder. The space on
disk is not an issue, its more of annoying when i get my rancid updates.
Do anyone of you have any solution about this?
Regards,
Peter
_______________________________________________
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
_______________________________________________
cisco-nsp mailing list cisco-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

Loading...