NOTE:
When the syslog server receives messages from the switch, the IPv6 address of the switch is
partly displayed.
Example:
Configured Host Ipv6 Address: 2001::1
Expected Syslog message:
Syslog message: USER.INFO: Oct 11 02:40:02 2001::1 00025 ip:
ST1CMDR: VLAN60: ip address 30.1.1.1/24 configured on vlan 60
Actual Truncated syslog message:
Syslog message: USER.INFO: Oct 11 02:40:02 2001:: 00025 ip: ST1CMDR:
VLAN60: ip address 30.1.1.1/24 configured on vlan 60
Use the command in the following example to set the origin-id to the hostname.
Setting the origin-id to the hostname
switch(config)# logging origin-id hostname
The following syslog message will occur:
<14> Jan 1 00:15:35 2910al-24G 00076 ports: port 2 is now on-line
Use the command in the following example to set the origin-id to none (nilvalue).
Setting the origin-id to none (nilvalue)
switch(config)# logging origin-id none
The following syslog message will occur:
<14> Jan 1 00:15:35 - 00076 ports: port 2 is now on-line
Use any of the commands in the following example to set the origin-id to ip-address (default).
Setting the origin-id to ip-address (default)
switch(config)# logging origin-id ip-address
switch(config)# no logging origin-id hostname
switch(config)# no logging origin-id none
The following syslog message will occur:
<14> Jan 1 00:15:35 169.254.230.236 00076 ports: port 2 is now on-line
Viewing the identification of the syslog message sender
Use the commands
show debug
or
show running-config
to display the identification of the syslog message
sender. The default option for
origin-id
is
ip-address
. The command
show running-config
will not
display the configured option when
origin-id
is set to the default value of
ip address
.
When
hostname
or
none
is configured using
logging origin-id
, the same displays as part of the
show
running-config
command.
Chapter 13 Troubleshooting
507