Export (0) Print
Expand All

Telnet commands

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

 

Telnet commands

The Telnet commands allow you to communicate with a remote computer that is using the Telnet protocol. You can run Telnet without parameters in order to enter the Telnet context, indicated by the Telnet prompt (Microsoft Telnet>). From the Telnet prompt, use the Telnet commands to manage a computer running Telnet Client.

The Telnet Client command prompt accepts the following commands:

 

Command Description

open

Use open hostname to establish a Telnet connection to a host.

close

Use the close command to close an existing Telnet connection.

display

Use the display command to view the current settings for Telnet Client.

send

Use the send command to send commands to the Telnet server. The following commands are supported:

ao

Abort output command.

ayt

"Are you there?" command.

esc

Sends the current escape character.

ip

Interrupt process command.

synch

Performs the Telnet synch operation.

brk

Sends a break signal.

Anything other than one of the commands listed above will be sent as a string to the Telnet server. For example, send abcd will send the string abcd to the Telnet server, which will echo the string in the Telnet session window.

quit

Use the quit command to close Telnet Client.

set

Use the set command with one of the following arguments to configure Telnet Client for the current session.

bsasdel

Backspace will be sent as delete.

codeset option

Available only when the language is set to Japanese. Set the current code set to option, which can be one of the following:

  • Shift JIS

  • Japanese EUC

  • JIS Kanji

  • JIS Kanji (78)

  • DEC Kanji

  • NEC Kanji

The same code set should be set on the remote computer. By default, Telnet Client uses a raster font. Before accessing a remote computer using one of these code sets, you must configure Telnet Client to use a TrueType font to ensure that characters will display properly.

crlf

New-line mode; causes the RETURN key to send 0x0D, 0x0A.

delasbs

Delete will be sent as backspace.

escape character

Switches from Telnet session mode to the Telnet command mode. While in Telnet command mode, press ENTER to return to Telnet session mode.

localecho

Turns on localecho.

logfile name

Specifies the name of the file to which the Telnet log is written for this session. If you do not specify the path of the file, it is created in your current directory. Specifying a log file also turns on logging.

logging

Turns on logging for this session.

mode {console | stream}

The mode of operation.

ntlm

Turns on NTLM authentication.

term {ansi | vt100 | vt52 | vtnt}

The type of terminal you want Telnet Client to emulate.

?

Displays Help information for set.

unset

Use unset to turn off an option previously set using the set command.

status

Use the status command to determine whether the computer running Telnet Client is connected.

?/help

Displays Help information.

For more information about Telnet Server commands, see Telnet Command-line Reference for Telnet Server.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft