cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
844
Views
5
Helpful
6
Replies

RME Baseline Question

jpazahanick
Level 4
Level 4

I would like to create a baseline template that checks for the presence of tacacs-server 10.1.82.24 and tacacs-server 10.2.82.25 and removes any other tacacs-server ip address that might be configured. Can someone help me create a template that would do this?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

The following advanced rules evaluated in global mode should do it for you. This assumes you're using LMS 2.6 or higher.

+ tacacs-server 10.1.82.24

+ tacacs-server 10.2.82.25

- tacacs-server [#!(10\.1\.82\.24|10\.2\.82\.25)#]

View solution in original post

6 Replies 6

Joe Clarke
Cisco Employee
Cisco Employee

The following advanced rules evaluated in global mode should do it for you. This assumes you're using LMS 2.6 or higher.

+ tacacs-server 10.1.82.24

+ tacacs-server 10.2.82.25

- tacacs-server [#!(10\.1\.82\.24|10\.2\.82\.25)#]

Thanks Joe, worked perfectly.

How would you write the rule for:

tacacs-server host 10.24.195.204 key 7 *****

would it be:

"+tacacs-server host 10.24.195.204 *" ?

thanks joe.

I would include one crypto pattern, and make it a literal search:

+ tacacs-server host 10.24.195.205 key 7 abcdef

But you could do:

+ [#tacacs-server host 10.24.195.205 .*#]

would:

+ tacacs-server host 10.24.195.204 key 7 [#.*#]

+ tacacs-server host 10.25.144.46 key 7 [#.*#]

- tacacs-server host [#!(10\.24\.195\.204|10\.25\.144\.46)#] key 7 [#.*#]

work?

Yes.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: