Bay Networks 5390 Administering page 403

Communications server
Hide thumbs Also See for 5390:
Table of Contents

Advertisement

begin_scriptchat2
sleep
3
send
"Message #1\n"
expect "OK"
expect "NOT OK", error
timeout 10
end_script
The following sample chat script can start a SLIP line on the Model 5390 CLI port. This script sends
the string slip with a carriage return. Then it waits five seconds for a case-sensitive match on the
string Switching to SLIP. If the match times out, the script will return as unsuccessful. If the
expect_case field receives the expected string, it returns successfully.
begin_scriptchat_slip
send
"slip\r"
expect_case"Switching to SLIP", success
timeout 5, error
end_script
The following sample script waits ten seconds for the string username: because this <default time-out
value> is specified in the begin_script statement. The <default time-out value> is used only if a
<time-out value> is omitted from the timeout statement. If a <default time-out value> is not specified
on this line, the default remains five seconds.
begin_scriptscript1, 10
send
"login"
expect "username:"
timeout success
end_script
893-741-B
Configuring Hosts and Servers
A14-47

Advertisement

Table of Contents
loading

Table of Contents