For When You Can't Have The Real Thing
[ start | index | login ]
start > Sun > X2200-M2 > IPMI under Linux

IPMI under Linux

Created by dave. Last edited by dave, 13 years and 322 days ago. Viewed 5,428 times. #10
[diff] [history] [edit] [rdf]
labels
attachments
(Notes for CentOS 4.x; validated under 4.7)

Setting Up The SC From Scratch

[root@x2200-01 ~]# chkconfig ipmi on
[root@x2200-01 ~]# service ipmi start
Starting ipmi drivers:                                     [  OK  ]
[root@x2200-01 ~]# ipmitool user set password 2 'foofoo'
[root@x2200-01 ~]# ipmitool lan set 1 ipsrc static
[root@x2200-01 ~]# ipmitool lan set 1 ipaddr 10.0.5.241
Setting LAN IP Address to 10.0.5.241
[root@x2200-01 ~]# ipmitool lan set 1 netmask 255.255.240.0
Setting LAN Subnet Mask to 255.255.240.0
[root@x2200-01 ~]# ipmitool lan set 1 defgw ipaddr 10.0.15.254
Setting LAN Default Gateway IP to 10.0.15.254

Assuming network connectivity is dealt with, you should now be able to either use remote IPMI commands or connect to the web interface on the SC.

New User Creation

# ipmitool user set name 2 root
# ipmitool user set password 2 'foofoo'
# ipmitool user set priv 2 4

Priv levels:

  • 1 Callback
  • 2 User
  • 3 Operator
  • 4 Administrator
I was doing a password rotation on the LOM interface and pooched the new password twice, so I couldn't get back in. I still had OS access to the system (having not pooched that rotation), so the fix is to change the password through IPMI from the host.

# ipmitool user list 1
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    true    true       true       ADMINISTRATOR
2   root             true    true       true       ADMINISTRATOR
# ipmitool user set password 2 newpassword

You have to specify channel 1 to get the user list. You can then change the password of the root user, which in this case is user id 2.

Note that the obvious, ipmi user set password root newpassword is wrong because the root gets interpreted as 0, and there is no user with ID 0.

Chassis Event Log

List:

$ ipmitool sel elist

Clear:

$ ipmitool sel clear
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt