Implementing Logging Services
Command or Action
Step 2
logging {ip-address | hostname}
Example:
RP/0/RSP0/CPU0:router(config)# logging
10.3.32.154
Step 3
logging trap [severity]
Example:
RP/0/RSP0/CPU0:router(config)# logging
trap
Step 4
logging facility [type]
Example:
RP/0/RSP0/CPU0:router(config)# logging
facility kern
Step 5
logging hostnameprefix hostname
Example:
RP/0/RSP0/CPU0:router(config)# logging
hostnameprefix 123.12.35.7
Step 6
logging source-interface type
interface-path-id
Example:
RP/0/RSP0/CPU0:router(config)# logging
source-interface HundredGigE 0/1/0/0
Step 7
commit
Configuring the Settings for the Logging History Table
This task explains how to configure the settings for the logging history table.
For conceptual information, see the
Before You Begin
Logging of messages to an SNMP NMS is enabled by the snmp-server enable traps syslog command. For
more information about SNMP, see the
Severity Levels, on page 292
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
Configuring the Settings for the Logging History Table
Purpose
Specifies a syslog server host as a destination for syslog messages. IPv4
and IPv6 are supported.
• By issuing this command more than once, you build a list of syslog
servers that receive logging messages.
Limits the syslog messages sent to syslog servers based on severity.
• By default, entering this command without specifying a severity
level for the severity argument sets the severity level to
informational.
(Optional) Configures syslog facilities.
• By default, entering this command without specifying a facility
type for the type argument sets the facility to local-7.
(Optional) Appends a hostname prefix to syslog messages being sent
from the router to syslog servers.
Hostname prefix logging can be useful for sorting syslog
Tip
messages received by syslog servers.
(Optional) Sets the syslog source address.
• By default, a syslog message sent to a syslog server contains the
IP address (IPv4 and IPv6 are supported) of the interface it uses
to leave the router.
• Use this command to set all syslog messages being sent from the
router to contain the same IP address, regardless of which interface
the syslog message uses to exit the router.
Related Documents, on page 308
section.
section.
297