Console access to network devices using iPhone / iPad
Being testers of network equipment and lovers of Apple equipment, we could not remain indifferent to the appearance of the console cable for iPhone / iPad / iPod Touch devices. Here is the link for those who missed the news .
Introduction
In short, what kind of cable is it and what is it for. This cable allows you to use Apple devices to gain access to the console of various network devices, such as routers, switches, multiplexers and modems. It is worth mentioning that this is not about “home” devices, but about professional network equipment that is used in telecom operators, corporate networks, data centers. Manufacturers of such devices are both international vendors (Juniper, Cisco, Zyxel), and domestic (Natex).
Why do I need access to the device through the console? The main thing is the initial setup of the device (setting of IP parameters, logins and passwords) and restoration of access to the device in case of any accident (lost / forgotten password, the device is not accessible by IP, software recovery). ')
The review will begin with a description of the process of buying this cable. You can buy the cable either through the manufacturer’s website , the Redpark company, or through the website of the cable application developer, Get-Console . Cable cost $ 59. We ordered through Redpark due to lower shipping costs. Unfortunately, Redpark does not deliver to Russia, so I had to use the services of shipito.com . Total shipping cost is $ 47. For comparison, shipping via Get Console costs $ 72. Total got $ 106, delivery took 2 weeks.
The package is as follows:
Brief instruction:
Let's move closer to the point, more precisely to testing the cable itself. On the one hand, the cable is terminated with a standard RJ-45 connector, on the other hand, Apple's 30-pin dock connector. Cable length 182 cm.
Inside the case with a dock-connector, there is a board with a microcontroller ( STM32F101C8 ) and an RS-232 driver ( MAX3243ECPWR ):
To work with the cable, you must install the terminal program Get Console. The program is available through the AppStore for $ 9.99. The program has a large number of settings and functions. From the main it is worth noting:
connectivity through the console, Telnet and SSH
support speeds from 9600 to 57600 kbps
logging console output to a file
ability to set frequently used commands and passwords
Note that in the context of testing, the capabilities of the Get Console program for establishing a connection using the Telnet and SSH protocols were deliberately not considered.
Get Console Features Overview
The appearance of the program is simple and concise. Due to the size of the screen, the appearance of the program is slightly different in iPad and iPhone / iPod.
Consider the look of the interface on the iPad. In the upper part of the left-to-right icons are placed:
Console Connection Status
Program settings
Session Management Menu
Hide / Show Keyboard
Hide / Show Special Keys Panel
List of frequently used commands
Sending CTRL + SHIFT + 6
File manager
Password List
File storage with console output logs
On the right is the clipboard manager panel. Below the panel of special keys. Below we consider the functions in more detail.
Console Connection Status The connection status menu displays information about the time elapsed since the beginning of the session, the connection speed, the number of bytes transmitted and received, the PIN code for sharing the session.
Program settings The following sections are available in the program settings:
console connection options
terminal parameters
keyboard settings
session sharing options
program information
Console Connection Parameters The available speeds are 1200, 2400, 4800, 9600, 19200, 38400 and 57600 baud. The speeds above are not supported by the current implementation of the software / hardware platform. According to the application developer, at a speed of 115200 baud a large number of errors are fixed, which results in a strong distortion of the transmitted and received information. The remaining parameters are standard for any terminal program.
Terminal settings The maximum number of lines that a program can memorize when displaying information is 2000. You can select several color schemes and change the font size. In the same section lists of frequently used commands and passwords are configured. An extremely convenient feature, especially when using the iPhone / iPod program, where typing on the on-screen keyboard is not very convenient.
Session sharing options This section allows you to configure session sharing options. There are two options for sharing using special servers located on the Internet and supported by the developer of the Get Console program or using your own server. The first option is free and is available to all users who purchased the application. To deploy your own server software purchase is required. The price varies depending on the number of the number of built-in licenses.
How does sharing work? First, for this feature to work, the device must have access to the Internet. In the program settings you need to specify through which server this function will work (general or own). Then, after establishing a session with the device via the console, Telnet or SSH, the “Share session” button becomes available in the session management menu. When you click a button, the program establishes an HTTP or HTTPS connection to the server (the connection method is selected in the parameters) and provides a unique PIN for access to this session. The server through which the program has established a connection has a web interface. Using a browser, the shared user logs on to the server, enters the session PIN code issued by the program, and in the browser window gains access to the device console. For general access to the session, registration on the server is not required; all you need is the session PIN. With shared access, users can execute commands in the console, information provided by the device is duplicated both in the browser and in the Get Console program, i.e. users see the same picture.
Dialog box with PIN code after establishing a connection with the server:
View of the “Program Settings” menu on iPad:
Session Management Menu The menu allows you to set up a new session via the console or using Telnet / SSH protocols, end the current session, and provide general access to the current session.
Hide / Show Keyboard Ability to hide / show virtual keyboard. A useful feature when viewing long listings displayed by the device.
Hide / Show Virtual Key Bar The panel contains the keys TAB, CTRL, BRAKE,?, ↑, ↓, necessary for convenient work with the command system of many network devices, for example:
TAB - autocompletion of the command
CTRL + ... - perform various operations caused by a key combination with CTRL, for example, switching between different control modes, switching to the beginning or end of a line
? - display a list of available commands
↑, ↓ - transition between the last executed commands
List of frequently used commands The name speaks for itself. The list includes the most frequently used commands, for example, for Cisco devices, these can be, sh run, sh ver, conf t, sh ip route.
Sending CTRL + SHIFT + 6 This feature is specifically designed to work with Cisco equipment. This key combination allows you to interrupt the current operation being performed.
File manager The file manager is designed to load into the iPad / iPhone / iPod ready configuration scripts, which can then be used during device setup. To upload files, you need to log in to the Get Console website, upload the necessary files to the server and then, using the file manager, download the files to the device.
Password Manager Function similar to the list of frequently used commands. It is a pre-configured list of words. Text is stored in clear text.
File storage with console output logs If the logging option is enabled, then logs of completed sessions are saved in this section. Files can be uploaded to the Get Console site for further analysis. For local viewing, you can use the viewer built into the Get Console program, or any other text editor.
Clipboard manager The manager allows you to edit the text and paste into the console text from the clipboard or editor. With the help of the editor you can also view the logs of previous sessions. The manager can be used to quickly adjust the configuration file and then apply it.
View of the program interface on the iPhone:
Testing console access to network devices
The following equipment was used to test the console access in our laboratory :
Manufacturer and Model
Console port type
Cisco 1841 and 2811 routers
Rj-45
Cisco 2950 and 2960 Switches
Rj-45
Zyxel P-791Rv2 modem
Rj-45
To check the iPhone / iPad, the cable was connected to the console port of the device and after entering the control system (command line, menu) various commands were executed. Connecting to Cisco equipment did not cause any problems, the command line is available immediately after connecting. This is not surprising, since cable designed specifically for this equipment. To connect to the P-791Rv2 modem, additional adapters were required, since the console port on the ZyXEL Device has a pin assignment that is different from Cisco. To eliminate this problem, an RJ-45 <-> RJ-45 adapter was manufactured. Such an adapter can be made for any equipment, for example, for devices with a console port in the form of a DB-9 connector, parts for such adapters can be purchased at any radio market or in an electronic component store. Below are photos of the connection using the iPad:
Cisco 1841 router, Cisco 2950 switch
Zyxel P-791Rv2 modem
During testing, the connection parameters available in the program were checked: speed, number of data bits, parity, number of stop bits. Also, as an experiment, it was tested to the extent possible to increase the length of the console cable. With the help of the cable bay, the length was increased to 30 meters. With such a length, console access successfully worked at all speeds. The rest of the tests were also successful.
Session Sharing Feature Summary
The video shows the features of the sharing feature. On the first video of the opportunity for unregistered users, the second for registered.
findings
Hardly an iPad / iPhone / iPod Touch with a console cable can replace a network engineer with a full-fledged laptop, but in certain situations having a cable with you can make life much easier.
Applications for console cable can be:
Initial configuration of the device, until the IP parameters are set on the device.
Restoration of the device after an accident, for example, a software malfunction or in case of loss of IP communication with the device.
Operational consultation with other engineers. Having received console access to the equipment, the engineer provides real-time general access to the session to more experienced engineers.
Remote configuration of equipment, access to which by IP from outside is prohibited by security policy.