8.33 CNSLPORT (Display or set console port)

8.33.1 Function

The CNSLPORT command displays or sets the port number (in decimal), on which the telnet server will
listen. The parameter of the command may also have the form host:port, where the telnet console server
will bind to the specified address.

8.33.2 Syntax

Descriptive

[port ]

Diagram

Êʬ¬¬ C ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ





port ¬¬¬¬¬¬«




¬¬¬ host ¬¬¬

8.33.3 Parameter

host

The IP address of the host to which the telnet server will bind to. If an IP address is
given then it must be a valid IP address for the host system.

port

The port number (decimal) on which the telnet server will listen. The port number
must not be in use by any other server. The port number must be in the range of 0
to 65535. Ports below 1024 cannot be used unless Hercules is running as root or is
otherwise authorized to use low ports.

8.33.4 Examples

Example 1:

Display the current telnet client port.

HHC00013I Herc command: 'cnslport'

HHC17001I Console server listening for host 192.168.1.10 on port 3270

Figure 67: CNSLPORT command (display current telnet client port)

Example 2:

Set the port number on which the telnet server will listen to 3270.

HHC00013I Herc command: 'cnslport 3270'

Figure 68: CNSLPORT command (set telnet client port)

Example 3:

Specify 192.168.1.10 as the IP address of the host to which the telnet server will bind to and set the port
number on which the telnet server will listen to 3270.

HHC00013I Herc command: 'cnslport 192.168.1.10:3270'

Figure 69: CNSLPORT command (set telnet client port bound to specific address)

Previous Page Next Page