Setting the Syslog Server Address (syslog -d address)
Function
The syslog -d address command is used to set the syslog server address.
Format
ipmcset -t syslog -d address -v <destination> <ipaddr>
Parameters
Parameter |
Description |
Value |
---|---|---|
destination |
Specifies the number of a syslog reporting channel. |
1 to 4 |
ipaddr |
Specifies the syslog server address. |
It can be an IPv4 or IPv6 address, a domain name, or empty. |
Usage Guidelines
If ipaddr is empty, this command is used to clear the IP address.
Example
# Set the syslog server address to host for channel 1.
iBMC:/-> ipmcset -t syslog -d address -v 1 host
Set syslog dest1 address successfully.
# Query the syslog server address.
iBMC:/-> ipmcget -t syslog -d iteminfo
Item Num | state | port | dest address | log type
1 | disabled | 0 | host | operationlogs securitylogs eventlogs
2 | disabled | 0 | | operationlogs securitylogs eventlogs
3 | disabled | 0 | | operationlogs securitylogs eventlogs
4 | disabled | 0 | | operationlogs securitylogs eventlogs
# Clear the IP address of the syslog server of channel 1.
iBMC:/-> ipmcset -t syslog -d address -v 1 ""
Set syslog dest1 address successfully.