Administrator Guide

Switch Management Commands 2187
Example
console(config)#logging web-session
<133> Jan 12 13:51:55 10.130.185.29-6 CLI_WEB[emWeb]: cmd_logger_api.c(140)
9788 %% NOTE WEB:10.130.65.150:admin:session[0] created
<133> Jan 12 13:51:55 10.130.185.29-6 CLI_WEB[emWeb]: cmd_logger_api.c(140)
9789 %% NOTE WEB:10.130.65.150:admin:User admin logged in
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 number 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
SYSLOG server configuration 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