ZyXEL P-100MH User Guide - Page 58

Editing Script Options

Page 58 highlights

Prestige 100WH Internet Access Router 3.7 Editing Script Options For some ISP, text login is required before it will start PPP negotiation. The Prestige provides a script facility for this purpose. The script has six programmable sets; each is composed of an 'Expect' string and a 'Send' string. After matching the message from the server to the Prestige returns the set's 'Send' string to the server. For instance, a typical login sequence starts with the server printing a banner, a login prompt for you to enter the user name and a password prompt to enter the password: Welcome to Acme, Inc. Login: myLogin Password: To handle the first prompt, you specify "ogin: " as the 'Expect' string and "myLogin" as the 'Send' string in set 1. The reason for leaving out the leading "L" is to avoid having to know exactly whether it is upper or lower case. Similarly, you specify "word: " as the 'Expect' string and your password as the 'Send' string for the second prompt in set 2. Please note that the ordering of the sets is significant, i.e., starting from set 1, the Prestige will wait until the 'Expect' string is matched before it proceeds to set 2, and so on for the rest of the script. When both the 'Expect' and the 'Send' fields of the current set are empty, the Prestige will terminate the script processing and start PPP negotiation. This implies two things: first, the sets must be contiguous; the sets after an empty one are ignored. Second, the last set should match the final message sent by the server. For instance, if the server prints Login successful. Starting PPP... after you enter the password, then you should create a third set to match the final "PPP...", but without a "Send" string. Otherwise, the Prestige will start PPP prematurely right after sending your password to the server. 3-14 Chapter 3 Internet Access Application

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126

Prestige 100WH Internet Access Router
3-14
Chapter 3
Internet Access Application
3.7
Editing Script Options
For some ISP, text login is required before it will start PPP negotiation. The
Prestige
provides
a script facility for this purpose. The script has six programmable sets; each is composed of an
‘Expect’ string and a ‘Send’ string. After matching the message from the server to the
Prestige
returns the set’s ‘Send’ string to the server.
For instance, a typical login sequence starts with the server printing a banner, a login prompt
for you to enter the user name and a password prompt to enter the password:
Welcome to Acme, Inc.
Login: myLogin
Password:
To handle the first prompt, you specify “ogin: ” as the ‘Expect’ string and “myLogin” as the
‘Send’ string in set 1. The reason for leaving out the leading “L” is to avoid having to know
exactly whether it is upper or lower case. Similarly, you specify “word: ” as the ‘Expect’
string and your password as the ‘Send’ string for the second prompt in set 2.
Please note that the ordering of the sets is significant, i.e., starting from set 1, the
Prestige
will
wait until the ‘Expect’ string is matched before it proceeds to set 2, and so on for the rest of
the script. When both the ‘Expect’ and the ‘Send’ fields of the current set are empty, the
Prestige
will terminate the script processing and start PPP negotiation. This implies two
things: first, the sets must be contiguous; the sets after an empty one are ignored. Second, the
last set should match the final message sent by the server. For instance, if the server prints
Login successful.
Starting PPP…
after you enter the password, then you should create a third set to match the final “PPP…”,
but without a “Send” string. Otherwise, the
Prestige
will start PPP prematurely right after
sending your password to the server.