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

LMS baseline templates query

acarnegie
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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

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.