Menu

#60 ipmiutil alarm/health not working on Windows

ipmiutil-2.8.x
closed
None
5
2025-05-17
2024-02-13
Yue Li
No

I have been trying to use ipmiutil on Windows. I have discovered some differences between the Windows release and the Linux release, as well as differences between the Windows releases.

ipmiutil health -N <node> -U <user> 
  • Linux
    • Works for 3.1.9 (both -Y and -P)
  • Windows
    • Does not work for 3.1.9 (neither -Y nor -P)
    • Partially works for 3.1.8 (no for -Y yes for -P)
    • Does not work for 3.1.7 (neither -Y nor -P)

Linux 3.1.9:

-bash-4.4$ echo <password> | ipmiutil health -N <BMC ip> -U lroot -Y
ipmiutil health ver 3.19
Enter IPMI LAN Password: 
********
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
BMC manufacturer  = 00002a (Sun), product = 4701 (X4140)
BMC version       = 5.00, IPMI v2.0
IPMI driver type  = 9        (lan2)
Selftest status   = 0055     (OK)
Chassis Status    = 01 00 00 6a (on, see below)
    chassis_power       = on
    pwr_restore_policy  = stay_off
    chassis_intrusion   = inactive
    front_panel_lockout = inactive
    drive_fault         = false
    cooling_fan_fault   = false
BMC LAN Channels  = 1 
Chan 1 AuthTypes  = 
ipmiutil health, completed successfully
-bash-4.4$ ipmiutil health -N <BMC ip> -U lroot -P <password>
ipmiutil health ver 3.19
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
BMC manufacturer  = 00002a (Sun), product = 4701 (X4140)
BMC version       = 5.00, IPMI v2.0
IPMI driver type  = 9        (lan2)
Selftest status   = 0055     (OK)
Chassis Status    = 01 00 00 79 (on, see below)
    chassis_power       = on
    pwr_restore_policy  = stay_off
    chassis_intrusion   = inactive
    front_panel_lockout = inactive
    drive_fault         = false
    cooling_fan_fault   = false
BMC LAN Channels  = 1 
Chan 1 AuthTypes  = 
ipmiutil health, completed successfully

Windows 3.1.9:

C:\Program Files (x86)\Sourceforge\ipmiutil>echo <password> | ipmiutil health -N <BMC ip> -U lroot -Y
ipmiutil health ver 3.19
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...

C:\Program Files (x86)\Sourceforge\ipmiutil>ipmiutil health -N <BMC ip> -U lroot -P <password>
ipmiutil health ver 3.19
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...

Windows 3.1.8

C:\Users\yuell\Downloads\ipmiutil-3.1.8-win64>echo <password> | ipmiutil health -N <BMC ip> -U lroot -Y
ipmiutil health ver 3.18
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
LANPLUS error in RAKP1
Error: Unable to establish IPMI v2 / RMCP+ session
ipmi_open_lan2 error -1
ipmi_open error = -1 error -1
ipmiutil health, error -1

C:\Users\yuell\Downloads\ipmiutil-3.1.8-win64>ipmiutil health -N 10.128.56.11 -U lroot -P <password>
ipmiutil health ver 3.18
Connecting to node  10.128.56.11
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node 10.128.56.11 ...
BMC manufacturer  = 00002a (Sun), product = 4701 (X4140)
BMC version       = 5.01, IPMI v2.0
IPMI driver type  = 9        (lan2)
Selftest status   = 0055     (OK)
Chassis Status    = 21 00 00 02 (on, see below)
        chassis_power       = on
        pwr_restore_policy  = last_state
        chassis_intrusion   = inactive
        front_panel_lockout = inactive
        drive_fault         = false
        cooling_fan_fault   = false
BMC LAN Channels  = 1
Chan 1 AuthTypes  =
ipmiutil health, completed successfully

Windows 3.1.7:

C:\Users\yuell\Downloads\ipmiutil-3.1.7-win64>echo <password> | ipmiutil health -N <BMC ip> -U lroot -Y
ipmiutil health ver 3.17
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
LANPLUS error in RAKP1
Error: Unable to establish IPMI v2 / RMCP+ session
ipmi_open_lan2 error -1
ipmi_open error = -1 error -1
ipmiutil health, error -1

