Syslog Configuration
You can configure syslog in Cisco IMC using both Cisco IMC GUI and the Cisco IMC CLI.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
You can configure syslog in Cisco IMC using both Cisco IMC GUI and the Cisco IMC CLI.
Step 1 |
In the Navigation pane, click the Chassis menu. |
||||||||||||
Step 2 |
In the Chassis menu, click Faults and Logs. |
||||||||||||
Step 3 |
In the Logging Controls tab, enter the following information: Remote Logging
Local Logging This area displays only the Minimum Severity to Report drop-down list as shown in the table above. You can specify the lowest level of messages to be included in the local log |
You can configure profiles for one or two remote syslog servers to receive Cisco IMC log entries.
The remote syslog server must be configured to receive logs from a remote host.
The remote syslog server must be configured to receive all types of logs, including authentication-related logs.
The remote syslog server's firewall must be configured to allow syslog messages to reach the syslog server.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
Server# scope cimc |
Enters the Cisco IMC command mode. |
||
Step 2 |
Server /cimc # scope log |
Enters the Cisco IMC log command mode. |
||
Step 3 |
(Optional) Server /cimc/log # set remote-syslog-severity level |
(Optional)
The severity level can be one of the following, in decreasing order of severity:
|
||
Step 4 |
Server /cimc/log # scope server {1 | 2 } |
Selects one of the two remote syslog server profiles and enters the command mode for configuring the profile. |
||
Step 5 |
Server /cimc/log/server # set server-ip ipv4 or ipv6 address or domain name |
|
||
Step 6 |
Server /cimc/log/server # set server-port port number |
Sets the destination port number of the remote syslog server. |
||
Step 7 |
Server /cimc/log/server # set enabled {yes | no } |
Enables the sending of Cisco IMC log entries to this syslog server. |
||
Step 8 |
Server /cimc/log/server # commit |
Commits the transaction to the system configuration. |
This example shows how to configure a remote syslog server profile and enable the sending of Cisco IMC log entries with a minimum severity level of Warning:
Server# scope cimc
Server /cimc # scope log
Server /cimc/log # set remote-syslog-severity warning
Server /cimc/log *# scope server 1
Server /cimc/log/server *# set server-ip www.abc.com
Server /cimc/log/server *# set server-port 514
Server /cimc/log/server *# set protocol udp
Server /cimc/log/server *# set enabled yes
Server /cimc/log/server *# commit
Server /cimc/log/server # exit
Server /cimc/log # show server
Syslog Server 1:
Syslog Server Address: www.abc.com
Syslog Server Port: 514
Enabled: yes
Server /cimc/log # show remote-syslog-severity
Remote Syslog Severity: warning
Server /cimc/log #