Inserting a set amount of time by using the
sleep XX statement between commands, can help to correlate multiple events in a log file by measuring the exact time between logged events.
Inserting a 5 second delay between commands on Cisco NX-OS:
nx7k-MPLS(config-if)# shut ; sleep 5 ; no shut
There was exactly 5 seconds between shutting and no-shutting an interface which helps to confirm the withdrawal and adding of routes in the IS-IS logs below:
2020 Apr 25 12:56:55.886160 isis isis-config : : Delete direct prefix 192.168.247.154/32 on loopback0 for L2 MT-0 Transition:None 2020 Apr 25 12:57:00.913744 isis isis-config : : Add direct prefix 192.168.247.154/32 on loopback0 for L2 MT-0 metric 10 Transition:None