Introduction to Linux operating system server management through comport

Source: Internet
Author: User
This section describes how to use the comport to manage Linux operating system servers-Linux Enterprise applications-Linux server applications. For more information, see the following section. This article briefly introduces how to use common COM ports to expand the Linux server console, which is practical and simple and not subject to server network conditions, you can easily manage Linux servers in a production environment.

Speaking of Linux Server Management, there are many different methods: keyboard + display, network login, WEB-based tools, graphics tools under X system, etc, these methods can be used on common servers or your PC servers without any problems. However, to manage a 24x7 server, make sure that the server can be managed directly and quickly under any circumstances, it's not that easy.

Compare the methods mentioned above:

X system graphics tools. This is of course a friendly interface, and the X system can also be extended to a remote network, but the network is not so reliable after all. If the server's network is paralyzed, what should you do if you need to solve the network problem remotely?

WEB-based tools. This method is also very user-friendly, such as webadmin. However, due to security issues, these tools will not be installed on really important servers. In addition, this method is also limited by the Network;

Log on through the network. This is a common method. Generally, the server opens the SSH service to trusted remote sites so that maintenance personnel can log on remotely for routine maintenance. This is safe, but unfortunately it is still based on the network, and of course it is also limited by the Network;

Keyboard + display. This is the safest way. I suggest using this safest way, but unfortunately this is also flawed, that is, many servers are not equipped with monitors and keyboards, it is only used to install the system. Once put into production, the display and Keyboard will no longer be used.

In fact, for UNIX/Linux servers, you can use the comport to expand the console of the system and manage the servers as another way.

The CONSOLE is the character output device of the system output management information. These management information is generated by the kernel, such as system logs and alarm information. In Linux, the default console is the keyboard and display, while some older SUN, HP, and IBM servers use a serial port to connect Text Terminal [1] (character terminals, such as the famous DEC VT100) as the console, this is also the method to be introduced this time.

Character terminals are widely used in the mainframe era. A mainframe is usually connected to many terminals, and each terminal has no processing capability. It simply uses a keyboard to input and output results from the screen, the processing process is completed by the mainframe. The character terminal screen is mostly black/white, and does not have the graphic display function. The Text Terminal introduced here is the same as that of the mainframe Terminal, but there have been no new Terminal devices in the market. Now it is simulating a Terminal through an application, called a virtual Terminal, for example, a WINDOWS Super Terminal is a commonly used virtual terminal program. Opening a Super Terminal on a management workstation (using the correct speed) is equivalent to a terminal.

This CONSOLE function is widely used through serial ports. For example, CISCO routers manage devices in this way. A small CONSOLE line is equivalent to a PC display and a keyboard, this undoubtedly saves the router a lot of unnecessary accessories, and in fact some CISCO devices are a PC, such as the CISCO PIX515 firewall, as long as you plug in a PCI graphics card to the PCI slot, connect to the display, when you press the switch of the PIX, you can see the startup information of a BX motherboard, Pentium II generation 350MHZ processor, and M memory computer. There is no difference between it and a general computer. After the PIX completes the self-check, the CONSOLE is switched to the CONSOLE port, and the CONSOLE port of the RJ45 interface is actually a comport, but the interface form is not a 9-pin D-port.

Now we can clarify what we need to do: Use the virtual terminal program of the management workstation to simulate a character terminal device and redirect the Linux CONSOLE to the virtual terminal through the comport form of the comport, to control the Linux server from a virtual terminal. The procedure is as follows:

   1. Create a crossover line

A "null modem cable" and "null modem cable" are needed to connect the two computers with the comport. the literal translation is "Cross MODEM line", which is similar to the cross line of the network CABLE, this is used to "back-to-back" connect two DTE devices, both ends are 9-pin D-connector, respectively inserted into the management workstation and server COM port, in order to facilitate the identification is recommended to connect the first comport. This line can be made by yourself, or you can buy it in the computer city, the most convenient is that there is a CISCO standard CONSOLE line plus RJ45 to 9-pin D-connector adapter (part number 74-0495-01), can be used directly.

Txd and Rxd, CTS and RTS, GND And GND, DTR and DSR & DCD must be crossly used as a pin signal. DSR & DCD indicates that the two pins are connected together as one pin signal. For more information, see Serial-HOWTO [3].

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.