Get Syslog Server Info
更新时间: 2026/08/06
在Gitcode上查看源码Get 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 query the syslog server information, including the attributes and configurations of the syslog server.
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=6Fh |
| 5 | 0x00, reserved |
| 6 | 0x00-0x03 indicates the syslog server ID, and 0xff indicates the unified configuration function of the syslog server. |
| 7 | Query options. 01-04h indicates the syslog server attribute, and 05-09h indicates the syslog unified configuration attribute. The query options and corresponding returned attributes are described as follows: 01h-IP Address: The maximum length of the domain name that can be queried is 230 bytes. 02h-Port: server port. The value contains four bytes and is output in little-endian mode. 03h-LogType: indicates the log type. If this option is selected, the attribute values are as follows: 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: indicates whether to enable the syslog service. 0: disable; 1: enable. 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 identifier: 0-BoardSN (board serial number), 1-ProductAssetTag (product asset tag), 2-HostName (host name) Note: When the value of MessageFormat is RFC3164, the value of ServerIdentity is fixed to HostName. |
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 | 0x00: reserved |
| 6 | Length of the returned attribute value (in bytes) |
| 7:N | PropertyValue |
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 01 01