Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

LMS baseline templates query

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
Cisco Employee

Re: LMS baseline templates query

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

2 REPLIES
Cisco Employee

Re: LMS baseline templates query

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

Community Member

Re: LMS baseline templates query

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.

293
Views
0
Helpful
2
Replies
CreatePlease to create content