Administrator Guide

Switch Management Commands 2173
port
Use the port command in Logging mode to specify the port number of a
SYSLOG server to which SYSLOG messages are sent.. To reset to the default
value, use the no form of the command.
Syntax
port
port
no port
port
The port numbe
r to which SYSLOG messages are sent
. (Range: 1-
65535)
Default Configuration
The default port number for UDP messages is 514. When DTLS is
configured (logging protocol 1), the default port number is 6514..
Command Mode
Logging mode
User Guidelines
After entering the view corresponding to a specific SYSLOG server, the
command can be executed to set the port number for the server.
If the port value is changed for a server, the configuration does not take effect
until the server is disconnected and reconnected.
Example
The following example sets the SYSLOG server port to 300.
console(config-logging)#port 300
show logging
Use the show logging command in Privileged Exec mode to display all logging
information, including auditing status and logging protocol version. Protocol
version 1 means that the messages are logged with the time zone and time
resolution up to milliseconds.
2CSNXXX_SWUM204.book Page 2173 Monday, January 25, 2016 1:25 PM