Hewlett-Packard ProCurve NAC 800 Users Manual
Download Operation & user’s manual of HP ProCurve NAC 800 Gateway for Free or View it Online on All-Guides.com.
Brand: HP
Category: Gateway
Type: Operation & user’s manual for HP ProCurve NAC 800
Pages: 591 (8.37 Mb)
802.1X Quarantine Method
Setting up the 802.1X Components
11-59
expect [OPTIONS] TEXT | "Waits for TEXT to appear on connection
input"
send [OPTIONS] TEXT | "Writes TEXT to connection output"
The expect scripts use the following commands:
Expect Script Variables: Variables referenced with the syntax ${VARIABLE_NAME}
will be substituted with the value of the variable at execution time.
The following variables may be referenced anywhere:
■ USERNAME – The username used to log in to the device
■ PASSWORD – The password used to log in to the device
■ ENABLE_USERNAME – The username used to enter enable mode
■ ENABLE_PASSWORD – The password used to enter enable mode
Command Description and parameters
expect [OPTIONS]
TEXT
Waits for TEXT to appear on the connection input.
Where
OPTION is one of three optional parameters:
•
regex
Interprets the expect string as a (Java 1.5) regular expression.
•
ifmatched
Skips the command if the value captured from the last regular
expression doesn't match the specified expression (the expression
may contain spaces if wrapped in double quotes).
•
ifset
Skips the command if the specified variable is not set.
send [OPTIONS] TEXT Writes text to the connection output followed by a carriage return.
Where
OPTION is one of three optional parameters:
•
noreturn
Omits the carriage return.
•
ifmatched
Skips the command if the value captured from the last regular
expression doesn't match the specified expression (the expression
may contain spaces if wrapped in double quotes).
•
ifset
Skips the command if the specified variable is not set.
Table 11-1. Expect Script Commands and Parameters