cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
775
Views
2
Helpful
2
Replies

Device check-sync - what is that hash code

jaswredd
Cisco Employee
Cisco Employee

Hi team,

When I check devices check-sync, one of the devices show the following. Please let me know what is “got” and “expected” ? what does that hash code represent?. Thank you.

device_sync_got_expected.jpg

1 Accepted Solution

Accepted Solutions

snovello
Cisco Employee
Cisco Employee

Hi,

in a Netconf device every change to the configuration will generate a new configuration version. So NSO can check if its sync with a netconf device by comparing version numbers.

For a CLI device and this is an IOS device using the IOS  CLI NED, NSO has to emulate that functionality in the NED. There are different mechanisms that can be configured in the NED, for example using the last change timestamp, but the default method in the IOS NED is to simply compute a hash of the config, so depending on the NED settings these numbers could be difffernt things, but most probably what you are seeing here is an MD5 hash of the configuration as returned from 'show run' (after stripping out any items from the show run response that change e.g dates).

View solution in original post

2 Replies 2

snovello
Cisco Employee
Cisco Employee

Hi,

in a Netconf device every change to the configuration will generate a new configuration version. So NSO can check if its sync with a netconf device by comparing version numbers.

For a CLI device and this is an IOS device using the IOS  CLI NED, NSO has to emulate that functionality in the NED. There are different mechanisms that can be configured in the NED, for example using the last change timestamp, but the default method in the IOS NED is to simply compute a hash of the config, so depending on the NED settings these numbers could be difffernt things, but most probably what you are seeing here is an MD5 hash of the configuration as returned from 'show run' (after stripping out any items from the show run response that change e.g dates).

Hi,

You can always run "compare-config" to check the actual differences:

$devices device X compare-config

Roque