Querying and Setting Syslog (syslog -d state)
Function
The syslog -d state command is used to query and set the syslog feature for the iBMC.
Format
ipmcget -t syslog -d state [-v destination]
ipmcset -t syslog -d state -v [destination] <disabled | enabled>
Parameters
Parameter |
Description |
Value |
---|---|---|
destination |
Identifies the channel sending syslog messages. |
|
disabled |
Disables syslog. |
- |
enabled |
Enables syslog. |
- |
Usage Guidelines
- To set syslog for a specific channel, enable the syslog function first.
- To set syslog for a specific channel, specify destination. The value range of destination is 1 to 4.
Example
# Enables syslog.
iBMC:/->ipmcset -t syslog -d state -v enabled
Set syslog enabled successfully.
# Query the syslog status.
iBMC:/->ipmcget -t syslog -d state
syslog state: enabled
# Disable syslog for channel 1.
iBMC:/->ipmcset -t syslog -d state -v 1 disabled
Set syslog dest1 disabled successfully.
# Query the syslog status of channel 1.
iBMC:/-> ipmcget -t syslog -d state -v 1
syslog dest1 state: disabled