03-10-2010 04:24 AM
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?
Thanks
Alistair.
Solved! Go to Solution.
03-10-2010 11:01 AM
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:
Prereq:
+ hostname CORE-RTR-NAME
Body:
+ ntp-server x.x.x.x
The other template could have a similar prereq, but opposite:
Prereq:
+ hostname [#(?!CORE-RTR-NAME)#]
Body:
+ ntp-server y.y.y.y
03-10-2010 11:01 AM
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:
Prereq:
+ hostname CORE-RTR-NAME
Body:
+ ntp-server x.x.x.x
The other template could have a similar prereq, but opposite:
Prereq:
+ hostname [#(?!CORE-RTR-NAME)#]
Body:
+ ntp-server y.y.y.y
03-12-2010 07:17 AM
Hi Joe,
Thanks for your answer. I was already using prereqs looking at the hostname but was hoping to be able to use just a single template. I now have it working using two templates as per your suggestion.
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide