- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Export information about all group objects to ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Export information about all group objects to CSV
Is there a way to export all group object information to CSV?
Using 'mgmt_cli - r true show group name' groupname '-- format json | jq'. members [] | [. 'name',. 'subnet4',. 'subnet mask',. 'ipv4 address first',. 'ipv4 address last',. 'ipv4 address'] | @ csv' - r>net_group. csv 'can only export individual group object information.
How do I write it if I want to export the information of all group objects at once?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would have to write a script to iterate through all the groups.
Further, the commands you wrote won’t work of the groups contain more items than a single API call can provide.
You may want to use something like: https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-group-members-t...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would have to write a script to iterate through all the groups.
Further, the commands you wrote won’t work of the groups contain more items than a single API call can provide.
You may want to use something like: https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-group-members-t...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi PhoneBoy,
I see, but I'm not quite sure how to write the script. Could you give me a simple example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What I provided a link to was exactly that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @zhangchuang
check this: https://support.checkpoint.com/results/sk/sk120342
Here you can export the whole package, and the group members will be in html/xml format in the struckture.
Akos
\m/_(>_<)_\m/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AkosBakos,
I tried this, but it wasn't that intuitive, I mainly wanted to export it to a table.
