ipmitool sdr list Getting Error Message "Unable to send command: Invalid argument" when using the open ipmi interface.
This mesaage is coming for open interface when call to the IOCTL is failed in open.c pluging part.
And futher analyscis, found that the error message is due to, when we are trying to send the sensor address other the 0x20, Which is expected if we are sending the command over bridging,
And this will we be same behavioer in all the interface, Only difference is failuer string will be visble in the verbose mode for other interface and in open interface case we are showing it on console.
I know that calls failed to IOCTL command must be givien higher priority, but it should be added to verbose as we are displaying sdr output for particular senosr with Not Readable.
Found the root caue for issue, When using the open ipmi interface for in band commands in sdr list command, for some of the SDR which has different target address other BMC will try to do the bridging command over BMC, but since we are not validating the SENSOR Owner ID
bit in target address it will try to send the command for IPMB channel which is not at all exits.
Added the check to verify the SENSOR OWNER ID before framing the bridge command.
Attaching the patch
Looks duplicated by [#502]
Related
Bugs (use GitHub instead): #502
Last edit: Alexander Amelkin 2018-04-09
Hi Alexander
Thanks for the reply.
I don't think it is duplicate , Since in my reported issue the ipmi tool should not send the bridging command when sensor owner bit is enable. But in the other case #502 issue it should do the bridging since the sensor owner bit is not set.
Thanks
Ravi Sastry S