mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-09-30 16:19:38 +00:00
16 lines
359 B
Plaintext
16 lines
359 B
Plaintext
tclsh
|
|
puts [ open "flash:reset.tcl" w+ ] {
|
|
typeahead "\n"
|
|
copy running-config startup-config
|
|
typeahead "\n"
|
|
erase startup-config
|
|
delete /force vlan.dat
|
|
delete /force multiple-fs
|
|
ios_config "sdm prefer lanbase-routing"
|
|
typeahead "\n"
|
|
puts "Reloading the switch in 1 minute, type reload cancel to halt"
|
|
typeahead "\n"
|
|
reload in 1 RESET.TCL SCRIPT RUN
|
|
}
|
|
tclquit
|