Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 3 Modem Configuration Commands
3Com Corporation
3-7
script-content: Script content.
Description
Use the script-string command to configure a Modem script.
Use the undo script-string command to cancel the Modem script.
By default, the system does not have a Modem script.
3Com series routers provide the Modem script, which is mainly used for:
z Providing flexibility in controlling the Modems of different models. For example,
using different initialization strings can make the Modem of different
manufacturers or models to interoperate with the 3Com series routers better.
z Implementing the interactive login to remote systems. Interactive negotiation of
the scripts can enable the systems to enter different link states. For example, after
the asynchronous serial interfaces on the two routers set up a connection via the
Modems, the routers can negotiate the protocol to be encapsulated with the
physical link and its operating parameters.
The Modem script format in common use is as follow:
send-string1 receive-string1 send-string2 receive-string2 ......
Among the above format:
z send-string indicates a sending string.
z receive-string indicates a receiving string.
z Normally, send-string and receive-string appear in pairs, and the script must begin
with a sending string. For example, send-string1 receive-string1 …… represents
the execution flow: Send send-string1 to the Modem and expect to receive
receive-string1. If the string matching receive-string1 is received before timeout,
the execution of the subsequent script, which will be otherwise terminated, will
continue.
z If the last string is a sending string, it indicates that the execution of the script will
be terminated after the string is sent without waiting for any receiving string.
z If the beginning of the script needs no sending string, but need to wait for receiving
string directly, the first string can be set as “”, the meaning of which will be
explained later.
z Except for ending with \c, the sending string will be automatically added with a
return to its end whenever it is sent.
z A receiving string is matched via the location-independent matching method. That
is, a match is considered successful as long as the received contents contain the
expected string.
z Concerning the match of receiving string, there can be multiple expected receiving
strings. The match operation on a receiving string will be considered successful if
the receiving string is matched with any expected receiving strings which are
separated by hyphens (“-“).