Extreme Networks Sentriant AG Software User's Manual page 303

Version 5.2
Hide thumbs Also See for Sentriant AG:
Table of Contents

Advertisement

802.1X Quarantine Method
Escape Sequences. Special characters can be included by escaping them as "\XXX" where XXX is an
octal value representing an ASCII character, or as "\uXXXX" where XXXX is a hexadecimal value
representing a unicode character.
Comments. Lines that start with the # character are ignored.
Examples. Initialization script:
expect Enter Ctrl-Y to begin.
send -noreturn \031
expect -ifset IS_TELNET Username:
send -ifset IS_TELNET ${USERNAME}
expect -ifset IS_TELNET Password:
send -ifset IS_TELNET ${PASSWORD}
expect press or to select option.
send -noreturn c
expect >
send enable
expect -ifset ENABLE_USERNAME Username:
send -ifset ENABLE_USERNAME ${ENABLE_USERNAME}
expect -ifset ENABLE_PASSWORD Password:
send -ifset ENABLE_PASSWORD ${ENABLE_PASSWORD}
expect #
send configure terminal
expect (config)#
Reauthorization script:
send interface FastEthernet ${PORT}
expect (config-if)#
send eapol re-authenticate
expect (config-if)#
send exit
expect (config)#
Exit script:
send exit
expect #
send exit
expect press or to select option.
send -noreturn l
The conditions in the above scripts are driven by the values of the variables entered by the user, but
sometimes it is necessary to drive conditions from interactions with the switch. For example, if a switch
can be configured with either a blank password or no password (no password prompt) then the text
field for password is insufficient to specify the correct configuration. Instead the script can use a regular
expression to expect either a password prompt or no prompt, and drive subsequent commands from the
result.
303
Sentriant AG Software Users Guide, Version 5.2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag 5.2

Table of Contents