CiscoTool_v1/netmiko_Api/utils/break-password2960-3560-375...

24 lines
331 B
Bash

sleep 2
send "\r"
send "\r"
send "flash_init\r"
sleep 15
expect "MORE"
send " "
sleep 45
expect "switch:"
send "delete flash:config.text\r"
expect "?"
send "y\r"
expect "switch:"
send "delete flash:private-config.text\r"
expect "?"
send "y\r"
expect "switch:"
sleep 2
send "\r"
send "\r"
sleep 2
send "boot\r"
sleep 2
send "boot\r"