[Top] [Prev] [Next] [Bottom]

Chat Script Commands


This document describes the chat script configuration commands. For steps to configure a chat script, see Creating Chat Scripts.

Table 1 summarizes the chat script configuration commands. Enter these commands at the Chat Config> prompt. There are no monitoring commands for chat scripts.

Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.

[C] means the command is available at the Chat Config> prompt.

Chat Script Commands

Command Function
Change [C] Changes a line in the chat script.

Delete [C] Deletes a line from the chat script.

Exit [C] Returns to the DIAL Config <WAN> prompt.

List [C] Displays the contents of the chat script.

Move [C] Changes the order of lines in the chat script.

Receive [C] Creates a line in the chat script made up of characters that DIAL expects to receive as a query from the remote destination.

Transmit [C] Creates a line in the chat script made up of characters that the DIAL circuit interface sends to the destination in response to a query the DIAL circuit interface receives.

Wait [C] Inserts delays in the chat script.

Change [C]

Changes a line in the chat script. You can change the values for a transmit, receive, or wait line. Depending on the line number you select to change, the software prompts you for the appropriate information. Enter list to display line numbers for the chat script.

Syntax: change

Example: change

Line number [0]? 1
Receive string [boston]?login boston

Example: change

Line number [0]? 3
Wait in seconds [3]? 4

Delete [C]

Deletes a line from the chat script. Enter list to display line numbers for the chat script.

Syntax: delete

Example: delete

Line number [] ? 3

Exit [C]

Returns to the DIAL Config <WAN> prompt.

Syntax: exit

Example: exit

Circuit Config>

List [C]

Displays the contents of the chat script.

Syntax: list

Example: list

Configuration of Chat Script: seattle

1 receive login:
2 wait 4
3 transmit boston
4 receive password:
5 transmit abracadabra
6 receive Welcome

Move [C]

Changes the order of lines in the chat script. Enter list to see a list of line numbers in the chat script.

Syntax: move

Example: move

From line number [] ? 1
To line number [] ? 5

To move a line to the last line in the script, move the line to a number one greater than the last line in the script. For example:

Chat Config>list

Configuration of Chat Script: seattle

1 receive Welcome
2 receive login:
3 transmit boston
4 receive password:
5 transmit abracadabra

Chat Config>move
From line number [] ? 1
To line number [] ? 6


Chat Config>list

Configuration of Chat Script: seattle

1 receive login:
2 transmit boston
3 receive password:
4 transmit abracadabra
5 receive Welcome

Receive [C]

Enter a string of up to 80 characters that the DIAL circuit interface expects to receive as a query from the remote site. The software adds this string to the last line in the chat script.

If the DIAL circuit interface does not receive the expected string before the connection timeout period (if any) elapses, the DIAL circuit interface cancels the receive command. (Set the connection timeout period using the set connect-timeout command at the DIAL Config <WAN> prompt.)

Note: The router software ignores all string it receives until it receives the string you enter with the receive command. For example, if you enter a receive string of Login:, and the router receives the string, Welcome to ISP. Login:, the chat script succeeds.

You can include nonprintable characters in the transmit and receive command strings. You can use the following C language-style escape characters in chat script strings:

\n

Linefeed

\r

Carriage return

\\

Backslash

\xhh

Hexadecimal two-digit number

Syntax: receive

Example: receive

Receive string? login:

Transmit [C]

Enter a string of up to 80 characters that the DIAL circuit interface sends to the remote site. The software adds this string to the last line in the chat script.

You can include nonprintable characters in the transmit and receive command strings. You can use the following C language-style escape characters in chat script strings:

\n

Linefeed

\r

Carriage return

\\

Backslash

\xhh

Hexadecimal two-digit number

Note: You must enter a \r at the end of your transmit string or the router does not send the string.

Syntax: transmit string

Example: transmit

Transmit string? boston\r

Wait [C]

Inserts delays in the chat script. When you enter wait

The wait command does not affect receive commands.

The default is 0 (zero) seconds. The range is 1 to 65535.

Syntax: wait

Example: wait

Wait in seconds [0]? 5



[Top] [Prev] [Next] [Bottom]

Copyright © 2001, Nx Networks, Inc. All rights reserved.