Appendix E – Writing a Login Script

Appendix E – Writing a Login Script

Writing a Login Script for IP Routing

To write an effective login script, you must obtain the correct login script information from your ISP and become familiar with using the login script commands.

Example 1: Script for Normal Reliable ISP

#

Login Script

Meaning of Each Login Script Command

 

 

 

1

Send”ATZ”

Rests Modem

2

Send”ATS0 =1”

Sends initial string ‘ATS0 =1‘ to modem

3

Send”ATDT888-1234”

Dial phone number 888-1234

4

Wait”CONNECT”

Waits for ISP to send reply ‘CONNECT‘

 

 

 

5

Wait”username:”

Waits for ISP to send reply ‘username‘

 

 

 

6

Send”JaneDoe”

Sends the user name ‘JaneDoe‘ to the ISP

7

Wait”password”

Waits for ISP to send reply ‘password‘

8

SH”1234”

Sends password ‘1234‘ to the ISP

 

 

 

9

Wait”===>”

Waits for ISP to send reply ‘===>‘

 

 

 

10

Send”1”

Selects option 1(PPP) for this ISP

11

Go

Starts PPP mode

Example 2 : Script for Unreliable ISP (Redial until connected)

#

Login Script

Meaning of Each Login Script Command

 

 

 

1

Send”ATZ”

Resets modem

2

Send”ATS0 =1”

Sends initial string ‘ATS0 =1‘ to modem

3

Send”ATDT8881234”

Dials phone number 888-1234

 

 

 

4

Wait”CONNECT”2

Wait for ISP to send reply ‘CONNECT‘. If no CONNECT, returns to

 

 

line 2 to re-dial

5

Wait”username:”12

Waits for ISP to send reply ‘username‘. If no response, goes to line

 

 

12.

6

Send”JaneDoe”

Sends the username ‘JaneDoe‘ to the ISP

7

Wait”password”

Waits for ISP to send reply‘ password‘

 

 

 

8

SH”1234”

Sends password ‘1234‘ to ISP

9

Wait”====>”

Waits for ISP to send reply ‘===>‘

10

Send”1”

Selects option 1 (PPP) for this ISP

 

 

 

11

Go

Starts PPP mode

 

 

 

12

Hangup

Hangs up Modem

RouteFinder RF500S User Guide

129

Page 129
Image 129
Multi-Tech Systems RF500S manual Appendix E Writing a Login Script, Writing a Login Script for IP Routing