Set Syslog Server Info
更新时间: 2026/08/06
在Gitcode上查看源码Set Syslog Server Info
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to set syslog server information, including syslog server attributes and configurations.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command, sub command=70h |
| 5 | 0x00, reserved |
| 6 | 0x00-0x03 indicates the syslog server ID, and 0xff indicates the unified configuration function of the syslog server. |
| 7 | Indicates the setting option. 01-04h is the syslog server attribute, and 05-09h is the syslog unified configuration attribute. The setting option and the corresponding attribute to be set are described as follows: 01h-IP Address: The maximum length of the domain name is 230 bytes. 02h-Port: server port. The value consists of four bytes and is in little-endian format. 03h-LogType: indicates the log type. If this option is selected, the following attributes will be set: Bit 0 indicates whether the operation log function is enabled. Bit 1 indicates whether the security log function is enabled. Bit 2 indicates whether the event log function is enabled. Bit 3 indicates whether the intrusion detection log function is enabled. Bit 4 indicates whether the system serial port log function is enabled. Bit 5 indicates whether the BMC serial port log function is enabled. Bit 6 indicates whether the fault diagnosis log function is enabled. Bit 7 indicates whether the board chip log function is enabled (0 indicates that the function is disabled, and 1 indicates that the function is enabled). 04h-ServerEnable: specifies the enabling status of the syslog server. 0: disabled; 1: enabled. 05h-ServiceEnabled: syslog service enabling status. 0: disabled; 1: enabled. 06h-TransmissionProtocol: transmission protocol. 1: UDP; 2: TCP; 3: TLS. 07h-AlarmSeverity: alarm severity. 0: None. 1: Normal. 2: Minor. 3: Major. 4: Critical. 08h-MessageFormat: message format. 0: custom; 1: RFC3164 09h-ServerIdentity: host ID. 0: BoardSN (board serial number); 1: ProductAssetTag (product asset tag); 2: HostName (host name) Note: ServerIdentity can be set only when MessageFormat is set to Custom. When MessageFormat is set to RFC3164, ServerIdentity cannot be set and is fixed to HostName. |
| 8 | Indicates the length (in bytes) of the attribute value to be set. |
| 9:N | PropertyValue: attribute value to be set |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 5 | Success Code 0x00 |
Command Example
Query whether syslog server channel 0 is enabled.
Request:
bash
ipmicmd -k "0f 00 db 07 00 70 00 ff 06 01 03 " smi 0Response:
text
0f db 07 00 00