Specifications
Creating and Using Modem Chat Scripts
How To Configure Chat Scripts
DC-165
Cisco IOS Dial Technologies Configuration Guide
This part of the script specifies that, after the connection is established, you want ssword to be displayed.
If it is not displayed, you must press Return again after the timeout passes. (For more information about
expressing characters in chat scripts, see the “Regular Expressions” appendix in the Cisco IOS Terminal
Services Configuration Guide.)
Chat String Special-Case Script Modifiers
Special-case script modifiers are also supported; refer to Table 16 for examples.
For example, if a modem reports BUSY when the number dialed is busy, you can indicate that you want
the attempt stopped at this point by including ABORT BUSY in your chat script.
Note If you use the expect-send pair ABORT SINK instead of ABORT ERROR, the system terminates
abnormally when it encounters SINK instead of ERROR.
Configuring the Line to Activate Chat Scripts
Chat scripts can be activated by any of five events, each corresponding to a different version of the script
line configuration command. To start a chat script manually at any point, see the following section,
“Manually Testing a Chat Script on an Asynchronous Line.”
To define a chat script to start automatically when a specific event occurs, use one of the following
commands in line configuration mode:
Table 16 Special-Case Script Modifiers
Special Case Function
ABORT string Designates a string whose presence in the input indicates that the
chat script has failed. (You can have as many active abort entries
as you like.)
TIMEOUT time Sets the time to wait for input, in seconds. The default is
5 seconds, and a timeout of 60 seconds is recommended for V.90
modems.
Command Purpose
Router(config-line)# script activation
regexp
1
1. The regexp argument is a regular expression that is matched to a script name that has already been defined using the chat-script command.
Starts a chat script on a line when the line is activated (every time
a command EXEC is started on the line).
Router(config-line)# script connection
regexp
Starts a chat script on a line when a network connection is made
to the line.
Router(config-line)# script dialer
regexp
Specifies a modem script for DDR on a line.
Router(config-line)# script reset
regexp
2
2. Do not use the script reset or script startup commands to configure a modem; instead use the modem autoconfigure command.
Starts a chat script on a line whenever the line is reset.
Router(config-line)# script startup
regexp
2
Starts a chat script on a line whenever the system is started up.