Just wondering what is the best way to give configurations a version. To elaborate - I want to have different versions of configuration files and query the running-config for the currently running configuration version. Is there a MIB OID that I can set to specify the current running configuration version and then poll later? Can I put it right in the configuration file itself?
Context here is upgrade management.
Thanks!
EDIT: To clarify (I didn't even understand what I wrote the first time), all I'm really looking for is an easy way to add version meta-data to a config file.
Ideally, what I'd like to do is have a line in the config file like this:
! configuration_version 1.10
The problem with this is that when you copy the configuration file to running, you lose comments, so the only alternative I can find is to put the config_version attribute in one of the banners, like the motd or the login banner. This works but its a hack and it's a pain in the butt to parse the banner message out of the running-config since there is no "show banner" command in the cli.