Dialog Patterns

Note

This document is automatically generated and is intended to document the default per-platform patterns used to match CLI dialogs for each plugin, and the corresponding action when a pattern is matched.

.

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

aireos

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?User:\s*$

login_handler()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

(.*?)Press any key to continue

send({‘key’: ‘ ‘})

(.*?)Are you sure.*\([yY]/[nN]\)\s*$

sendline({‘key’: ‘y’})

(.?)Press Enter to continue.*

sendline({‘key’: ‘’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

aireos/ap

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

apic

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)Enter the fabric name|^(.*?)Enter the fabric ID|^(.*?)Enter the number of active controllers in the fabric|^(.*?)Enter the POD ID|^(.*?)Is this a standby controller|^(.*?)Enter the controller ID|^(.*?)Enter the controller name|^(.*?)Enter address pool for TEP addresses|^(.*?)Enter the VLAN ID for infra network|^(.*?)Enter address pool for BD multicast addresses|^(.*?)Enable IPv6 for Out of Band Mgmt Interface|^(.*?)Enter the IPv4 address \[|^(.*?)Enter the IPv4 address of the default gateway|^(.*?)Enter the interface speed/duplex mode|^(.*?)Enable strong passwords\?|^(.*?)(Enter|Reenter) the password for admin:|^(.*?)Would you like to edit the configuration\?

update_state({‘con’: <unicon.plugins.apic.connection.AciApicConnection object at 0x10cd5dfd0>, ‘state’: ‘setup’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

asa

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^Permission denied, please try again.$

bad_password_handler()

Beginning [Cc]onfiguration [Rr]eplication:? (from mate|Sending to mate)

sendline()

End [Cc]onfiguration [Rr]eplication (to|from) mate

sendline()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^(.*?)Would you like to enable anonymous error reporting to help improve the product\? \[Y\]es, \[N\]o, \[A\]sk later\s*$

sendline({‘key’: ‘A’})

^(.*?)config has been modified. Save\? \[Y]es\/\[N]o\/\[S]ave all/\[C]ancel:\s*?

sendline({‘key’: ‘S’})

Beginning [Cc]onfiguration [Rr]eplication:? (from mate|Sending to mate)

sendline()

End [Cc]onfiguration [Rr]eplication (to|from) mate

sendline()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

asa/ASAv

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^Permission denied, please try again.$

bad_password_handler()

Beginning [Cc]onfiguration [Rr]eplication:? (from mate|Sending to mate)

sendline()

End [Cc]onfiguration [Rr]eplication (to|from) mate

sendline()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^(.*?)Would you like to enable anonymous error reporting to help improve the product\? \[Y\]es, \[N\]o, \[A\]sk later\s*$

sendline({‘key’: ‘A’})

^(.*?)config has been modified. Save\? \[Y]es\/\[N]o\/\[S]ave all/\[C]ancel:\s*?

sendline({‘key’: ‘S’})

Beginning [Cc]onfiguration [Rr]eplication:? (from mate|Sending to mate)

sendline()

End [Cc]onfiguration [Rr]eplication (to|from) mate

sendline()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

asa/fp2k

default

Pattern

Action

^.*?  +Type \? for list of commands

flag_ssh_session()

^.*\x07$

clear_command_line()

Syntax error: The command is not completed

clear_command_line()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

cheetah/ap

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

cimc

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^(.*?)Enter 'yes' or 'no' to confirm.*->\s*$

sendline({‘key’: ‘yes’})

comware

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^ *login as: *$

login_handler()

^.* password: $

password_handler()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

confd

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

confd/csp

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

confd/esc

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

confd/nfvis

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

dnos10

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

dnos6

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

eos

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

fxos

default

Pattern

Action

^.*?  +Type \? for list of commands

flag_ssh_session()

^.*\x07$

clear_command_line()

Syntax error: The command is not completed

clear_command_line()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

fxos/fp4k

default

Pattern

Action

^.*?  +Type \? for list of commands

flag_ssh_session()

^.*\x07$

clear_command_line()

Syntax error: The command is not completed

clear_command_line()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

fxos/fp9k

default

Pattern

Action

^.*?  +Type \? for list of commands

flag_ssh_session()

^.*\x07$

clear_command_line()

Syntax error: The command is not completed

clear_command_line()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

fxos/ftd

connect

Pattern

Action

^.*?  +Type \? for list of commands

flag_ssh_session()

Syntax error: The command is not completed

clear_command_line()

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

gaia

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

generic

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

hvrp

default

Pattern

Action

(\[y\/n\])

<lambda>()

connect

Pattern

Action

Permission denied.*

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*[Ll]ogin:

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword:

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ios

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ios/ap

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ios/iol

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ios/iosv

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

.*Destination filename \[startup-config\]\?\s*$

sendline({‘key’: ‘’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ios/pagent

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxe

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/c9800

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/c9800

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/c9800

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/cat3k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/cat3k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/cat4k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/cat8k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/cat9k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/csr1000v

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/csr1000v

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/iec3400

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

\x1b\[6n

terminal_position_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/quad

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/sdwan

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxe/stack

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

iosxr

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/asr9k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/iosxrv

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/iosxrv9k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/moonshine

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/ncs5k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

iosxr/spitfire

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^(.*?)spitfire-arm login:\s*?$

bmc_login_handler()

^.*([Uu]sername|[Ll]ogin):\s*?$

xr_login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword:\s*?$

password_handler()

^.*Enter secret(\sagain)?:\s?$

password_handler({‘reuse_current_credential’: True})

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

Do you wish to proceed?.*$

sendline({‘key’: ‘yes’})

\[confirm( with only 'y' or 'n')?\]\s*\[y/n\].*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ironware

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ise

connect

Pattern

Action

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

wait_and_send_yes()

^.*[Pp]ermission denied

permission_denied()

^.*([Uu]sername|[Ll]ogin): ?$

username_handler()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused()

Enter session number to resume or press <Enter> to start a new one:

send_enter()

^.*--More--.*

more_handler()

Press <Enter> to continue

send_enter()

Escape character is

send_enter()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

junos

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*[Ll]ogin: ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword: ?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

junos/vsrx

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*[Ll]ogin: ?$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword: ?$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

linux

connect

Pattern

Action

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

username_handler()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter passphrase for key .*?:\s*?

password_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*(\[sudo\] password for .*?:|This is your UNIX password:)\s*$

sudo_password_handler()

nd

connect

Pattern

Action

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

username_handler()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter passphrase for key .*?:\s*?

password_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*(\[sudo\] password for .*?:|This is your UNIX password:)\s*$

sudo_password_handler()

nso

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

nxos

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/aci

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/mds

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/n5k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/n7k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/n9k

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

nxos/nxosv

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

(.*?)Do you want to enable admin vdc\s?\(yes\/no\)\s?\[n\]\:

send_response({‘response’: ‘no’})

^(.*?)Boot up system with default vdc \(yes\/no\) \[y\]\:

send_response({‘response’: ‘yes’})

^(.*?)Enable the SNMP port\? \(yes\/no\) \[y\]:

send_response({‘response’: ‘’})

^(.*?)(Enter|Confirm) the password for .*admin

admin_password_handler()

(.*?)Do you want to enforce secure password standard \(yes\/no\) \[y\]\:

send_response({‘response’: ‘n’})

Abort( Power On)? Auto Provisioning .*:

send_response({‘response’: ‘y’})

^.*([Uu]sername|[Ll]ogin): ?

login_handler()

^.*[Pp]assword: ?

password_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

This command will reload module \S+ Proceed\[y\/n]\?

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

ons

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

sdwan

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

sdwan/iosxe

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Warning

Duplicate statement [pattern=’^.*(?<!Abort Copy? )[confirm].*$’, action=sendline, args={‘key’: ‘’}, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Overwrite the previous NVRAM configuration\?\[confirm\].*$

sendline({‘key’: ‘’})

^.*Delete filename \[.*\]\?\s*$

sendline({‘key’: ‘’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Do you want to remove the above files\? \[y\/n]\s*$

sendline({‘key’: ‘y’})

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

^.*Are you sure you want to continue\? \(y\/n\)\[y\]:?\s?$

sendline({‘key’: ‘y’})

^.*Do you wish to continue\? \[yes\]:\s*$

sendline({‘key’: ‘yes’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline({‘key’: ‘’})

^.*Do you want to continue\? \[no\]:\s*$

sendline({‘key’: ‘yes’})

Are you sure you want to do this\? \[yes/no\]:\s*$

sendline({‘key’: ‘yes’})

^.*Proceed\? \[yes,no\]\s*$

sendline({‘key’: ‘yes’})

sdwan/viptela

default

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

connect

Warning

Duplicate statement [pattern=’^(.*?)connected from .* using console’, action=console_session, args=None, loop_continue=True, continue_timer=False, trim_buffer=True]

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^(.*?)connected from .* using console

console_session()

^(.*?)connected from .* using console

console_session()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

slxos

connect

Pattern

Action

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*[Ll]ogin:\s*$

login_handler()

^.*User Access Verification

user_access_verification()

^.*[Pp]assword:\s*$

password_handler()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()

sonic

connect

Pattern

Action

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

username_handler()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^.*Enter passphrase for key .*?:\s*?

password_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*(\[sudo\] password for .*?:|This is your UNIX password:)\s*$

sudo_password_handler()

sros

connect

Pattern

Action

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

^Permission denied, please try again\.\s?$

permission_denied()

^.*([Uu]sername|[Ll]ogin): ?$

username_handler()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

staros

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

vos

default

Pattern

Action

^.*?\x1b\[1mPress <enter> for 1 line, <space> for one page, or <q> to quit\x1b\[0m

press_space()

^.*?\x1b\[1m\r\noptions: q=quit, n=next, p=prev, b=begin, e=end \(lines (\d+) - (\d+) of (\d+)\) : \x1b\[0m

paginate()

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

.*Continue \(y/n\)\?

sendline({‘key’: ‘y’})

windows

connect

Pattern

Action

^.*--\s?[Mm]ore\s?--.*$

more_prompt_handler()

^.*?% (Bad passwords|Access denied|Authentication failed|Login invalid).*?\n

bad_password_handler()

^.*Login incorrect

incorrect_login_handler()

^.*([Uu]sername|[Ll]ogin): ?$

login_handler()

^.*User Access Verification

user_access_verification()

^(Enter new password|Confirm password):\s*$

set_new_password()

^.*[Pp]assword( for )?(\S+)?: ?$

password_handler()

^(.*)Kerberos:\s*No default realm defined for Kerberos!

sendline()

Password OK\s*$

sendline()

^.*Enter passphrase for key .*?:\s*?

passphrase_handler()

^.*?(Enter|Confirm) enable secret:\s*$

enable_secret_handler()

^.*(initial|basic) configuration dialog\s?\??\s*((\[yes.*\])|(\(yes/no\))|(\(yes/no\)\s*(\[y\]))):

sendline({‘key’: ‘no’})

Would you like to enter basic management setup\? \[yes/no\]:

send({‘key’: ‘x03’})

^.*?Enter your selection( \[2])?:\s*$

setup_enter_selection()

^.*?Enter your encryption selection( \[2])?:\s*$

setup_enter_selection()

Escape character is .*\n

escape_char_callback()

^.*RETURN to get started

wait_and_enter()

Are you sure you want to continue connecting \(yes/no(/\[fingerprint\])?\)

ssh_continue_connecting()

^.*(Connection refused|Connection reset by peer|Broken pipe|Network is down|closed by remote host)

connection_refused_handler()

Received disconnect from .*:

connection_failure_handler()

Hit Enter to proceed:

wait_and_enter()

^(.*?)Press Ctrl\+x to Exit the session

wait_and_enter()

^(.*?)Connected.

sendline()

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*?Press any key to continue\..*?$

sendline({‘key’: ‘’})

^.*[Pp]ermission denied

permission_denied_handler()

execute

Pattern

Action

^.*\[confirm\]\s*[\(\[]y/n[\]\)].*$

sendline({‘key’: ‘y’})

^.*(?<!Abort Copy\? )\[confirm\].*$

sendline()

^.*\[yes[/,][Nn][Oo]\]\s?:?\s*$

sendline({‘command’: ‘y’})

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

configure

Pattern

Action

^.*?(%\w+(-\S+)?-\d+-\w+|Guestshell destroyed successfully|%Error opening tftp:\/\/255\.255\.255\.255|Autoinstall trying|audit: kauditd hold queue overflow).*$

syslog_wait_send_return()

^.*Config session is locked.*user will be pushed back to exec mode

config_session_locked_handler()