07-31-2008 08:52 AM
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
07-31-2008 09:36 AM
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
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