Configuring Destination Port For Forwarding Syslogs - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring System Message Logging

Configuring Destination Port for Forwarding Syslogs

You can specify the destination port to be used while forwarding the system messages to the remote server
where they will be logged.
Note
You will need to change the remote server syslog configuration file to listen to the specified user-defined
port. By default, system messages are sent as a UDP payload over port number 514 to the remote server
for logging.
Procedure
Step 1
Step 2
Step 3
Step 4
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
[no] logging server host [severity-level
[use-vrf vrf-name]]
Example:
switch(config)# logging server
192.0.2.253 port 600
Example:
switch(config)# logging server
192.0.2.253 5 port 600
show logging server
Example:
switch(config)# show logging server
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
Configuring Destination Port for Forwarding Syslogs
Purpose
Enters global configuration mode.
Specifies the destination port on which the syslogs are
forwarded to remote server. The port numbers range
from 1 to 65535.
The default destination port number is 514.
To remove the custom destination port or to
Note
reset it to its default value, use the logging
server command without specifying any port
number. Optionally, you can specify the port
number as 514.
The first example forwards all messages on user-defined
port number 600. The second example forwards
messages with severity level 5 or lower on user-defined
port number 600.
(Optional)
Displays the syslog server configuration.
(Optional)
Copies the running configuration to the startup
configuration.
101

Advertisement

Table of Contents
loading

Table of Contents