07-22-2011 12:25 AM
Hello,
Our directors have a +900 days working period.
This means that the logfiles (show logging logfile) became quite long.
Is there a way to backup the logfiles and trim them down to, let's say, the last three months?
So that for example "show logging logfile | grep fc1/15" --> shows only data of the last three months.
I have been scrolling through many Cisco MDS9513 manuals but I could not find an answer...
Rgds,
Ivy
Solved! Go to Solution.
07-27-2011 12:18 AM
Hi Ivy
AFAIK you cannot truncate the on-switch logs. I see no reason why you would want to, the switch manages the log length depending on available space.
However, to achieve what you want, you can do the following:
# show logging log start-time 2011 May 1 00:00:00
This will give you may, june, july logging. You can furthermore filter this using grep like so
# show logging log start-time 2011 May 1 00:00:00 | grep fc1/15
07-22-2011 06:40 AM
Hello I found this:
Using command "show logging last
Also in Device Manager one can make a backup from: logs --> Switch Resident --> SysLog --> Since Reboot
A pop up screen appears with SysLog ((Since Reboot), here --> Export...
Rgds,
Ivy
07-27-2011 12:18 AM
Hi Ivy
AFAIK you cannot truncate the on-switch logs. I see no reason why you would want to, the switch manages the log length depending on available space.
However, to achieve what you want, you can do the following:
# show logging log start-time 2011 May 1 00:00:00
This will give you may, june, july logging. You can furthermore filter this using grep like so
# show logging log start-time 2011 May 1 00:00:00 | grep fc1/15
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