Administrator Guide

Switch Management Commands 2160
logging
Use the logging command in Global Configuration mode to log messages to a
syslog server. To delete the syslog server with the specified address from the
list of syslogs, use the no form of this command.
Syntax
logging {
ip-address
|
ipv6-address
|
hostname
} [tls {anon | x509 | x509
certificate index
}]
no logging {
ip-address
|
ipv6-address
|
hostname
}
ip-address
— IP address of the host to be used as a syslog server.
ipv6-address
— IPv6 address of the host to be used as a syslog server.
hostname
— Hostname of the host to be used as a syslog server. (Range: 1-
63 characters) The command allows spaces in the host name when
specified in double quotes. For example, #snmp-server v3-host “host
name”.
anonUse anonymous authentication (that is, anonymous mode with no
authentication).
x509—Use mutual authentication (both client and server side). An
optional certificate index can be used to identify a specific server and
client certificate pair.
Default Configuration
When enabling x509 authentication, a default (non-indexed) certificate pair
is used if present and no certificate index has been specified.
The default SYSLOG server port number is 514. When DTLS is configured
(logging protocol 1), the default port number is 6514.
Command Mode
Global Configuration mode
User Guidelines
Up to eight syslog servers can be configured.
2CSNXXX_SWUM204.book Page 2160 Monday, January 25, 2016 1:25 PM