Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Matthew_LaComb
Explorer
Jump to solution

API Command via Gaia CLISH to retrieve group object members in Global policy

All:

 

I can successfully get the members in the SmartConsole Command Line using this:

 

show group name gGRP-MY-OBJECT-DESTS

 

However, the group has 477 objects and me trying to copy and paste out of the Checkpoint Command Line just doesn't work.  So - on to using an SSH client.  I am in the management server and need to be in the Global policy area; however if I'm in the management server itself I don't appear to be in any policy at all and don't know how to switch... Can someone assist?

0 Kudos
1 Solution

Accepted Solutions
Maarten_Sjouw
Champion
Champion

from Expert mode you can use mgmt_cli -d Global login -u <user> -p <password> > id.txt
mgmt_cli show group <group> -s id.txt
That should give you all you need, you are on Global level at that moment, from there you can add any command with the-s id.txt
When done and made changes you type:
mgmt_cli publish -s id.txt
mgmt_cli logout -s id.txt

Regards, Maarten

View solution in original post

2 Replies
Maarten_Sjouw
Champion
Champion

from Expert mode you can use mgmt_cli -d Global login -u <user> -p <password> > id.txt
mgmt_cli show group <group> -s id.txt
That should give you all you need, you are on Global level at that moment, from there you can add any command with the-s id.txt
When done and made changes you type:
mgmt_cli publish -s id.txt
mgmt_cli logout -s id.txt

Regards, Maarten
Matthew_LaComb
Explorer
Thanks! Works like a charm!
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