Lessons · Network switches · a backup you have read
A backup you have not read is a filename
The copy reporting bytes is a fact about the transfer. Whether the file is the configuration is a different question, and opening it is the answer.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
A file can be written and still be empty, truncated, or the wrong switch. Finding that out today costs ten seconds; finding it out on the night costs the night.
How to think about it
Take the backup, then read the running config back and look for the same landmarks -- the hostname at the top, the VLAN interface, `end` at the bottom.
Worked example
enableIn.
configure terminalSomething worth backing up.
hostname IDF3A landmark you can look for afterwards.
endOut.
copy running-config tftp://10.0.0.9/idf3.cfgSent. It says bytes copied, which is about the transfer.
show running-config | include hostnameThe line you expect the file to start with.
show running-config | include endAnd the one it should finish with.
Your turn
Find just the hostname line in a three-hundred-line configuration.
show running-config | hostname
Console into a switch
The trap
Keeping the only copy on the laptop that is going into the closet with you.