Advisor
shinji7800
Posts: 21
Registered: ‎09-13-2011
(560 Views)
Help for policy

Hello,

 

I would like to create a specific policy to check a pattern.

 

 

for example I would like to verify this in a scope of equipments :

 

snmp-server host 192.168.1.10 RW_COMMUNITY

snmp-server host 192.168.0.10 RW_COMMUNITY

 

I want just this 2 lines (I don't want a third line snmp-server host).

 

so I create a policy rules with a text block :

 

block start pattern :

  • snmp-server enable traps ipsla

 

block end pattern :

  • snmp mib persist cbqos

 

a condition config block must contain only :

 

  • snmp-server host 192.168.1.10 RW_COMMUNITY
  • snmp-server host 192.168.0.10 RW_COMMUNITY

 

whatever the order

 

but  in the "but must not have any additional lines containing" I don't know what I can put in it ...

 

I have tried "snmp-server .*" but it doesn't works

 

 

have you some clues ?

 

 

Thanks

 

Best regards

 

Who Me Too'd this topic
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.