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

    CheckMates Events