Closed yuzhichang closed 2 years ago
Hi, thanks for reporting. I suspect we may have to add some flags to this collector to set the hardware version it should work with. Can you please let me know which type of SM hardware you are trying to query and also, check if any of the corresponding variations of the raw command listed in this support article produce a correct result (3 octets)?
Thanks, Conrad
I installed freeipmi, ipmitool, ipmicfg on host (PowerEdge R720xd, CentOS 7.9.2009). The management nic address of this host is 192.168.102.98.
# ipmicfg -raw 0x30 0x70 0x0c 0
IPMI command not completed normally, Completion Code=C1h
# ipmicfg -raw 0x30 0x70 0x0c 0 0
IPMI command not completed normally, Completion Code=C1h
# ipmicfg -raw 0x30 0x70 0x0c 0 0 1
IPMI command not completed normally, Completion Code=C1h
# ipmitool raw 0x30 0x70 0x0c 0
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70 rsp=0xc1): Invalid command
# ipmitool raw 0x30 0x70 0x0c 0 0
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70 rsp=0xc1): Invalid command
# ipmitool raw 0x30 0x70 0x0c 0 0 1
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70 rsp=0xc1): Invalid command
# ipmitool raw 0x00 0x30 0x70 0x0c 0
Unable to send RAW command (channel=0x0 netfn=0x0 lun=0x0 cmd=0x30 rsp=0xc1): Invalid command
# ipmitool raw 0x00 0x30 0x70 0x0c 0 0
Unable to send RAW command (channel=0x0 netfn=0x0 lun=0x0 cmd=0x30 rsp=0xc1): Invalid command
# ipmitool raw 0x00 0x30 0x70 0x0c 0 0 1
Unable to send RAW command (channel=0x0 netfn=0x0 lun=0x0 cmd=0x30 rsp=0xc1): Invalid command
Sorry once more for the late reply. You are using Dell hardware here, but the sm-lan-mode module only works with Supermicro hardware. See https://github.com/prometheus-community/ipmi_exporter/blob/master/docs/metrics.md#supermicro-lan-mode-setting
exporter config:
I got error:
The
ipmi-raw
command returns only 2 bytes: