User's Manual

Chapter 3 - Operation and Administration Using the CLI NPU Configuration
4Motion 345 System Manual
External server (Log files are sent to the external server in the Syslog log
format. The Syslog daemon on the external server can save these log messages
in the appropriate format depending upon the server configuration.)
By default, system-level logging is enabled. To view whether the system-level
logging is enabled/disabled for logging to file or server. For details, refer
Section 3.3.12.1.4.
The system maintains a maximum of 1000 log and trace messages. The system
stores log and trace messages using the cyclic buffer method. That is, when there
are more than 1000 messages, the system overwrites the oldest log and trace
messages.
To enable system-level logging, run the following command:
npu(config)# log destination {file | server <IP address>}
IMPORTANT
If you have enabled writing of log messages to file, it is recommended that you periodically make a
backup of this log file. This is because log messages that are written to file are deleted after system
reset. For more information about making backups of log files on the NPU flash, refer to
Section 3.3.12.1.5.
NOTE
After you execute this command, logging is enabled for the entire system. You may also configure
logging separately for each system module. For details, refer to Section 3.3.12.2.
IMPORTANT
An error may occur if:
Logging is already enabled for the requested destination (file or server).
Logging is enabled to a server with a different IP address. Because logging can be enabled to
only one external server, you can specify another server IP address after you disable logging to
the existing server IP address. For more information about disabling logging to server, refer
“Disabling Logging to File or Server” on page 346.
An internal error has occurred.
You have specified the IP address in an invalid format. Specify the IP address in the format,
XXX.XXX.XXX.XXX.
Command
Syntax
npu(config)# log destination
{file | server <IP address>}