Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Ram1
Participant

going to expire rules alerts

HI Team,

 

do we have a script or playbook which alerts us 15 days before that the rule is going to expire, please help us on the same. 

 

1) it might be shell script

2)it might be ansible module

 

also, which ansible modules are used for below automations.

 

1) extracting expired rulebases

2) extracting going to expire rule bases

3) un used objects

4)duplicate objects

overall policy and change management

 

Regards,

Ram

 

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Ansible is not a suitable tool for any of these tasks.

You’d have to use a script that basically calls the API and jq to filter the results.
Specifically, you'd look for rules that have something other than "any" in the Time field.
You can use this as a starting point: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-...

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events