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

Cisco Prime Compliance Policies

Andrew Clark
Level 1
Level 1

Hello - I'm making a compliance policy in PI for QoS checking. I would like to create a policy that would look to make sure that QoS is applied appropriately to all of the switch interfaces. Is there a way that PI can do this within the Compliance Policies configuration?

1 Reply 1

Brett
Level 1
Level 1

Hi Andrew,

 

There is a way in Prime to accomplish this. The first rule will be to set up the parse blocks, and then the rules following will be to check for QOS.

 

S.No1:

Condition Scope Detail:

Configuration

 

Block Options:

Parse as Block

Block Start Expression: ^interface (?i)(F.*|G.*|T.*)    <-- This will start the block on Fast Ethernet, Gig, or Ten Gig interfaces

 

Condition Match Criteria:

Operator Matches the expression

Value: interface (?i)(F.*|G.*|T.*)  <-- Captures the interface

 

Action Detail

Does Not Match: Does not raise a violation

 

S.No2:

Condition Scope Detail:

Previously Matched Blocks

 

Block Options: NONE

 

Condition Match Criteria:

Operator: Contains the String

Value:  Insert single QOS line that needs to be on every interface.

Action Detail:

Does Not Match:

Raise a Violation and Continue

User Defined

Message QOS is incorrect on interface <1.1>

CLI Fix:

interface <1.1>

QOS command

 

And that should do it.  Please note that this will only be beneficial if each interface is supposed to have the same QOS configured.  If each interface is going to have different commands, then the policy will be longer depending on what you need to check for.

 

Hope this helps,

 

Brett