The issue
Providing a privilege command option (-L <PRIV>) to a list of arguments "silences" the command result output, when the result is expected to be an error.
IPMITOOL Version
ipmitool version 1.8.19.16.g81b8242
To Reproduce
Provide -L USER command option to a command requiring a higher privilege, e.g.:
$ ipmitool -L USER -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
Expected behavior
Error message output in console:
IPMI command failed: Insufficient privilege level
Actual behavior
No error messages.
Additional context
- The same command reproduced, but with the
-v option for verbose output:
$ ipmitool -L USER -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
Loading IANA PEN Registry...
Using best available cipher suite 17
Running Get VSO Capabilities my_addr 0x20, transit 0, target 0x20
Invalid completion code received: Invalid command
Discovered IPMB address 0x0
Get LAN Parameter 'Set in Progress' command failed: Insufficient privilege level
- The same command, but without the
-L <priv> option (note that the test_user has USER level privilege):
$ ipmitool -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x81)
Error: Unable to establish IPMI v2 / RMCP+ session
**The issue**
Providing a privilege command option (`-L <PRIV>`) to a list of arguments "silences" the command result output, when the result is expected to be an error.
**IPMITOOL Version**
```none
ipmitool version 1.8.19.16.g81b8242
```
**To Reproduce**
Provide `-L USER` command option to a command requiring a higher privilege, e.g.:
```none
$ ipmitool -L USER -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
```
**Expected behavior**
Error message output in console:
```none
IPMI command failed: Insufficient privilege level
```
**Actual behavior**
No error messages.
**Additional context**
1. The same command reproduced, but with the `-v` option for verbose output:
```none
$ ipmitool -L USER -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
Loading IANA PEN Registry...
Using best available cipher suite 17
Running Get VSO Capabilities my_addr 0x20, transit 0, target 0x20
Invalid completion code received: Invalid command
Discovered IPMB address 0x0
Get LAN Parameter 'Set in Progress' command failed: Insufficient privilege level
```
2. The same command, but without the `-L <priv>` option (note that the test_user has USER level privilege):
```none
$ ipmitool -I lanplus -U test_user -P some_pass -H 11.22.33.44 lan print 1
Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x81)
Error: Unable to establish IPMI v2 / RMCP+ session
```