Jump to content
tr0910

IPMI command line version for Linux

24 posts in this topic Last Reply

Recommended Posts

Is there a Linux command line version that would allow me to turn a server on?  I would like one unRaid box to turn another one on via IPMI.

 

I have several SuperMicro based servers that respond to Windows SuperMicro IPMI View allowing you to power up the server remotely.

 

(Older servers are based on SuperMicro x7dbe with added ipmi card, and newer one is MBD-X9SCM-F-O with IPMI built in)

 

Share this post


Link to post

You can use a web browser.  Also here is a blog that talks about IPMI on Linux.  Here is a complete list of other links.  Hopefully there is something you can use in this list.  I use windows primarily so won't be of much help implementing anything on unRAID.

Share this post


Link to post

Thanks, I too am no Linux guru.  Yes, I have tried via web browser, and the newer system works fine, but not the older one.  Regardless, I want to build a automated system that runs itself, with no need for me to do anything except monitor that it is still working.  Have it once per day wake up the backup server, and start the backup.

 

I found this but it looks a little abandoned with no recent changes.

 

http://ipmitool.sourceforge.net/

http://slackbuilds.org/repository/13.37/system/ipmitool/

 

This here looks promising too, but again not sure which one is best?

 

http://ipmiutil.sourceforge.net/

http://pkgs.org/download/ipmiutil

 

It doesn't look like anyone has tried this with unRaid yet?

Share this post


Link to post

Thanks, will have to see what works.  First I have to learn how to install stuff like this.  With real specific instructions I am OK, but it would be good to know some background.  That's the only way you really understand.

Share this post


Link to post

For the ipmitool package you should be able to install it using installpkg

 

installpkg /path/to/package.txz

 

Then just type ipmiutil to see if it works.

 

If all your wanting is to turn on the backup server it should work regardless of if its been updated. I doubt Intel has changed the hex commands for basic functions. Id test for you but I don't have ipmi.

Share this post


Link to post

Did I do it right?

 

File was originally ipmitool.tar.gz, but I renamed it to end in tgz.  Perhaps that's not kosher.

 

root@Tower3:/boot# installpkg ipmitool.tgz
Verifying package ipmitool.tgz.
Installing package ipmitool.tgz:
PACKAGE DESCRIPTION:
WARNING:  Package has not been created with 'makepkg'
Package ipmitool.tgz installed.

root@Tower3:/boot# ipmitool
-bash: ipmitool: command not found
root@Tower3:/boot# ipmiutil
-bash: ipmiutil: command not found
root@Tower3:/boot#

Share this post


Link to post

Did I do it right?

 

File was originally ipmitool.tar.gz, but I renamed it to end in tgz.  Perhaps that's not kosher.

 

root@Tower3:/boot# installpkg ipmitool.tgz
Verifying package ipmitool.tgz.
Installing package ipmitool.tgz:
PACKAGE DESCRIPTION:
WARNING:  Package has not been created with 'makepkg'
Package ipmitool.tgz installed.

root@Tower3:/boot# ipmitool
-bash: ipmitool: command not found
root@Tower3:/boot# ipmiutil
-bash: ipmiutil: command not found
root@Tower3:/boot#

 

The command was right, the file was not. You'll need to create the slackware package for it. I thought the link to pkg.com was a link to a slack package.

 

If you go to the slackbuild link it will tell you how to make the package.

 

EDIT: On second thought, I looked at it and it requires a lot of missing packages. Someone will a full slack install would have to create the package, or you'll be chasing dependencies all night.

Share this post


Link to post

 

The command was right, the file was not. You'll need to create the slackware package for it. I thought the link to pkg.com was a link to a slack package.

 

If you go to the slackbuild link it will tell you how to make the package.

 

EDIT: On second thought, I looked at it and it requires a lot of missing packages. Someone will a full slack install would have to create the package, or you'll be chasing dependencies all night.

 

Thanks for catching that before I went crazy trying to make it work.  No I don't have a full slackware install.

 

Share this post


Link to post

Give this a try, I installed a full slackware in virtualbox to compile it. Should work.

 

It sure does work.  Real fine.  Just had one server start up the other with:

 

ipmitool -I lan -H 192.168.1.149 -U ADMIN -P ADMIN chassis power on

 

(I am using V5 rc6 test2 and V5 rc6 test on my servers currently)

 

Before running the above you need to to set up static ip address for the ipmi port and test with IPMI View:

 

I just downloaded the linux setup file from here:
ftp://supermicro.com/CDR-SIMIPMI_1.13_for_SIM_IPMI/IPMI_Solution/Utility/IPMICFG/Linux/ipmicfg-linux.x86.static

copied ipmicfg-linux.x86.static to the root of my flash drive that boots unraid.

./boot/ipmicfg-linux.x86.static

you can set your ip and mac address from there and you are good to go.

Here is how I did it:

reset IPMI to default settings:
./boot/ipmicfg-linux.x86.static -fd

list the current IP of the IPMI card:
./boot/ipmicfg-linux.x86.static -m

set the IP to something on my network:
./boot/ipmicfg-linux.x86.static -m 192.168.1.149

set the gateway/router:
./boot/ipmicfg-linux.x86.static -g 192.168.1.1

On my Windows 7 system, installed IPMIVIEW ftp://ftp.supermicro.com/utility/IPMIView/
If the direct IMPIVIEW link does not work (as I had to click through to accept SuperMicro's terms, try the right side of this page http://www.supermicro.com/products/nfo/IPMI.cfm under Resources, towards the bottom of Resources.

Once IPMIVIEW was installed & I had configured the server with the IPMICFG disk, I could use DISCOVERY to find my UnRAID server and it was at 192.168.1.149 just like I set it above.

(I copied the details required from different posts so need to credit the above to respective authors)

Share this post


Link to post

Is this file at a permanent home on dropbox?  Hopefully others can benefit in the future.

 

Thanks so much for your support.  Volunteers like yourself is what makes unRaid so valuable to us all. 

Share this post


Link to post

Semi-permanent home, I don't use dropbox often so I never get close to filling it up. If I ever do remove it I'll find a new home for the package and post an updated link.

Share this post


Link to post

Semi-permanent home, I don't use dropbox often so I never get close to filling it up. If I ever do remove it I'll find a new home for the package and post an updated link.

I could really use this, but the Dropbox link doesn't work any more - any chance you (or someone else) could re-upload this somewhere?

 

Thanks.

Share this post


Link to post

same here. anyone got a compiled ipmiutil / ipmitool version for unraid 5.x?

 

I am still using the same one that he compiled for me.  It's working fine with latest v5, but I've not tested it with v6.

 

I'm not where I can access it right now, but PM me next week and I should have it.

Share this post


Link to post

thanks for the reply, but I did find it in another thread (damn can't find it right now) and it's working on unraid 5.

Share this post


Link to post

my bad, I got confused with ether-wake since I happened to have been looking for it too (and that's what I'm using to wake up the PC now instead of ipmi). So in fact I don't have ipmitool for unraid. Hopefully tr0910 can still help you and upload it.

Share this post


Link to post

The only one I found that is still maintained for slackware is freeipmi for both 5 & 6.  But the package for 6 will break domains from auto starting and auto shutdown.  That's because it creates a directory in /etc which breaks the auto start script for domains It's /etc/sys??? Don't remember the name.  You just have to edit out the check for that directory in the rc.domains script or link the script in /etc/sys????

Share this post


Link to post

@BRiT

 

I believe I have the IPMI tool to which you refer already installed. While it is an excellent tool for reading the sensors, it does not provide the same functionality as this set of tools provided in Unraid v5. 

 

The feature I am looking for is the ability to power on a Supermicro x9scm-f motherboard.  WOL does not work on this motherboard.  However, these tools provide a CLI command to turn on the machine via IPMI. 

 

In looking through the signatures of some the most frequent posters, I noticed that many are using a similar Supermicro motherboard and thought I'd ask

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.