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

smart tasks example

Hi All

I have a question about smart task. I need to run a smart task that executes only if a particular policy is installed to a specific firewall. Reading through the documentation i see the below which should get me what I want but my question is how to see the trigger data?

 

Run Script - Runs a pre-defined Repository Script. The script gets the trigger's data as the first
parameter. The trigger's data is passed as Base64 encoded JSON data, which can be decoded to
implement custom business logic.

 

If i can see the trigger data, i can use that logic in my script to parse the policy name and firewall and decide on some action based on those values. The dilemma I am having is how to see the trigger data that gets passed? Can anyone share any example of this.

 

Thanks

 

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

It looks like it’s passed to your script as a base64 encoded JSON blob.
There’s an example here: https://community.checkpoint.com/t5/Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/1133...

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events