The trace syslog source command sets the source interface from which the device exports diagnosis information to a log server.
The undo trace syslog source command cancels the configuration of the source interface from which the device exports diagnosis information to a log server.
By default, no interface is specified to export diagnosis information to the log server.
Parameter | Description | Value |
---|---|---|
interface-type interface-number | Specifies the type and number of an interface. |
- |
Usage scenario
After you specify an interface for exporting diagnosis information to a log server, the system specifies the IP address of this interface as the source IP address of service diagnosis packets. In this way, the log server can identify the source of diagnosis information.
Prerequisites
The device has been configured to export diagnosis information to a log server using the trace object command.
Precautions
The trace syslog source command is not recorded in the configuration file. After the device restarts, the configured source interface for exporting diagnosis information is invalid. To set the source interface, run the trace syslog source command again.