Package: ipmitool
Version: 1.8.8-3
Severity: normal

(also applies to 1.8.9-1 from my reading the diff)

Hi,

ipmitool is somehow confusing for newcomers. Once installed, running
“ipmitool sdr” returned:
| Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such 
file or directory
| Get Device ID command failed
| Unable to open SDR for reading

OK. So I modprobe'd ipmi_* (especially ipmi_si and ipmi_devintf) and
tried again, and got the same error message. But ls-ing /dev/ipmi[tab]
showed /dev/ipmi0.

Ahah, gotcha, one has to be root. But why -ENOENT, then?

Actually, that's due to the fact that all of them are tried in a row,
and lperror() is finally called (see src/plugins/open/open.c), which is
a wrapper around perror(), which explains why the printed error matches
(the last) errno, which reports the last open() failure, which is indeed
-ENOENT.

I'm not sure how to improve that, but that surely would be appreciated.
Maybe not using lperror() but rather printing possible failing reasons
(might be due to non-existing devices or insufficient permissions) might
be the way to go?

Cheers,
--
Cyril Brulebois



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to