Introducing YippieMove '09. Easy email transfers. Now open for all destinations.
Dec
13.

(Warning. This is a quite complex article that requires fairly sophisticated sysadmin/unix-skills. If you don’t have this, this article will probably make you really confused.)

Often when working for small companies, the IT-budget is very limited. Therefore you can probably forget about those awesome gadgets you drawl over in the sysadmin-magazines. Well, I’ve been working like this for years. Running Linux or a similar open source operating system on the servers is a good start in cutting costs, but there’s more you can do.

One of the companies I work for is located on the other side of the world (literally), which makes it hard to access the servers physically. SSH works fine most of the time, but what happens when you have a network error? Maybe the server fails to boot up properly after a power-failure, or maybe you messed up the network-settings and locked yourself out.

If you’re on an unlimited budget this is not a big problem. Then you just order one of these fancy $7,000 IP-KVM switches and this problem is long gone. But what do you do if you don’t have that money to spend on such equipment?

Here’s two different solutions that will work (almost) as good as an IP-KVM, but it takes a bit more work for you as a sysadmin. Remember, all these solution are based on the assumption that you only have Unix/Linux servers in your farm.

Option 1 – If you can afford spending $250-$350 per server.

There is a really nifty product available that is called PC Weasel. This product looks like a graphic card (PCI or ISA), but with a keyboard connector on the outside, and instead of a VGA-connector you’ll find an RS-232 (serial) port. So what this product does it that it emulates a graphic card, but spits out all the graphics to an RS-232.

What this enables you to do is to hook up a null-modem to either a computer or an RS-232-server (such as the ones available here (note that some of the RS-232-servers have SSH-support, making it almost identical to a real IP-KVM-system)). With this all hooked up, you can simply just connect to the serial-port on a different computer and you would see the same as you would see on a regular monitor. You can even access the BIOS – which is the biggest advantage with this solution.

Option 1 or 2 with a RS232-switch.

Option 2 – If you’re really on a tight budget.

This is what I ended up doing. I didn’t feel like paying the $350 or so per server, so I went for the budget solution – plain null-modems.

This solution will take you some more time to get running (if you’re not a hardcore unix/linux expert), but will cost you close to nothing. Once again, this will only work in a unix/linux environment.

The trick here is that we will be using the Linux-kernel’s (or BSD-kernel) serial-console feature to output to a null-modem. It’s not that complicated, but I’m not going to go into details in this post. You simply compile the serial-console module into your kernel, add some settings to your bootloader and your inittab and you’re set.

You can either do this between two servers (and take a chance that they won’t break at the same time), or you can dedicate an old box to be your RS-232-server. You can then just SSH into the box that is receiving the signal and use minicom to control the other box. Note that the big disadvantage with this solution is that you cannot control the servers on BIOS-level. However, it costs you close to nothing, and it will give you more control over the server than with regular SSH.

Option 1 or 2 without a RS-232 switch.

If you have more than two servers, you can build a chain-like system where server one is connected to server two, server two to server three etc., until you close the circle.

For further research I’d recommend the following sources:

Linux Serial Consoles for Servers and Clusters
Remote Serial Console HOWTO

Happy Hacking!

Author: Tags: ,

3 Comments

  1. L.A. Price says:

    Reasonably careful selection of servers will get you built-in BIOS level control via the serial console. Dell Poweredge series offer this by default, as do most of the other server manufacturers; outfits that stuff PC m/b into rackmount cases don’t.

    Ask yourself if remote BIOS level control is worth it for your situation. If the server is going to be located hundreds of miles away, then spend the bucks to make it happen, but if it’s just down the hall?

    The Cyclades family of terminal servers is fairly competent and economical (n < $100 per port) and will cover the basics.

    If you really want to go ghetto you can get an old Portmaster and stick it on your internal network (PM’s don’t support ssh so you’re stuck with telnet) depending on what you can get your hands you might be able to make that work for less than $10 bucks per port.

  2. Good point. It’s true that if you’re careful when selecting servers, you can probably find ones with serial console.

    In my case however, the servers did not have this support.

    Also, good point about the Portmaster. The seem to be very cheap and quite decent. But sure, only telnet is sure a big drawback that lowers your security.

  3. John Goodwin says:

    I am writing a review on an IP KVM which retails for $549, and I’ve seen it street price around $380 or so.
    freeView IP 100 KVM
    This article should be completed over the next few days.


© 2006-2009 WireLoad, LLC.
Logo photo by William Picard. Theme based on BlueMod © 2005 - 2009 FrederikM.de, based on blueblog_DE by Oliver Wunder.
Sitemap