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

backup and cleanup of logfiles

ivybeccukbc
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Kris Vandecruys
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

ivybeccukbc
Level 1
Level 1

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...

Rgds,

Ivy

Kris Vandecruys
Cisco Employee
Cisco Employee

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

Review Cisco Networking for a $25 gift card