
A14-46
893-741-B
Configuring Hosts and Servers
Default Global Timeout Values
The overall time for a dial-out route to complete its chat script activity is two minutes (120 seconds).
You can override this value using the global_timeout statement. The syntax is:
global_timeout <global time-out value>
Default Timeout Values
If the <timeout value> is omitted from the timeout statement, the default of five seconds is used.
Each chat script can have its own default timeout value by specifying a value in the begin_script
statement using the format:
begin_script <script name>, <default time-out value>
Typically, the timeout statement terminates a block of expect statements. If a block of expect
statements is terminated by a statement other than timeout, the <time-out value> used is the <default
time-out value> for the script, and the <script name> used is error.
Chat Script Examples
The following sample chat script illustrates the Model 5390 chat script language. This script first
calls the chat script called chat2. If chat2 is successful, chat1 continues (that is, it sleeps for five
seconds). If chat2 is unsuccessful, chat1 returns as unsuccessful. The chat script then sends the string
called String1. If String2 (case-sensitive) does not arrive within five seconds, an error is returned.
If String2 does arrive within five seconds, the chat script called chat3 is called. Because chat3 always
returns successfully, chat1 also returns successfully.
begin_scriptchat1
call
chat2
sleep
5
send
"String1\r"
expect_case"String2", chat3
timeout 5, error
end_script
begin_script chat3
send
"String3\r"
end_script
NOTE:
The global_timeout statement must appear inside of the dialout
section of the configuration file but outside of any route.
NOTE:
See Chat Script Examples below for a sample chat script that
uses this format.
Содержание 5390
Страница 28: ...893 741 B Figures xxviii ...
Страница 44: ...893 741 B Preface xliv ...
Страница 45: ......
Страница 48: ......
Страница 60: ...A1 12 893 741 B Introduction to the Model 5390 Server ...
Страница 106: ...A3 18 893 741 B Configuring Ports ...
Страница 142: ...A5 12 893 741 B Printers ...
Страница 152: ...A6 10 893 741 B Modems ...
Страница 168: ...A7 16 893 741 B Serial Line Internet Protocol SLIP ...
Страница 224: ...A9 38 893 741 B Internetwork Packet Exchange IPX Protocol ...
Страница 258: ...A11 12 893 741 B Dial up Networking ...
Страница 289: ...893 741 B A12 31 Internet Protocol IP Routing that are possible ...
Страница 506: ...A15 86 893 741 B Using Model 5390 Security ...
Страница 507: ......
Страница 508: ... Chapter B1 Network Administration Chapter B2 Simple Network Management Protocol SNMP Part B Network Administration ...
Страница 544: ...B1 36 893 741 B Network Administration ...
Страница 574: ...B2 30 893 741 B Simple Network Management Protocol SNMP ...
Страница 575: ......
Страница 606: ...C1 30 893 741 B na Commands ...
Страница 676: ...C2 70 893 741 B Configuration Parameters ...
Страница 772: ...C3 96 893 741 B Using the CLI Commands ...
Страница 794: ...C5 12 893 741 B Network Protocols ...
Страница 795: ......
Страница 796: ... Appendix D1 Software Reference Part D Appendixes ...