04-11-2008 07:46 AM
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?
Solved! Go to Solution.
04-11-2008 07:51 AM
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)#]
04-11-2008 07:51 AM
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)#]
04-11-2008 08:41 AM
Thanks Joe, worked perfectly.
05-22-2008 06:58 AM
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.
05-22-2008 07:23 AM
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 .*#]
05-22-2008 07:30 AM
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?
05-22-2008 10:12 AM
Yes.
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