
A14-44
893-741-B
Configuring Hosts and Servers
String Formatting Extensions
Any character can be inserted into the send, expect, and expect_case strings using the backslash (\)
character followed by an octal number of no more than three characters. For example, to send a
newline character (octal: 12), insert a \12 in the send string. The sequence of octal numbers following
the backslash character cannot exceed 377 (255 decimal). Some control characters can also be
represented as follows:
Name
Decimal Value Representation
BEL
7
\a
BS
8
\b
call
Executes another chat script.
sleep
Causes a pause in the script for <sleep length> in
seconds.
send
Sends a string. The string must be enclosed in double
quotes. Multiple strings can be entered on one line or
on multiple lines.
expect
expect_case
Sends control to another script upon reception of a
string; the first match is used. When <string> is
received, <script name> is called; the default is
continue. The expect field is not case-sensitive. The
expect_case field is for use with case-sensitive
matches. You can block together multiple expect
statements:
expect <string 1>, <script 1>
expect <string 2>, <script 1>
expect <string 3>, <script 3>
timeout
Specifies the total amount of time to wait (in seconds)
for strings defined in a block of expect statements.
The timeout statement terminates a block of expect
statements. The <script name> is the chat script name
to execute upon timeout; the default is error.
end_script
Marks the end of a chat script.
Table A14-11. Field Definitions for Chat Scripts (continued)
Field
Definition
Summary of Contents for 5390
Page 28: ...893 741 B Figures xxviii ...
Page 44: ...893 741 B Preface xliv ...
Page 45: ......
Page 48: ......
Page 60: ...A1 12 893 741 B Introduction to the Model 5390 Server ...
Page 106: ...A3 18 893 741 B Configuring Ports ...
Page 142: ...A5 12 893 741 B Printers ...
Page 152: ...A6 10 893 741 B Modems ...
Page 168: ...A7 16 893 741 B Serial Line Internet Protocol SLIP ...
Page 224: ...A9 38 893 741 B Internetwork Packet Exchange IPX Protocol ...
Page 258: ...A11 12 893 741 B Dial up Networking ...
Page 289: ...893 741 B A12 31 Internet Protocol IP Routing that are possible ...
Page 506: ...A15 86 893 741 B Using Model 5390 Security ...
Page 507: ......
Page 544: ...B1 36 893 741 B Network Administration ...
Page 574: ...B2 30 893 741 B Simple Network Management Protocol SNMP ...
Page 575: ......
Page 606: ...C1 30 893 741 B na Commands ...
Page 676: ...C2 70 893 741 B Configuration Parameters ...
Page 772: ...C3 96 893 741 B Using the CLI Commands ...
Page 794: ...C5 12 893 741 B Network Protocols ...
Page 795: ......
Page 796: ... Appendix D1 Software Reference Part D Appendixes ...