execute : telnettest
 
telnettest
Use this command to open a Telnet connection to a server using an IPv4 or IPv6 address or fully qualified domain name (FQDN). This command can be useful for troubleshooting (for example, when the server does not support the HTTP versions, methods, headers, and so on, that the client uses).
 
Telnet connections are not secure. Eavesdroppers could easily obtain your administrator password. Only use Telnet over a trusted, physically secured network, such as a direct connection between your computer and the appliance, and from the appliance to the server.
To use this command, your administrator account’s access control profile must have at least r permission to the sysgrp area. For more information, see “Permissions”.
Syntax
execute telnettest {<host_ipv4> | <host_ipv6> | <host_fqdn>}
Variable
Description
Default
telnettest {<host_ipv4> | <host_ipv6> | <host_fqdn>}
Type the IP address or fully qualified domain name (FQDN) of the host.
No default.
Example
This example Telnets to a host with the IPv4 address 172.16.1.10 on port 80, the IANA standard port for HTTP.
FortiWeb# exec telnettest 172.16.1.10:80
Connected
 
GET /
 
Entering interactive mode. Type CTRL-D to exit.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>Get to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x Server at irene.local Port 80</address>
</body></html>
Connection closed.
 
Connection status to 172.16.1.10 port 80:
Connecting to remote host succeeded.
Related topics
execute telnet
execute ping
execute ping6