= IPMI = == Keywords == ipmi, ipmitool, raiders, linux, network, bmc, config == Install == {{{ # raiders1,5 / Ubuntu sudo apt-get install ipmitool }}} == Configure == {{{ # Enable the kernel modules, create devices, turn on OpenIPMI service sudo service openipmi start # Configure the network address sudo ipmitool lan set 1 ipsrc static sudo ipmitool lan set 1 ipaddr 192.168.75.2 sudo ipmitool lan set 1 netmask 255.255.255.0 ##sudo ipmitool lan set 1 defgw 192.168.75.1 ##sudo ipmitool lan set 1 defgw ipaddr 192.168.75.1 # Display the network config sudo ipmitool lan print # Set the password for the admin user sudo ipmitool user set password 2 12BluePenguins # Display user info sudo ipmitool user list 1 }}} == Using ipmi == {{{ # Display chassis info sudo ipmitool chassis status # Display network config sudo ipmitool lan print # Power Cycle raiders1 ipmitool -I lan -U admin -H 192.168.75.2 chassis power cycle }}} == IPMI console == {{{ ipmitool -I lanplus -H 192.168.76.1 -U admin -P pass sol activate }}} == Temporary access for raiders1,5 == raiders1 bmc [192.168.75.2/24] => ilnfs3 onboard gbit2/eth4 [192.168.75.1/24] raiders5 bmc [192.168.76.2/24] => ilnfs3 onboard gbit0/eth2 [192.168.76.1/24] {{{ # SETUP @ilnfs3 # Interfaces are not configured on boot ifconfig eth2 192.168.76.1/24 up ifconfig eth4 192.168.75.1/24 up # TEST @ilnfs3 # raiders1 ipmitool -I lan -U admin -H 192.168.75.2 chassis status # raiders5 ipmitool -I lan -U admin -H 192.168.76.2 chassis status }}} == Random notes for connecting to the graphical console == This is a script that does all the port redirections necessary to run the Java client: {{{ #!/bin/bash # # Open SSH session and forward all IPMI ports DST=192.168.76.110 ssh \ -L8000:$DST:80 \ -L7578:$DST:7578 \ -L5120:$DST:5120 \ -L5122:$DST:5122 \ -L5123:$DST:5123 \ root@ilnfs3 }}} Once connected open your browser and access http://localhost:8000/ This brings up a dashboard that will complain about some Java Applets not being able to run. You are only after a link that starts the web console. It's a Java WebStart link but you need to persuade your browser to let you download it (instead of opening it with Java). This is what the beginning of the .jnlp file looks like: {{{ JViewer American Megatrends, Inc. JViewer Console Redirection Application JViewer Console Redirection Application JViewer enables a user to view the video display of managed server via KVM. It also enables the user to redirect his local keyboard, mouse for managing the server remotely. ... }}} You always need to download the latest jlnp file as it will contain the correct web cookie string. You need to change the line so it contains the url (you're adding the port): {{{ http://localhost:8000/Java }}} Now you can connect to the console by running Java Web Start from the command line: {{{ /usr/java/jre1.8.0_65/bin/javaws jviewer.jnlp }}} Note that the javaws binary is included only with the JRE (not included in the JDK by default). == References == https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool http://www.openfusion.net/linux/ipmi_on_centos