Cisco IOS XR System Monitoring Command Reference for the Cisco


Add to my manuals
550 Pages

advertisement

Cisco IOS XR System Monitoring Command Reference for the Cisco | Manualzz

Logging Services Commands logging source-interface

logging source-interface

To set all system logging (syslog) messages being sent to syslog servers to contain the same IP address, regardless of which interface the syslog message uses to exit the router, use the logging source-interface command in Global Configuration modeXR Config mode. To remove the logging source-interface command from the configuration file and remove the source designation, use the no form of this command.

logging source-interface type interface-path-id no logging source-interface

Syntax Description type interface-path-id

Interface type. For more information, use the question mark (?) online help function.

Physical interface or virtual interface.

Note Use the show interfaces command to see a list of all interfaces currently configured on the router.

For more information about the syntax for the router, use the question mark (?) online help function.

Command Default No source IP address is specified.

Command Modes Global Configuration modeXR Config mode

Command History

Release

Release 2.0

Release 3.2

Release 3.7.2

Release 5.0.0

Modification

This command was introduced.

This command was introduced.

This command was introduced.

This command was introduced.

Usage Guidelines Normally, a syslog message contains the IP address of the interface it uses to leave the networking device.

Use the logging source-interface command to specify that syslog packets contain the IP address of a particular interface, regardless of which interface the packet uses to exit the networking device.

Use the

logging, on page 345

command to specify a syslog server host as a destination for syslog messages.

376

Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x

OL-26517-02

Logging Services Commands logging source-interface

Task ID

Task ID logging

Operations read, write

Examples This example shows how to specify that the IP address for GigabitEthernet interface 0/1/0/1

Packet-over-SONET/SDH (POS) interface 0/1/0/1HundredGigE interface 0/1/0/0 be set as the source IP address for all messages:

RP/0/0RP0RSP0/CPU0:router:hostname(config)# logging source-interface GigabitEthernet

0/1/0/1pos 0/1/0/1HundredGigE 0/1/0/0

Related Commands

Command

logging, on page 345

Description

Specifies a syslog server host as a destination for syslog messages.

OL-26517-02

Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x

377

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents