802.1X Quarantine Method
authentication script, it is logged and returned to the user. If an expect command times out the current
expect buffer is logged and returned to the user.
As an example, the following figures show the initial scripts used for a Nortel device in the
Sentriant AG user interface.
Figure 145: Nortel Initialization Script
expect Enter Ctrl-Y to begin.
send -noreturn \031
expect -ifset USERNAME Username:
send -ifset USERNAME ${USERNAME}
expect -ifset PASSWORD Password:
send -ifset PASSWORD ${PASSWORD}
expect press <Return> or <Enter> to select option.
send -noreturn c
expect >
send enable
expect -ifset ENABLE_USERNAME Username:
send -ifset ENABLE_USERNAME ${USERNAME}
expect -ifset ENABLE_PASSWORD Password:
send -ifset ENABLE_PASSWORD ${ENABLE_PASSWORD}
expect #
send configure terminal
expect (config)#
Figure 146: Nortel Re-authentication Script
send interface FastEthernet ${PORT}
expect (config-if)#
send eapol re-authenticate
expect (config-if)#
send exit
expect (config)#
Figure 147: 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
256
| "Waits for TEXT to appear on connection input"
| "Writes TEXT to connection output"
Sentriant AG Software Users Guide, Version 5.3