Project Hydra: the USB Multiheaded Monster (serial console server)

Translation of the original in Catalan. Read it in: CatalàCastellano

If like many of us you're forced to maintain several Linux/Unix servers it's obvious that you'll use something like a KVM (Keyboard Video Mouse) switch, in order to be able to change console if necessary, or failing that from a single console you'll use remote management tools like Telnet or SSH.

But if you're old school like me, you'll remember there's a thing called serial terminals, in fact, a long time ago a former colleague from high school told me (Jordi Just/Noctropolis) told me he was setting up a serial console server in order to be able to administer the servers more efficiently without having to go to the server room or remotely, just by going through a single computer.

Well while reading Linux World, I found this article: Project Hydra: the USB Multiheaded Monster (local) which proposes how to set up a serial console server, but instead of using the RS232 of a lifetime, using the USB port, which apart from being faster is the only one new servers come with.

According to the article itself what it proposes is the following:

It would be really cool to have a dedicated, remotely accessible console server with a lot of serial ports connected to all of our servers. One way to do this would be to use multiport serial cards, but they are comparable in price to serial console switches and have a similar scalability problem. Instead, we figured out how to use the readily available USB bus with USB-to-serial adapters. This solution works well even in our mixed environment, and it is also scalable and inexpensive.

If what you're looking for is a more professional solution than the 'do yourself' one you can look at the reference the article includes, which is really cool. Since it lets us do resets, get into the BIOS, etc. all remotely... really very very useful. The commercial solution in question: PC Weasel 2000. According to its own website, in order to solve the issue what they've done is:

The PC Weasel provides the answer by emulating a video board and keyboard and presenting a serial port to the outside world. Plugged into an available ISA or PCI slot, it takes the characters written by your CPU into its "video" memory and pumps them out its onboard RS-232 port. Characters input by you into the RS-232 port are converted into keyboard scan codes and presented to the motherboard's keyboard connector.

Whether you're using a dumb terminal next to your computer, dialing in via a modem connected to the PC Weasel's serial port, or on the other side of the world, connecting through an (async) terminal server, your machine will think it has a local keyboard and monitor.

The PC Weasel also contains an appropriately configurable 16550 UART, which provides your OS with its normal serial console port after boot. The PC Weasel's onboard CPU detects the initialization of this port at bootup and optionally switches the serial connector over to it, taking the video emulation offline. The PC Weasel's CPU then continues to eavesdrop on the console port, and can be brought back online with a user-programmable escape sequence.