cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
821
Views
0
Helpful
1
Replies

LMS4.2.5 baseline template Regex

Victor Lin
Level 1
Level 1

Dear expert,

  i need to add port security in my access switches when the interface's description has AV/PV/UV/VV

description AVxx:06afasf

or
description PVxx:05asfasf or
description UVxx:06afasfas    or
description VVxx:0afasfasgasgfasg


below is my template
Name: CheckPortSecurity     SubMode: Yes      isPrerequisite: Yes 
Ordered : No     Prerequisite-Commandset : none     Parent: none 
  interface   [#.*#] 
+[#description .*[AaPpUuVv][Vv].*#]
-[#switchport port-security.*#]

Name: PushPortSecurity     SubMode: No      isPrerequisite: No 
Ordered : No     Prerequisite-Commandset : CheckPortSecurity     Parent: CheckPortSecurity 
+switchport port-security
+switchport port-security maximum 2
+switchport port-security violation restrict
+switchport port-security mac-address sticky


however when i use this template to check appliance agaist my switch, i find all of the interfaces been added the above config no matter it is matching or not.

  

1 Reply 1

Victor Lin
Level 1
Level 1

Any expertise would be great appreciated!!!!!