Example 2:

Set the system control program as the target for commands.

HHC00013I Herc command: 'cmdtgt scp'

HHC02288I Commands are sent to 'scp'

Figure 65: CMDTGT command (set target to SCP)

Example 3:

Set the command target from SCP or PSCP back to Hercules (see also HERC command).

HHC00013I Herc command: 'herc cmdtgt herc'

HHC02288I Commands are sent to 'herc'

Figure 66: CMDTGT command (set target back to Hercules)

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)

Previous Page Next Page