|
This page contains useful command for the ipmitool. ipmitool is installed on computenode01. This node can access the IPMI interfaces of all nodes in the cluster. The following actions can be performed with ipmitool:
|
|
This page contains useful command for the ipmitool. ipmitool is installed on computenode01. This node can access the IPMI interfaces of all nodes in the cluster.
|
|
|
|
|
|
|
|
You need to know the following information to connect to an IPMI interface.
|
|
|
|
|
|
|
|
```
|
|
|
|
IPMI_IP=10.0.1.105 # computenode05
|
|
|
|
PASSWORD="" # not shown here for security purposes
|
|
|
|
```
|
|
|
|
|
|
|
|
Get a serial console. This console is only useful during boot time and can access the boot configuration menu and the bios. Also you can see if the PXE boot process works.
|
|
|
|
|
|
- get a serial console:
|
|
|
|
```
|
|
```
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD sol activate
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD sol activate
|
|
```
|
|
```
|
|
|
|
|
|
|
|
You can check a node's power status and change it. Useful if you need to reboot a node if you locked yourself out of ssh with a bad iptables configuration.
|
|
|
|
|
|
|
|
```
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis power status
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis power off
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis power on
|
|
|
|
```
|
|
|
|
|
|
|
|
You can change the boot device if you want to switch from PXE boot to disk and vice versa.
|
|
|
|
|
|
|
|
```
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis bootdev pxe
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis bootdev disk
|
|
|
|
```
|
|
|
|
|
|
|
|
You can list additional IPMI commands and possible parameters if you provide insufficient parameters for the tool.
|
|
|
|
|
|
|
|
```
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis
|
|
|
|
ipmitool -I lanplus -H $IPMI_IP -U ADMIN -P $PASSWORD chassis bootdev
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also use the web interface to access sensor readings and change settings that are vendor specific and not (easily) accessible with the commandline tool. |