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...
Go to Solution.
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
View solution in original post
Hello I found this:
Using command "show logging last " where is the number of pages at the end.
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...
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: