Linux Stall
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials
No Result
View All Result
Linux Stall
No Result
View All Result
Home Tips

Useful Remote IPMI Commands For Managing Servers

Chankey Pathak by Chankey Pathak
July 11, 2020
in Tips
43 3
0
The three-dimensional network topology infographics with ip addresses 3d illustration
15
SHARES
767
VIEWS
Share on FacebookShare on Twitter

In this post I will be showing you some of the useful IPMI commands which can be used to remotely interact with your servers for things such as power cycles, serial over lan, and more. This guide will assume that your server is already setup and capable of receiving IPMI commands. Please refer https://github.com/ipmitool/ipmitool

Server Power Management

The following ipmitool commands can be used to check power status, turn the power on/off for your server remotely, power cycle it (gracefully if possible), and reset (reset as if you unplugged/plugged the server back in).

ipmitool -I lanplus -H  -U  -P  chassis power status
ipmitool -I lanplus -H  -U  -P  chassis power on
ipmitool -I lanplus -H  -U  -P  chassis power off
ipmitool -I lanplus -H  -U  -P  chassis power cycle
ipmitool -I lanplus -H  -U  -P  chassis power reset

On a side note, you can also see if somebody rebooted your server using this:

ipmitool -I lanplus -H  -U  -P  chassis restart_cause

Server Sensor Values

With the commands below you can check on the servers sensors. This includes things such as wattage, temperatures, etc. It will even tell you (usually) if one of those values is past the safe threshold by marking it as critical (cr).

ipmitool -I lanplus -H  -U  -P  sensor list
ipmitool -I lanplus -H  -U  -P  sdr

Force Server Boot Into BIOS/PXE

The next ipmitool commands can be used to force your server to boot into PXE or BIOS during next reboot, this does NOT work on HP Proliant servers! For that you will need to use different commands. After running these commands you will still need to reboot or power cycle your server for it to actually boot into the desired target.

ipmitool -I lanplus -H  -U  -P  chassis bootdev bios
ipmitool -I lanplus -H  -U  -P  chassis bootparam set bootflag force_bios;
ipmitool -I lanplus -H  -U  -P  chassis bootdev pxe
ipmitool -I lanplus -H  -U  -P  chassis bootparam set bootflag force_pxe

Check Server SEL Log

You can use the following command to check the SEL on your server, this may include errors such as memory issues or other hardware problems that your server may be experiencing.

ipmitool -I lanplus -H  -U  -P  sel elist

SOL Session

If you need to then you can connect to your server with a SOL session (serial over lan), this will let you get into your server even if SSH isn’t working. It is basically the same as plugging in a monitor and keyboard. You can do this with the ipmitool commands below.

ipmitool -I lanplus -H  -U  -P  sol activate

If somebody else is already connected and you would like to boot them off, you can also use the following to terminate their session.

ipmitool -I lanplus -H  -U  -P  sol deactivate

I hope you enjoyed this guide on using the ipmitool, please don’t forget to comment/share. Thanks!

Tags: commandsTips
Previous Post

How to customize your shell in Linux

Next Post

Packing and Unpacking Files In Linux

Chankey Pathak

Chankey Pathak

Data Scientist at Morgan Stanley. I've been using Linux since past 12 years. I plan to share what I know about Linux in this blog.

Related Posts

conceptual image, methaphor of busy and fast business, man with airplane desk
Tips

Drastically Speed up your Linux System with Preload

July 23, 2020
Professional Developer programmer working a software website design and coding technology, writing codes and database in company office, Global cyber connection technology.
Tips

Writing A Basic Expect Script For Automating Tasks

July 12, 2020
How to run sudo command without password on Linux?
FAQ

How to run sudo command without password on Linux?

June 21, 2015
Add auto-complete to “yum”
Tips

Add auto-complete to “yum”

August 18, 2013
How to display a digital clock in Linux terminal?
Tips

How to display a digital clock in Linux terminal?

September 20, 2012
random password from command line
Tips

Your own command line password generator!

February 17, 2012
Next Post
how to install software in linux from .zip ztar.gz .tar.bz2

Packing and Unpacking Files In Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Terms and Conditions
  • Contact Us
  • About Us

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

No Result
View All Result
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In