Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] & [Documentation] How to use in HAOS and older IPMI #33

Open
Saentist opened this issue Mar 26, 2024 · 13 comments
Open

[BUG] & [Documentation] How to use in HAOS and older IPMI #33

Saentist opened this issue Mar 26, 2024 · 13 comments

Comments

@Saentist
Copy link

Saentist commented Mar 26, 2024

Please add some documentation for users with use HAOS.
https://www.home-assistant.io/installation/alternative

@ateodorescu
Copy link
Owner

Why do you think that users that use HAOS need special documentation? It's an integration that can be used with Home Assistant and it doesn't matter if you run HASS as OS or inside a container or any other way.

@Saentist
Copy link
Author

Saentist commented Mar 26, 2024

@ateodorescu
Second step to install https://github.com/ateodorescu/home-assistant-addons
go to nowhere, no connection
HAOS is more limited on user interaction in terminal.

2024/03/26 12:10:13 [error] 205#205: *11 FastCGI sent in stderr: "PHP message: Error occurred when running "ipmitool -H 192.168.1.29 -p 623 -U saen -P #### -I lanplus bmc info".
Error: Unable to establish IPMI v2 / RMCP+ session
PHP message: Error occurred when running "ipmitool -H 192.168.1.29 -p 623 -U saen -P #### -I lan bmc info".
Error: Unable to establish LAN session
Error: Unable to establish IPMI v1.5 / RMCP session
PHP message: Error occurred when running "ipmitool -H 192.168.1.29 -p 623 -U saen -P #### -I imb bmc info".
Error loading interface imb
PHP message: Error occurred when running "ipmitool -H 192.168.1.29 -p 623 -U saen -P #### -I open bmc info".
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory" while reading response header from upstream, client: 172.30.32.1, server: _, request: "GET /?host=192.168.1.29&port=623&user=saen&password=############# HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:9595"
Logger: custom_components.ipmi.server
Source: custom_components/ipmi/server.py:267
integration: ipmi connector (documentation, issues)
First appeared: 12:06:09 (4 events)
Last logged: 12:54:32 PM.
Wrong connection data provided!

standard linux remote connection

$ ipmitool -H 192.168.1.29 -U saen sdr
Password:
BB +1.1V IOH     | 1.09 Volts        | ok
BB +1.1V P1 Vccp | 1.19 Volts        | ok
BB +1.5V P1 DDR3 | 1.52 Volts        | ok
BB +1.8V AUX     | 1.77 Volts        | ok
BB +3.3V         | 3.31 Volts        | ok
BB +3.3V STBY    | 3.32 Volts        | ok
BB Vbat          | 2.93 Volts        | ok
BB +5.0V         | 4.99 Volts        | ok
BB +5.0V STBY    | 5.06 Volts        | ok
BB +12.0V        | 11.88 Volts       | ok
BB -12.0V        | -12.12 Volts      | ok
BB +1.35V P1 MEM | disabled          | ns
Baseboard Temp   | 36 degrees C      | ok
IOH Therm Margin | -7 degrees C      | ok
Mem P1 Thrm Mrgn | -11 degrees C     | ok
P1 Therm Margin  | -58 degrees C     | ok
P1 Therm Ctrl %  | 0 percent         | ok
Pwr Unit Status  | 0x00              | ok
IPMI Watchdog    | 0x00              | ok
Physical Scrty   | 0x00              | ok
FP NMI Diag Int  | 0x00              | ok
SMI TimeOut      | 0x00              | ok
System Event Log | 0x00              | ok
System Event     | 0x00              | ok
P1 Status        | 0x00              | ok
P1 VRD Hot       | 0x00              | ok
CATERR           | 0x00              | ok
IOH Thermal Trip | 0x00              | ok
Button           | 0x00              | ok
NM Capabilities  | 0x05              | ok

guess problem is in not existing commands "bmc info"

$ ipmitool -H 192.168.1.29 -U saen
Password:
No command provided!
Commands:
        raw           Send a RAW IPMI request and print response
        i2c           Send an I2C Master Write-Read command and print response
        spd           Print SPD info from remote I2C device
        lan           Configure LAN Channels
        chassis       Get chassis status and set power state
        power         Shortcut to chassis power commands
        event         Send pre-defined events to MC
        mc            Management Controller status and global enables
        sdr           Print Sensor Data Repository entries and readings
        sensor        Print detailed sensor information
        fru           Print built-in FRU and scan SDR for FRU locators
        gendev        Read/Write Device associated with Generic Device locators sdr
        sel           Print System Event Log (SEL)
        pef           Configure Platform Event Filtering (PEF)
        sol           Configure and connect IPMIv2.0 Serial-over-LAN
        tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
        isol          Configure IPMIv1.5 Serial-over-LAN
        user          Configure Management Controller users
        channel       Configure Management Controller channels
        session       Print session information
        dcmi          Data Center Management Interface
        nm            Node Manager Interface
        sunoem        OEM Commands for Sun servers
        kontronoem    OEM Commands for Kontron devices
        picmg         Run a PICMG/ATCA extended cmd
        fwum          Update IPMC using Kontron OEM Firmware Update Manager
        firewall      Configure Firmware Firewall
        delloem       OEM Commands for Dell systems
        shell         Launch interactive IPMI shell
        exec          Run list of commands from file
        set           Set runtime variable for shell and exec
        hpm           Update HPM components using PICMG HPM.1 file
        ekanalyzer    run FRU-Ekeying analyzer using FRU files
        ime           Update Intel Manageability Engine Firmware
        vita          Run a VITA 46.11 extended cmd
        lan6          Configure IPv6 LAN Channels

