Command Reference Guide
40 ● script-string 3Com Router 5000 Family and Router 6000 Family
Command Reference
script-string
Purpose Use the script-string command to configure a Modem script.
Use the undo script-string command to cancel the Modem script.
Syntax script-string script-name script-content
undo script-string script-name
Parameters script-name
Name of Modem script.
script-content
Script content.
Default By default, the system does not have a Modem script.
Example Define a Modem script.
[3Com ]script-string example "" AT OK ATS0=1 OK
View This command can be used in the following views:
■ System view
Description 3Com series routers provide the Modem script, which is mainly used for:
■ 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.
■ 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:
■ send-string indicates a sending string.
■ receive-string indicates a receiving string.
■ Normally, send-string and receive-string appear in pairs, and the script
must begin with a sending string. For example, s
end-string1
receive-string1 ……
represents the execution flow: Send send-string1