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

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

Jump to solution

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
Highlighted

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

Jump to solution

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
Highlighted

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

Jump to solution

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

Highlighted

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

Jump to solution
Thanks! Works like a charm!
0 Kudos