I would like to be able to use the baseline compliance tool in LMS to check the NTP server config on my routers & switches. Specifically I would like to check that IP address 1 exists in the NTP config on my core router & that IP address 2 exists on all other devices. Can anyone suggest how to do this?
You would just need to create two templates: one for your router, and one for all other devices. The first template could be assigned to the router group, and have a prereq:
+ hostname CORE-RTR-NAME
+ ntp-server x.x.x.x
The other template could have a similar prereq, but opposite:
+ hostname [#(?!CORE-RTR-NAME)#]
+ ntp-server y.y.y.y