Operation Manual
System Log Commands
Mobility System Software Command Reference Guide
Version 7.3
24 – 518
set log
Enables or disables logging of MX and MP events to the MX log buffer or other logging destination
and sets the level of the events logged. For logging to a syslog server only, you can also set the
facility logged.
Syntax
set log {buffer | console | current | sessions | trace} [severity
severity-level] [enable | disable]
set log server ip-addr [port port-number] severity severity-level [local-facility
facility-level]
Defaults
buffer Sets log parameters for the log buffer in nonvolatile storage.
console Sets log parameters for console sessions.
current Sets log parameters for the current Telnet or console session. These settings are not
stored in nonvolatile memory.
server ip-addr Sets log parameters for a syslog server. Specify an address in dotted decimal notation.
sessions Sets the default log values for Telnet sessions. You can set defaults for the following
log parameters:
❑ Severity
❑ Logging state (enabled or disabled)
To override the session defaults for an individual session, type the set log command
from within the session and use the current option.
trace Sets log parameters for trace files.
port port-number Sets the TCP port for sending messages to the syslog server. You can specify a
number from 1 to 65535. The default syslog port is 514.
severity
severity-level
Logs events at a severity level greater than or equal to the level specified. Specify one
of the following:
❑ emergency—The MX is unusable.
❑ alert—Action must be taken immediately.
❑ critical—You must resolve the critical conditions. If the conditions are not
resolved, the MX can reboot or shut down.
❑ error—The MX is missing data or is unable to form a connection.
❑ warning—A possible problem exists.
❑ notice—Events that potentially can cause system problems have occurred. These
are logged for diagnostic purposes. No action is required.
❑ info—Informational messages only. No problem exists.
❑ debug—Output from debugging.
local-facility
facility-level
For messages sent to a syslog server, maps all messages of the severity you specify to
one of the standard local log facilities defined in RFC 3164. You can specify one of the
following values:
❑ 0—maps all messages to local0.
❑ 1—maps all messages to local1.
❑ 2—maps all messages to local2.
❑ 3—maps all messages to local3.
❑ 4—maps all messages to local4.
❑ 5—maps all messages to local5.
❑ 6—maps all messages to local6.
❑ 7—maps all messages to local7.
If you do not specify a local facility, MSS sends the messages with their default MSS
facilities. For example, AAA messages are sent with facility 4 and boot messages are
sent with facility 20 by default.
enable Enables messages to the specified target.
disable Disables messages to the specified target.