C:\Users\yuell\Downloads\ipmiutil-3.1.7-win64>ipmiutil health -N <BMC ip> -U lroot -P <password>
ipmiutil health ver 3.17
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
ipmiutil alarms -r -N <node> -U <user>
  • Linux
    • Works for 3.1.9 (both -Y and -P)
  • Windows
    • Does not work for 3.1.9 (neither -Y nor -P)
    • Partially works for 3.1.8 (no for -Y yes for -P)
    • Does not work for 3.1.7 (neither -Y nor -P)

Linux 3.1.9:

-bash-4.4$ echo <password> | ipmiutil alarms -r -N <BMC ip> -U lroot -Y
ipmiutil alarms ver 3.19
Enter IPMI LAN Password: 
********
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
-- BMC version 5.0, IPMI version 2.0 
Do get_alarms_sun() 
ipmiutil alarms, completed successfully
-bash-4.4$ ipmiutil alarms -r -N <BMC ip> -U lroot -P <password>
ipmiutil alarms ver 3.19
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
-- BMC version 5.0, IPMI version 2.0 
Do get_alarms_sun() 
ipmiutil alarms, completed successfully

Windows 3.1.9:

C:\Program Files (x86)\Sourceforge\ipmiutil>echo <password> | ipmiutil alarms -r -N <BMC ip> -U lroot -Y
ipmiutil alarms ver 3.19
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...

C:\Program Files (x86)\Sourceforge\ipmiutil>ipmiutil alarms -r -N <BMC ip> -U lroot -P <password>
ipmiutil alarms ver 3.19
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...

Windows 3.1.8:

C:\Users\yuell\Downloads\ipmiutil-3.1.8-win64>echo <password> | ipmiutil alarms -r -N <BMC ip> -U lroot -Y
ipmiutil alarms ver 3.18
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
LANPLUS error in RAKP1
Error: Unable to establish IPMI v2 / RMCP+ session
ipmi_open_lan2 error -1
ipmi_open error = -1 error -1
ipmiutil alarms, error -1

C:\Users\yuell\Downloads\ipmiutil-3.1.8-win64>ipmiutil alarms -r -N 10.128.56.11 -U lroot -P <password>
ipmiutil alarms ver 3.18
Connecting to node  10.128.56.11
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node 10.128.56.11 ...
-- BMC version 5.1, IPMI version 2.0
Do get_alarms_sun()
ipmiutil alarms, completed successfully

Windows 3.1.7:

C:\Users\yuell\Downloads\ipmiutil-3.1.7-win64>echo <password> | ipmiutil alarms -r -N <BMC ip> -U lroot -Y
ipmiutil alarms ver 3.17
Enter IPMI LAN Password:
*********
Connecting to node  <BMC ip>
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node <BMC ip> ...
LANPLUS error in RAKP1
Error: Unable to establish IPMI v2 / RMCP+ session
ipmi_open_lan2 error -1
ipmi_open error = -1 error -1
ipmiutil alarms, error -1

C:\Users\yuell\Downloads\ipmiutil-3.1.7-win64>ipmiutil alarms -r -N 10.128.56.11 -U lroot -P <password>
ipmiutil alarms ver 3.17
Connecting to node  10.128.56.11
ipmilan_open_session error, rv = -15
ipmilan BMC only supports lan v2
Opening lanplus connection to node 10.128.56.11 ...

Discussion

  • Andy Cress

    Andy Cress - 2025-05-17

    From Nov 21, 2024 email thread:
    I really don't have any good answers to resolve this. A few things that you could do:

    • use version 3.1.8 if that suits you best for this case
    • investigate the firmware side to see why it appears to return extra bytes for the HMAC
    • use the new version with -Y

    Also note that there have been several openssl DLL version upgrades, so the latest (ipmiutil-3.2.1) should have all the current fixes.

     
  • Andy Cress

    Andy Cress - 2025-05-17
    • status: open --> closed
    • assigned_to: Andy Cress
     

Log in to post a comment.

MongoDB Logo MongoDB