@ateodorescu
Copy link
Owner

Screenshot 2024-03-28 at 07 59 01
How to install an add-on is documented in Home Assistant. Go to "Add-on Store" and click on "Repositories" and add https://github.com/ateodorescu/home-assistant-addons as a new repository. After that you will see add-on available in the list.

@ateodorescu
Copy link
Owner

Here is the documentation for the addons: https://www.home-assistant.io/addons/

@Saentist
Copy link
Author

Saentist commented Mar 28, 2024

Screenshot 2024-03-28 at 07 59 01 How to install an add-on is documented in Home Assistant. Go to "Add-on Store" and click on "Repositories" and add https://github.com/ateodorescu/home-assistant-addons as a new repository. After that you will see add-on available in the list.

@ateodorescu
I do that, but Server IPMI do not support bms info command
it have similar command fru
without report from hard-coded command bms info no connection established
/read previous post/

ipmitool> ?
Commands:
        raw           Send a RAW IPMI request and print response
        i2c           Send an I2C Master Write-Read command and print response
        spd           Print SPD info from remote I2C device
        lan           Configure LAN Channels
        chassis       Get chassis status and set power state
        power         Shortcut to chassis power commands
        event         Send pre-defined events to MC
        mc            Management Controller status and global enables
        sdr           Print Sensor Data Repository entries and readings
        sensor        Print detailed sensor information
        fru           Print built-in FRU and scan SDR for FRU locators
        gendev        Read/Write Device associated with Generic Device locators sdr
        sel           Print System Event Log (SEL)
        pef           Configure Platform Event Filtering (PEF)
        sol           Configure and connect IPMIv2.0 Serial-over-LAN
        tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
        isol          Configure IPMIv1.5 Serial-over-LAN
        user          Configure Management Controller users
        channel       Configure Management Controller channels
        session       Print session information
        dcmi          Data Center Management Interface
        nm            Node Manager Interface
        sunoem        OEM Commands for Sun servers
        kontronoem    OEM Commands for Kontron devices
        picmg         Run a PICMG/ATCA extended cmd
        fwum          Update IPMC using Kontron OEM Firmware Update Manager
        firewall      Configure Firmware Firewall
        delloem       OEM Commands for Dell systems
        shell         Launch interactive IPMI shell
        exec          Run list of commands from file
        set           Set runtime variable for shell and exec
        hpm           Update HPM components using PICMG HPM.1 file
        ekanalyzer    run FRU-Ekeying analyzer using FRU files
        ime           Update Intel Manageability Engine Firmware
        vita          Run a VITA 46.11 extended cmd
        lan6          Configure IPv6 LAN Channels

@Saentist Saentist changed the title [Documentation] How to use in HAOS [BUG] & [Documentation] How to use in HAOS and older IPMI Mar 28, 2024
@ateodorescu
Copy link
Owner

What's the output for the followin commands: mc info and fru?

@Saentist
Copy link
Author

What's the output for the followin commands: mc info and fru?

# ipmitool -H 192.168.1.29 -U saen -I lanplus shell
Password:
ipmitool> mc info
Device ID                 : 33
Device Revision           : 1
Firmware Revision         : 0.56
IPMI Version              : 2.0
Manufacturer ID           : 343
Manufacturer Name         : Intel Corporation
Product ID                : 62 (0x003e)
Product Name              : Unknown (0x3E)
Device Available          : yes
Provides Device SDRs      : no
Additional Device Support :
    Sensor Device
    SDR Repository Device
    SEL Device
    FRU Inventory Device
    IPMB Event Receiver
    IPMB Event Generator
    Chassis Device
Aux Firmware Rev Info     :
    0x00
    0x18
    0x00
    0x56
ipmitool> fru
FRU Device Description : Builtin FRU Device (ID 0)
 Chassis Type          : Main Server Chassis
 Chassis Part Number   : ..................
 Chassis Serial        : ..................
 Chassis Extra         : ..............................
 Board Mfg Date        : Mon Feb 21 23:46:00 2011
 Board Mfg             : Intel Corporation
 Board Product         : S5520HC
 Board Serial          : QSHN10701536
 Board Part Number     : E26045-454
 Product Manufacturer  : Wortmann AG
 Product Name          : TERRA Server
 Product Part Number   : ..........
 Product Version       : ....................
 Product Asset Tag     : S5520S

@ateodorescu
Copy link
Owner

Did you run those commands inside the ipmi-server docker instance (add-on) or on your computer?
The add-on is running as a docker instance in Home Assistant and inside the container ipmitool is installed. If ipmitool bmc info fails inside the docker container and it runs ok on your computer then the ipmitool versions might be different.
You can install the terminal add-on in Home Assistant to have a console in HASS.

@Saentist
Copy link
Author

On computer.
As you see, I directly use shell option and use it as terminal session.

@ateodorescu
Copy link
Owner

Unfortunately there is nothing I can do if ipmitool fails inside the add-on docker container.

@Saentist
Copy link
Author

It not fails just expected result of bms info fails

Logger: custom_components.ipmi.server
Source: custom_components/ipmi/server.py:267
integration: ipmi connector (documentation, issues)
First appeared: 12:06:09 (4 events)
Last logged: 12:54:32 PM.
Wrong connection data provided!

inside docker itself

image

no ping

@ateodorescu
Copy link
Owner

Is your Home Assistant installation in the same network with the server that you want to monitor?

@Saentist
Copy link
Author

Yes, same network.
HAOS is a Virtual pc on same server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants