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

Table of Contents

Advertisement

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
IS_TELNET — Set to "true" for a telnet connection (otherwise unset)
IS_SSH — Set to "true" for an SSH connection (otherwise unset)
The following variables may be referenced from re-authentication script:
PORT — The endpoint's port
PORT_ID — The endpoint's port ID, usually the same as PORT
MAC — The MAC address of the endpoint in colon/hex format (hh:hh:hh:hh:hh:hh)
MAC_DOTTED_DECIMAL — The MAC address of the endpoint in dotted decimal format
(ddd.ddd.ddd.ddd.ddd.ddd)
MAC_DOTTED_HEX — The MAC address of the endpoint in dotted hex format
(hhhh.hhhh.hhhh)
IP_ADDRESS — The IP address of the endpoint in dotted decimal format
IS_MAC_AUTH — Set to "true" if the username from the switch is a MAC address (otherwise
unset)
IS_DOT1X — Set to "true" if the username from the switch is not a MAC address (otherwise
unset)
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.
802.1X Quarantine Method 281

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents