Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual page 280

Table of Contents

Advertisement

Nortel Re-authentication Script
send interface FastEthernet ${PORT}
expect (config-if)#
send eapol re-authenticate
expect (config-if)#
send exit
expect (config)#
Nortel Exit Script
send exit
expect #
send exit
expect press <Return> or <Enter> to select option.
send -noreturn l
Expect Script Commands
expect [OPTIONS] TEXT
send [OPTIONS] TEXT
The expect scripts use the following commands:
Table 11-1
Command
expect [OPTIONS] TEXT
send [OPTIONS] TEXT
280 Novell ZENworks Network Access Control Users Guide
| "Waits for TEXT to appear on connection input"
| "Writes TEXT to connection output"
Expect Script Commands and Parameters
Description and parameters
Waits for TEXT to appear on the connection input.
Where OPTION is one of three optional parameters:
Writes text to the connection output followed by a carriage return.
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.
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents