3Com 3C888 User Guide - Page 78

Creating a Connection, Script, Connection Script Command Syntax, The Delay command

Page 78 highlights

78 CHAPTER 7: ADVANCED CONFIGURATION . Figure 46 Script Configuration Page Creating a Connection Script You can create a script from any other text editor of your choice and copy and paste the script directly into the Script Configuration text box. Or you may use the buttons located along the left side of the script window to guide you through the scripting process. Connection Script Command Syntax The following section explains the valid script command syntax. s The Begin command (begin) initiates the script. The first line of the script must start with begin. s The Delay command (delay second) designates a length of time to wait before sending the next command in the script. The acceptable values are between 1-60 seconds. s The SetPort command (setport databit, parity, stopbit) allows you to match the script to the communication port settings of the remote server. The valid databit is 8 or 7. The valid parity is none, even, or odd. The valid stopbit is either 1 or 2. s The Transmit command (transmit "text string") sends a text string to the remote server. An example of a transmit string might be your account username or password. This text must be included between the quotation marks. A carriage return is simulated by the characters ^M within the quotation marks. The maximum length for this string is 64 characters. s The WaitFor command (waitfor "string, second") allows you to designate in the script to wait before proceeding. An example of text that you might wait for is the string Username, for which you would send your username as a reply. If the timeout period elapses before a matching string is received, the script

  • 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
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168

78
C
HAPTER
7: A
DVANCED
C
ONFIGURATION
.
Figure 46
Script Configuration Page
Creating a Connection
Script
You can create a script from any other text editor of your choice and copy and
paste the script directly into the Script Configuration text box. Or you may use the
buttons located along the left side of the script window to guide you through the
scripting process.
Connection Script Command Syntax
The following section explains the valid script command syntax.
The Begin command (
begin
) initiates the script. The first line of the script must
start with
begin
.
The Delay command (
delay
second)
designates a length of time to wait before
sending the next command in the script. The acceptable values are between
1-60 seconds.
The SetPort command (
setport
databit
,
parity
,
stopbit)
allows you to
match the script to the communication port settings of the remote server. The
valid
databit
is
8
or
7
. The valid
parity
is
none
,
even
, or
odd
. The valid
stopbit
is
either
1
or
2
.
The Transmit command (
transmit
“text string”
)
sends a text string to the
remote server. An example of a transmit string might be your account
username or password. This text must be included between the quotation
marks. A carriage return is simulated by the characters
^M
within the quotation
marks
.
The maximum length for this string is 64 characters.
The WaitFor command (
waitfor
“string, second”
) allows you to designate in
the script to wait before proceeding. An example of text that you might wait
for is the string
Username
, for which you would send your username as a reply.
If the timeout period elapses before a matching string is received, the script