Accessing Connected Devices and Managing Power > Serial Port Connections > TCP Port Numbers for Serial Ports

TCP Port Numbers for Serial Ports
The TCP port numbers by default are 7001 through 7008. TCP port number 3000 refers to a pool of all serial ports. The OnSite administrator may change the default port numbers, so if you use the defaults and they fail, check with the administrator to find which port numbers to use.
To Use Telnet to Connect to a Device Through a Serial Port
For this procedure, you need the hostname of the OnSite or its IP address and the TCP port number for the serial port to which the device is connected. See TCP Port Numbers for Serial Ports if needed.
1.
To use telnet on the command line in a shell, enter the following command:
telnet hostname | IP_address TCP_port_number
2.
To use telnet in a terminal emulation program that provides a telnet client, enter the IP address in the destination field and the TCP port number in the port field.
To Use SSH to Connect to a Device Through a Serial Port
For this procedure, you need the hostname of the OnSite or its IP address and the TCP port number for the serial port. See TCP Port Numbers for Serial Ports if needed.
1.
To use ssh in a shell, enter the following command:
ssh -l username : TCP_port_number OnSite_IP_address
For example, to login into the device connected to port 1 on an OnSite whose IP address is 192.168.44.203, you would enter the command shown in the following screen example.
2.
To use ssh in an SSH client application, enter the IP address followed by a colon (:) followed by the port number in the destination field.
The ssh application supplies the default SSH port number in the Port field as shown in the following screen example.
The ssh session is started on the connected device’s console port and the login prompt or dialog box appears, as shown in the following screen example.
3.
To Log Into a Device’s Console Through a Serial Port
See Serial Port Connections for background information, if needed.Selecting a port number or alias and
1.
a.
i.
If needed, see To Log Into the Web Manager.
ii.
iii.
If needed, see Connect to Server>Connect to Serial Ports.
b.
To connect to the serial port through telnet, ssh, or a raw device connection, do the following steps.
i.
ii.
See To Use Telnet to Connect to a Device Through a Serial Port or To Use SSH to Connect to a Device Through a Serial Port, if needed.
A Java applet appears connected to the console of the device that is connected to the serial port.
2.
To Manage Power While Connected to a Serial Port
1.
See To Log Into a Device’s Console Through a Serial Port, if needed.
The Java applet appears.
2.
Ctrl+p is the default IPDU power management hot key. Ctrl+Shift+i is the default IPMI power management hot key.
If you do not have any power management permissions, the following message appears.
 
 
 
 
If you do not have permission to manage power for the server connected to this serial port, the following message appears.
 
 
 
 
If you have permission to perform IPDU power management on this serial port, the IPDU power management menu displays as shown in the following screen example. The first line shows the number of the first outlet you have permission to manage through the serial port.
 
 
 
 
 
 
If you have permission to perform IPMI power management while connected to this serial port, the following menu appears.
 
 
 
 
 
3.
a.
b.
c.
The following message appears.
To Use ts_menu to Connect to a Serial Port
1.
a.
b.
i.
See To Configure Serial Ports [Wizard] or To Configure a Serial Port Connection Protocol for a Console Connection [Expert] for how the connection protocol is specified for a serial port, if needed.
ii.
If you are using telnet, configure an escape character to use for ending the telnet session later.
Because the default ts_menu escape character for telnet sessions is ^] (caret and right bracket), you need to configure a different escape character for telnet at this time. Otherwise, using ^] to exit the serial port console session created through ts_menu also closes the telnet session on the OnSite.
If using telnet on the command line, you can use the -e option in the format shown in the following screen example.
# telnet -e ^X OnSite_IP_address
The following example shows the telnet command used to set Ctrl+? as the escape character and to connect to an OnSite whose IP address is 192.168.160.10.
# telnet -e ^? 192.168.160.10
c.
See To Connect to the OnSite Console as admin [Expert], if needed.
2.
Enter the ts_menu command at the prompt.
The ts_menu displays a numbered list of all the serial ports you are authorized to access showing their device names or any aliases configured for the ports, as in the following example.
 
 
3.
The following screen example shows the number 1 entered to access port ID ttyS1.
ts_menu makes a console connection to the specified port and displays a prompt. The following example shows the prompt when the serial port 1 is configured for power management.
 

Accessing Connected Devices and Managing Power > Serial Port Connections > TCP Port Numbers for Serial Ports