Fortinet black logo

CLI reference

execute telnettest

execute telnettest

Use this command to test Telnet connectivity to a host.

Syntax

execute telnettest {<fqdn_str> | <host_ipv4>}[:<port_int>]

Variable

Description

Default

{<fqdn_str> | <host_ipv4>}

IP address or FQDN of the Telnet server.

[:<port_int>]

If the Telnet server listens on a port number other than port 23, enter a colon (:) followed by the port number.

:23

Example

This example tests the connection to an Telnet server at 192.168.1.10 on port 2323.

execute telnettest 192.168.1.10:2323

The CLI displays the following:

(using 192.168.1.20 to connect)

Remote Output(hex):

FF FD 18 FF FD 20 FF FD

23 FF FD 27

Connection Status:

Connecting to remote host succeeded.

execute telnettest

Use this command to test Telnet connectivity to a host.

Syntax

execute telnettest {<fqdn_str> | <host_ipv4>}[:<port_int>]

Variable

Description

Default

{<fqdn_str> | <host_ipv4>}

IP address or FQDN of the Telnet server.

[:<port_int>]

If the Telnet server listens on a port number other than port 23, enter a colon (:) followed by the port number.

:23

Example

This example tests the connection to an Telnet server at 192.168.1.10 on port 2323.

execute telnettest 192.168.1.10:2323

The CLI displays the following:

(using 192.168.1.20 to connect)

Remote Output(hex):

FF FD 18 FF FD 20 FF FD

23 FF FD 27

Connection Status:

Connecting to remote host succeeded.