Configuring IPMI

From DISI
Revision as of 18:16, 30 June 2016 by Benrwong (talk | contribs)
Jump to navigation Jump to search

On the machine you are setting up IPMI on, install the following:

yum install ipmitool.x86_64 OpenIPMI.x86_64 OpenIPMI-devel.x86_64
service ipmi start
chkconfig --levels=2345 ipmi on

To see which lan the BMC is listening on, try the following (1-11):

ipmitool lan print 1
ipmitool lan print 2……. etc

For me, it was listening on channel 2. You know when it is not listening on the channel because you’ll see a message like this:

[root@raiders ~]# ipmitool lan print 3
 Channel 3 is not a LAN channel

Once you figure out which channel it’s listening on, do the following:

ipmitool lan set 2 ipsrc static   → Note that the ‘2’ is the channel the BMC is listening on
ipmitool lan set 2 ipaddr 10.10.110.22  → “ “  Also, change the ip address to whatever you are using, obviously
ipmitool lan set 2 netmask 255.255.0.0

Check to make sure everything is configured right:

ipmitool lan print 2

The default name and password is usually admin admin for HP’s. To change a password for a user, for example admin, check to see what the user id of admin is by typing:

ipmitool user list 2

When I typed this I saw this:

ID  Name     	Callin  Link Auth    IPMI Msg   Channel Priv Limit
1                	true	true   	true   	USER
2   Operator     	true	true   	true   	OPERATOR
3   admin        	true	true   	true   	ADMINISTRATOR
4   OEM          	true	true   	true   	OEM
5   Operator     	true	true   	true   	OPERATOR
6   admin        	true	true   	true   	ADMINISTRATOR
7   OEM          	true	true   	true   	OEM
8   Operator     	true	true   	true   	OPERATOR
9   admin        	true	true   	true   	ADMINISTRATOR
10  OEM          	true	true   	true   	OEM
11  Operator     	true	true   	true   	OPERATOR
12  admin        	true	true   	true   	ADMINISTRATOR
13  OEM          	true	true   	true   	OEM
14  Operator     	true	true   	true   	OPERATOR
15  admin        	true	true   	true   	ADMINISTRATOR
16  OEM          	true	true   	true   	OEM

This is how I knew that the admin user ID is 3 So to change the password of admin I typed:

ipmitool user set password 3 <New Password>  → Note that ‘3’ is the user ID

To add a new user to, say ID 4, and I wanted to change it to ipmiuser:

ipmitool user set name 4 ipmiuser
ipmitool user set password 4  <some password>
ipmitool user enable 4


To check your configuration type:

ipmitool lan print


This is what my configuration looked like:

[root@blues ~]# ipmitool lan print
Set in Progress     	: Set Complete
Auth Type Support   	: NONE MD5 PASSWORD
Auth Type Enable    	: Callback : NONE MD5 PASSWORD
                    		: User 	: NONE MD5 PASSWORD
                    		: Operator : NONE MD5 PASSWORD
                    		: Admin	: NONE MD5 PASSWORD
                    		: OEM  	: NONE MD5 PASSWORD
IP Address Source   	: Static Address
IP Address          	: 10.10.110.22
Subnet Mask         	: 255.255.0.0
MAC Address         	: 00:00:00:c6:de:d9
SNMP Community String   : public
IP Header           	: TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
Default Gateway IP  	: 0.0.0.0
802.1q VLAN ID      	: Disabled
802.1q VLAN Priority	: 0
RMCP+ Cipher Suites 	: 0,1,2,3
Cipher Suite Priv Max   : OOOOXXXXXXXXXXX
                    	: 	X=Cipher Suite Unused
                    	: 	c=CALLBACK
                    	: 	u=USER
                    	: 	o=OPERATOR
                    	: 	a=ADMIN
                    	: 	O=OEM

Clean up: To clean up the history file (just in case) find the lines where you changed the password, ie:

1010  ipmitool user list 1
1011  ipmitool user set password 2 mypassword
1012  ipmitool lan print 3
1013  history

So using the above scenario, I would delete that line by typing:

history -d 1011

To test it: On another server install ipmitool. To check it:

ipmitool -I lanplus -H 10.10.110.22 -U admin -a chassis power status

I saw:

[root@raiders ~]# ipmitool -I lanplus -H 10.10.110.22 -U admin -a chassis power status
Password:
Chassis Power is on

Back to IPMI.

For Fawlty: it’s ipmitool -I (capital “eye”)

ipmitool -I lanplus -H 10.10.110.8 -U ADMINISTRATOR -P 7mon8ke9ys bmc info 
ipmitool -I lanplus -H 10.10.110.8 -U ADMINISTRATOR -P 7mon8ke9ys chassis power cycle ===> reboot


Template:See also