Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Matthew_Rippe
Employee
Employee

Create list of IPS protections set for packet capture in a specific profile

Used mgmt_cli to generate a json formatted file (ips.json) of all IPS protections (mgmt_cli show threat-protections details-level full) but cannot figure out how to parse out only the profiles with packet capture enabled.

cat ips.json | jq ".protections [] | [.name, .profiles]"

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

This is set at the profile level, yet you're looking at the individual threat protections.
You should look at the profile you're interested in.
Here's what I came up with:

mgmt_cli -r true --format json show threat-profile name "Optimized PhoneBoy" | jq '.overrides[] | {name: .protection, capture: .final["capture-packets"]} | select (.capture == "true")'

When you look at the different protections in a profile, there are three different settings: Original (what the protection is set to by default), Override (what the override says to do), and Final (what policy will ultimately apply).

Also note your dump of IPS protections likely only includes a limited number of protections (50) unless you called it multiple times with limit/offset.
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

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

    APAC: What's new in R82

    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

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

    APAC: What's new in R82
    CheckMates Events