Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

Network Change & Configuration Management

Reply
Accepted Solution

tell a script what compliance rule triggered it

AndrewSJ
Techie
Posts: 15
3556     0

I'd like to set up triggered jobs for a number of policy rules but the script these triggers will run is pretty generic. I'd like to avoid having to maintain a seperate script for every triggered job. Is there a way to tell the script which rule triggered the job? I expect I'll be triggering a Perl script.

Re: tell a script what compliance rule triggered it

Expert
Posts: 231
3557     0

Probably John Belamaric will answer if that job detail is available via the API.

But for similar scripts triggered via policy violations, I've always had the script check the same rules via CLI.  That prevents a script from modifying a config that is already compliant.  And it can be safely run manually without relying on correct rules and policies.

Re: tell a script what compliance rule triggered it

Adviser
Posts: 353
3557     0
It doesn’t look like there is an automated way to do this. However, if you create an input to the script for this, then you can just set it in the Triggered Job definition, since you have to create one of those for each policy rule you want to associate the script with.

John

Re: tell a script what compliance rule triggered it

AndrewSJ
Techie
Posts: 15
3557     0

Good point. That will get me what I'm looking for. Thanks for the input.

Showing results for 
Search instead for 
Do you mean 

Recommended for You