The expect scripts use the following commands:
Table 8: Expect Script Commands and Parameters
Command
expect [OPTIONS]
TEXT
send [OPTIONS] TEXT
Expect Script Variables. Variables referenced with the syntax
the value of the variable at execution time.
The following variables may be referenced anywhere:
—The username used to log in to the device
●
USERNAME
—The password used to log in to the device
●
PASSWORD
—The username used to enter enable mode
●
ENABLE_USERNAME
—The password used to enter enable mode
●
ENABLE_PASSWORD
—Set to "true" for a telnet connection (otherwise unset)
●
IS_TELNET
Sentriant AG Software Users Guide, Version 5.3
Description and parameters
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.
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.
802.1X Quarantine Method
.
will be substituted with
${VARIABLE_NAME}
257