![Cisco ASR 9000 Serie Configuration Manuals Download Page 305](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679305.webp)
The
logging
command identifies a syslog server host to receive logging messages. By issuing this command
more than once, you build a list of syslog servers that receive logging messages. To delete the syslog server
with the specified IP address (IPv4 and IPv6 are supported) or hostname from the list of available syslog
servers, use the
no logging
command in global configuration mode.
The
logging monitor
command globally enables the logging of syslog messages to terminal lines other than
the console, such as vtys. To disable logging to terminal lines other than the console, use the
no logging
monitor
command in global configuration mode.
Guidelines for Sending Syslog Messages to Destinations Other Than the Console
The logging process sends syslog messages to destinations other than the console terminal and the process is
enabled by default. Logging is enabled to the logging buffer, terminal lines and syslog servers.
Logging for the Current Terminal Session
The
logging monitor
command globally enables the logging of syslog messages to terminal lines other than
console terminal. Once the
logging monitor
command is enabled, use the
terminal monitor
command to
display syslog messages during a terminal session.
To disable the logging of syslog messages to a terminal during a terminal session, use the
terminal monitor
disable
command in EXEC mode. The
terminal monitor disable
command disables logging for only the
current terminal session.
To reenable the logging of syslog messages for the current terminal session, use the
terminal monitor
command in EXEC mode.
The
terminal monitor
and
terminal monitor disable
commands are set locally and will not remain in
effect after the terminal session is ended.
Note
Syslog Messages Sent to Syslog Servers
The Cisco IOS XR Software provides these features to help manage syslog messages sent to syslog servers:
•
UNIX system facilities
•
Hostname prefix logging
•
Source interface logging
UNIX System Logging Facilities
You can configure the syslog facility in which syslog messages are sent by using the
logging facility
command.
Consult the operator manual for your UNIX operating system for more information about these UNIX system
facilities. The syslog format is compatible with Berkeley Standard Distribution (BSD) UNIX version 4.3.
This table describes the facility type keywords that can be supplied for the
type
argument.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
289
Implementing Logging Services
Syslog Messages Sent to Syslog Servers