Hone

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

enable
In.
configure terminal
Something worth backing up.
hostname IDF3
A landmark you can look for afterwards.
end
Out.
copy running-config tftp://10.0.0.9/idf3.cfg
Sent. It says bytes copied, which is about the transfer.
show running-config | include hostname
The line you expect the file to start with.
show running-config | include end
And the one it should finish with.

Your turn

Find just the hostname line in a three-hundred-line configuration.

show running-config |  hostname

The trap

Keeping the only copy on the laptop that is going into the closet with you.

Practise a backup you have read on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.