HOWTO reset the startup-config in GNS?
1) Paste the following into all your devices. Don't forget to add another carriage return after "wr erase" so that you don't have to [confirm] manually.
endYou figure this would do it but nope, it doesn't. You need to..
2) Shut down all your devices (the big red button in GNS3) and then run this script:
#!/bin/bashAnd in case you're wondering, if you don't do step 2 as suggested here you have to right click on every device, choose "Startup config" and then delete everything from the text field. And of course, click OK.
for host in R1 R2 R3 R4 R5 R6 SW1 SW2 SW3 SW4 FRS
echo "Resetting $host"
echo "hostname $host" > $PATH/$host.cfg
echo "alias exec srb sh run | begin" >> $PATH/$host.cfg
echo "alias exec sri sh run | include" >> $PATH/$host.cfg
echo "alias exec srr sh run | begin ^router" >> $PATH/$host.cfg
echo "alias exec srs sh run | section" >> $PATH/$host.cfg