Adding System Log Servers Using the CLI
Follow these steps to add and configure system log servers.
To add an system log server:
- Enable the CLI configuration mode:
hostname > enable
hostname # configure terminal
-
Specify the name of the rsyslog server (for example, NX7400) to receive the notification:
hostname (config) # fenotify rsyslog trap-sink sink_name
-
Specify which servers will receive rsyslog notifications (one server per command):
hostname (config) # fenotify rsyslog trap-sink sink_name enable
-
Specify the IP address or DNS address of the rsyslog server to send event logs to:
hostname (config) # fenotify rsyslog trap-sink sink_name address ip address
- Specify the protocol used to send rsyslog notifications (UDP is the default): select UDP, enter:
hostname (config) # fenotify rsyslog trap-sink sink_name protocol UDP
- Save the configuration:
hostname (config) # write memory