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 UCS Manager using both Cisco UCS Manager GUI and the Cisco UCS Manager CLI.
1. In the Navigation pane, click the Admin tab.
2. On the Admin tab, expand .
3. Click Syslog.
4. In the Work pane, click the Syslog tab.
5. In the Local Destinations area, complete the following fields:
6. In the Remote Destinations area, complete the following fields to configure up to three external logs that can store messages generated by the Cisco UCS components:
7. In the Local Sources area, complete the following fields:
8. Click Save Changes.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | UCS-A# scope monitoring |
Enters monitoring mode. | ||
Step 2 | UCS-A /monitoring # {enable | disable} syslog console |
Enables or disables the sending of syslogs to the console. | ||
Step 3 | UCS-A /monitoring # set syslog console level {emergencies | alerts | critical} | (Optional)
Select the lowest message level that you want displayed. If syslogs are enabled, the system displays that level and above on the console. The level options are listed in order of decreasing urgency.The default level is Critical. | ||
Step 4 | UCS-A /monitoring # {enable | disable} syslog monitor |
Enables or disables the monitoring of syslog information by the operating system. | ||
Step 5 | UCS-A /monitoring # set syslog monitor level {emergencies | alerts | critical | errors | warnings | notifications | information | debugging} | (Optional)
Select the lowest message level that you want displayed. If the monitor state is enabled, the system displays that level and above. The level options are listed in order of decreasing urgency.The default level is Critical.
| ||
Step 6 | UCS-A /monitoring # {enable | disable} syslog file |
Enables or disables the writing of syslog information to a syslog file. | ||
Step 7 | UCS-A /monitoring # set syslog file name filename |
The name of the file in which the messages are logged. Up to 16 characters are allowed in the file name. | ||
Step 8 | UCS-A /monitoring # set syslog file level {emergencies | alerts | critical | errors | warnings | notifications | information | debugging} | (Optional)
Select the lowest message level that you want stored to a file. If the file state is enabled, the system stores that level and above in the syslog file. The level options are listed in order of decreasing urgency.The default level is Critical. | ||
Step 9 | UCS-A /monitoring # set syslog file size filesize | (Optional)
The maximum file size, in bytes, before the system begins to write over the oldest messages with the newest ones. The range is 4096 to 4194304 bytes. | ||
Step 10 | UCS-A /monitoring # {enable | disable} syslog remote-destination {server-1 | server-2 | server-3} |
Enables or disables the sending of syslog messages to up to three external syslog servers. | ||
Step 11 | UCS-A /monitoring # set syslog remote-destination {server-1 | server-2 | server-3} level{emergencies | alerts | critical | errors | warnings | notifications | information | debugging} | (Optional)
Select the lowest message level that you want stored to the external log. If the remote-destination is enabled, the system sends that level and above to the external server. The level options are listed in order of decreasing urgency.The default level is Critical. | ||
Step 12 | UCS-A /monitoring # set syslog remote-destination {server-1 | server-2 | server-3} hostname hostname |
The hostname or IP address of the specified remote syslog server. Up to 256 characters are allowed in the hostname. | ||
Step 13 | UCS-A /monitoring # set syslog remote-destination {server-1 | server-2 | server-3} facility {local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7} | (Optional)
The facility level contained in the syslog messages sent to the specified remote syslog server. | ||
Step 14 | UCS-A /monitoring # {enable | disable} syslog source {audits | events | faults} |
This can be one of the following: | ||
Step 15 | UCS-A /monitoring # commit-buffer |
Commits the transaction. |
This example shows how to enable the storage of syslog messages in a local file and commits the transaction:
UCS-A# scope monitoring UCS-A /monitoring # disable syslog console UCS-A /monitoring* # disable syslog monitor UCS-A /monitoring* # enable syslog file UCS-A /monitoring* # set syslog file name SysMsgsUCSA UCS-A /monitoring* # set syslog file level notifications UCS-A /monitoring* # set syslog file size 4194304 UCS-A /monitoring* # disable syslog remote-destination server-1 UCS-A /monitoring* # disable syslog remote-destination server-2 UCS-A /monitoring* # disable syslog remote-destination server-3 UCS-A /monitoring* # commit-buffer UCS-A /monitoring #