cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
844
Views
0
Helpful
1
Replies

CSS 11503 show log sys.log Couldn't lock local file

hxhsu
Level 1
Level 1

Dear all,

The CSS is running V7.50.3.03,

It's work fine before the "%%Couldn't lock local file" message appear, and it seems sys.log file also stop logging.

How to fix it or let the syslog work again ?

IDC-CSS(6)# sh log-list

stub AUG 31 01:02:32 6

boot.log SEP 13 00:46:30 24360

traplog JUL 31 17:17:00 273188

sys.log JUL 31 20:28:14 8429310

boot.bak SEP 13 00:45:20 24121

sys.log.prev JUL 24 02:56:22 9998756

IDC-CSS(6)# sh log sys.log

%% Couldn't lock local file

1 Reply 1

sachinga.hcl
Level 4
Level 4

Hi ,

You can use the logging to-disk command to disable logging to the sys.log file on the CSS disk (hard or Flash). Disabling logging to the sys.log file is useful when you want to prevent excessive writes to the CSS disk (for example, to the Flash disk) or to increase the performance of the CSS.

You can continue sending CSS log information to the sys.log file at an alternate location. To send log information to an alternate location, use either the logging host command to send log information to a syslog daemon on a host system or the logging line command to send (but not save) log information to an active CSS line .

The options for the logging to-disk command are as follows:

•logging to-disk disable - Disables writing default log information to the CSS sys.log file on the CSS disk. The logging to-disk disable command affects the sys.log file only, and does not affect a disk log file specified through the logging disk command. You can still use the logging disk filename command to send log information to a specific filename on the CSS disk. To disable all logging to the CSS disk, first enter the no logging disk command and then enter the logging to-disk disable command. When you enter the no logging disk command, the CSS does not reenable logging to the sys.log file. You must specify the logging to-disk enable command to reactivate the sys.log file.

•logging to-disk enable - Resets logging back to disk and resumes writing default log information to the CSS sys.log file.

You are prompted to reboot the CSS after issuing the logging to-disk disable or logging to-disk enable commands for the command to take effect.

To disable logging to the CSS sys.log file on the CSS disk (Flash disk or hard disk), enter:

(config)# logging to-disk disable

To resume logging back to the CSS disk, enter:

(config)# logging to-disk enable

Sachin garg

Getting Started

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: