Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

Viewing serial console over network  via IPMI 2.0

News IPMI Recommended Links Administration of Remote Servers Dell DRAC iLO 3 -- HP engineering fiasco BPipmi
ipmitool ipmiutil Lights out management Viewing serial console over network via IPMI 2.0   Humor Etc

Dell PowerEdge boxes have a lot of extra instrumentation that is available  via their  IPMI/BMC chips/controllers on those servers.

How to do SOL (Serial Over LAN aka Console Redirection) on Dell Servers

Created: 25 Jan 2007 • Updated: 07 Jul 2009 | 1 comment

eorme Symantec Employee

Attention Dell Poweredge 1955 blade administrators! (or any other 9th generation server with a BMC). Learn out how to perform console redirection using a BMC controller with the IPMI 2.0 protocol. This life lesson will allow you to remotely view your text-based console from anywhere allowing you to install an OS, run utilities, or perform any other task (as long as it doesn't require a GUI), not to mention eliminating trips to the datacenter.

Many people love the features of DRACs (Dell Remote Access Controllers). Probably the most popular is the ability to do an out of band remote console from any location. Many Dell servers do not have a DRAC console redirection however, and have only IPMI (always the case for Dell PowerEdge 1955 Blades). Luckily, in Dell's new 9th generation servers, IPMI 2.0 is supported, which also support the ability to route a text-based console anywhere.

Unfortunately, there aren't many simple utilities available for Windows users to do SOL on a box without an OS.

Ipmiutil -- which Deployment Solution for Dell Server's uses -- has utilities to control a BMC and send it commands, but not to do console redirection. Ipmitool has been able to do this for some time, but unfortunately this is only for Unix-like operating systems. The answer? Cygwin. Using Cygwin, we can compile ipmitool to the Windows platform and use its SOL capabilities. I'll show you how.

Note: Cygwin is a Linux-like environment for Windows. It doesn't allow you to run linux programs, but it gives you the tools (gcc, make, etc) and allows you to build Linux programs from source as if they were Windows executables. The catch is that the executables will depend on a few DLLs. If you don't want to compile from source, I have included the binaries and necessary DLLs in this zip file.

If you want to compile (perhaps to get the latest version), follow these instructions. Otherwise, skip forward to Step 4.

Step 1: Install Cygwin

Go to http://www.cygwin.com and download their setup program.
http://cygwin.com/setup.exe

This setup program allows you to select which packages you need, downloads them, and then installs them automatically. Select the development packages (gcc, make etc), and install them. This will probably take a long time if you have a slow Internet connection. When you are done, a Cygwin icon should be on your desktop.

Note: If you are uncomfortable installing software on your system just to compile this program, you may install it in an SVS layer. This will allow you to remove this program leaving no traces of its existence. SVS is free for personal use, go to www.download.com to get it.

Step 2: Download and Extract Source

Go to ipmitool's website (http://ipmitool.sourceforge.net/) and download ipmitool-1.8.8.tar.gz (the source).

Place this file in your C:\ directory and open Cygwin. The reason you should put it here and not on the desktop, is I have noticed the build process doesn't work well when there are spaces anywhere in the path to the files. If you put it on your desktop, it will end up in C:\Documents and Settings\....

Navigate to the C:\ directory:

cd /cygdrive/c

and then extract the source

tar -xzf ipmitool-1.8.8.tar.gz

This will uncompress the source into your C:\ipmitool-1.8.8 folder. Now navigate to that directory.

cd ipmitool-1.8.8.tar.gz

Now we need to run "configure", this looks at your environment and adjusts the build parameters accordingly.

./configure

You'll see a lot of text go by. As long as you don't see any errors you should be fine.

Note: If you do see errors, chances are you are missing packages from your cygwin installation and need to add more.

Now we need to compile. So run "make".

make

Again, if everything is installed correctly, you should see a lot of text go by, but no errors. Once it compilation has completed, go into the "src" directory and you should find a file called "ipmitool.exe". If not, something went wrong with the build process. Scroll up in your text window and try to find any errors that you may have missed.

You can now exit cygwin.

Step 3: Gather the Executable and DLLs

Cygwin executables need a few DLLs in order to run correctly. Since I am assuming you are going to be using ipmitool just for its SOL capabilities, we won't be installing it, but merely using the ipmitool.exe executable. Start by creating a folder on your desktop called "ipmitool"

Navigate to "C:\ipmitool-1.8.8\src" and copy "ipmitool.exe" into that folder on your desktop. Now go into "C:\cygwin\bin" and copy out "cygwin1.dll" and "cygcrypto-0.9.8.dll" to your ipmitool directory on your desktop. You now have all the files you need to do SOL.

Note: If you'd like you can now uninstall cygwin from your system or delete the SVS layer you installed it into.

Step 4: Setting up SOL (Serial Over LAN) on the Client (PowerEdge Server)

Since you now have the SOL utility, we just need to enable SOL on the client (the server you intend to work with). I will be using a Dell PowerEdge 1955 Blade server in this example, but your settings and screen should be similar. Remember to make sure that your Base management controller has IPMI 2.0 functionality (most 9th generation servers).

First, make sure that "IPMI Over LAN" is enabled. To do this boot the machine, and then press Ctrl+E to go into the Remote Access Configuration Utility.

Click to view.

Once that has been enabled, we need to enable console redirection. To do that boot the machine and go into the BIOS (press F2)

Go to Serial Communication.

Click to view.

And then modify the field labeled "Serial Communication" to be "On with Console Redirection via COM2". This will pipe all the console traffic to COM2, which is connected to the BMC. The baud rate may be set to whatever you'd like. I use "115200" myself). Also, make sure that "Remote Terminal Type" is set to "VT100/VT220", and that "Redirection After Boot" is "Enabled".

Click to view.

Note: Instead of using "VT100/VT220" as your terminal type, you may select "ANSI", the output will not be as pretty though, since ANSI doesn't support some of the characters represented in the console.

Once your settings are configured press "Enter", then "Escape". Save the changes to the BIOS and Reboot.

Step 4: Using ipmitool.exe to Connect to the Base Management Controller

Now comes the fun part, actually connection to the Base Management Controller. On the server open a command prompt and navigate to the directory that contains those three files (ipmitool.exe, cygwin1.dll and cygcrypto-0.9.8.dll). Type in the following:

ipmitool.exe -I lanplus -U root -P calvin -H 192.168.2.62 sol activate

Obviously you need to have "root" be your username, "calvin" be your password, and "192.168.2.62" be the address that your Base Management Controller is operating on.

What this will do is open up a console, and you can now see and type just as if you were sitting at the machine. To exit the console type "~."

Note: Sometimes you'll find that when you exit the console, the BMC will still believe that the session is connected, and so when you try to connect again, it will say console redirection is already open. To fix this, type "sol deactivate" instead of "sol activate". This will disconnect the previously connected session and you'll be free to issue your command again (sol activate), and you should be able to connect without any problem.

Note for Linux Users:

As you have probably guessed, you can do a normal compilation in your native Linux environment of the ipmitool and the syntax is the same for opening console redirection. If Linux is your thing, more power to you.

Additional Hints:

Use with other Utilites:

Deployment Solution for Dell Servers comes with ipmiutil, a set of native utilities that can be used to control the power state of your machine. These utilities can be used concurrently with ipmitool. In your DS console, you may right click your machine and go to Power Control > Dell - Reset. This will reset your machine, and you'll be able to watch it boot through your Serial Over LAN redirected console.

Adding Console Redirection to a Job:

It is possible have a server side script launch a console redirection session directly from DS. This has a few hoops to jump over however, the first being that server side scripts are run from a service that doesn't have permission to interact with the desktop. To fix this, you'll need to stop the "Altiris eXpress Server" service, go into it's properties, and select "Log on as: Local System Account". This will allow you to check the box "Allow service to interact with desktop". Start the service again, and you'll now be able to compose your server side script. Here is a suggestion (assuming you place the ipmitool directory within Dell\atools).

%ALTIRIS_SHARE%\Dell\atools\ipmitool\ipmitool.exe -I lanplus -U root -P calvin -H 192.168.2.62

Simply dragging this job the given machine will open the console. You may also optionally take advantage of the Dell power control table to get the IP address instead of hard coding it in the script. See my other article about embedding IPMI commands in the script for tips on how to do this.

License: BSD
By clicking the download link below, you agree to the terms and conditions in the BSD License
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.
frog2

How to do SOL (Serial Over LAN aka Console Redirection) on Dell Servers - Comment:26 Nov 2007 : Link

If the version of ipmiutil that ships with your IPMI 2.0 server does not include a Windows SOL, then you can get SOL natively in Windows by upgrading to ipmiutil-2.0.x.
See http://ipmiutil.sourceforge.net/FILES/ipmiutil-2.0....

 

Recommended Links

Top Visited

Bulletin Latest Past week Past month
Google Search



[PDF] IPMI Configuration - Dell

 

How to do SOL (Serial Over LAN aka Console Redirection) on Dell Servers Symantec Connect Community



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March 12, 2019