Switching and Cisco
Pre and Post Change Comparison
Paste the same show command from before and after a change. You get what changed, what is missing and what is new, row by row, and a report to copy into the change record.
Interface status
Read as show interfaces status: 6 rows before, 6 rows after.
Changed
| Port | Field | Before | After |
|---|---|---|---|
| Gi1/0/2 | Status | connected | notconnect |
| Duplex | a-full | auto | |
| Speed | a-1000 | auto | |
| Gi1/0/3 | VLAN | 20 | 30 |
| Duplex | a-full | a-half | |
| Gi1/0/23 | Status | connected | err-disabled |
| Duplex | a-full | auto | |
| Speed | a-1000 | auto |
3 rows did not change.
What it reads
show interfaces status, show ip interface brief, show ip bgp summary, show ip ospf neighbor, show mac address-table and show ip route, from Cisco IOS, IOS XE and NX-OS. The table is detected from what you paste, and you can set it by hand. Prompts, headers and legends around the table are ignored.
Anything else can be compared as plain lines, which reports the lines that are only in one paste. Output with counters or timers will show those as differences.
How rows are matched
Each row is matched by what identifies it: the port, the neighbor address, the MAC address and VLAN, or the prefix. Values that always move, such as message counters, table versions and dead timers, are left out of the comparison, so an unchanged neighbor shows as unchanged.
For BGP the time a session has been up is compared too. A neighbor that is established in both captures but has been up for less time afterwards was reset in between, and the tool says so even though its state reads the same.
Using it in a change window
Capture the commands before you start and save them. Run them again when you finish, and compare each pair. A port that went from connected to notconnect, a neighbor that did not come back, or a route with one path fewer is much easier to see here than by reading two screens of output side by side.
The output often holds addresses and names from your network. The comparison runs in this page and nothing you paste is sent anywhere.