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

How to list and export the objects member from the network group in checkpoint smartconsole R80.40

How to list and export the objects member from the network group in checkpoint smartconsole R80.40 or in GAIA R80.40

 

0 Kudos
5 Replies
PhoneBoy
Admin
Admin

It entirely depends on what is in the group and what precise details you need from said group.
If you want just the names of the objects in said group, something like:

mgmt_cli -r true show-group name "groupname" --format json | jq '.members[] | [.name] |@csv' -r

Or you can use a script like the following: https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-d... 

 

0 Kudos
Exonix
Advisor

I'm getting an error:

[Expert@ws01:0]# mgmt_cli -r true show-group name "Group1" --format json | jq '.members[] | [.name] |@csv' -r
parse error: Invalid numeric literal at line 1, column 9
Logout failed

what is wrong?

0 Kudos
PhoneBoy
Admin
Admin

What is the output of: mgmt_cli -r true show-group name "Group1" --format json

0 Kudos
Uj4ng
Explorer
Explorer

And what if I want to export the users object complete with authentication methods?

0 Kudos
PhoneBoy
Admin
Admin

To get the name and authentication method, I imagine something like

mgmt_cli -r true show-users details-level full --format json | jq '.objects[] | [.name] [."authentication-method"] |@csv' -r

If you want additional details to be included, then you would modify the jq portion of the CLI command accordingly.
You can see the fields available here: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-users~v1.9%20 
Also, if you have lots of users, you may have to issue this command multiple times using the offset parameter to request the next set of results.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events