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

View network host objects in SMART CLI

Jump to solution

Hi Mates, is there a way to export all network object from SMART CLI into .csv?

0 Kudos
1 Solution

Accepted Solutions
Employee++
Employee++

Re: View network host objects in SMART CLI

Jump to solution

Hi

Not sure about the CLI but you can easily achieve it from SmartConsole using the Object Explorer.

Just press on Ctrl + E, select the relevant categories you want and apply Actions > Export

 

Object Explorer.JPG

HTH

Tal

0 Kudos
3 Replies
Maik
Silver

Re: View network host objects in SMART CLI

Jump to solution

Take a look at this solution:

 

https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/CLI-API-Example-for-exporting-imp...

 

It exports all kinds of objects to a csv, alternatively you can also create a small script on your own to just pass the network objects to a csv (e.g. via bash mgmt_cli commands and jq or via python).

0 Kudos
Employee++
Employee++

Re: View network host objects in SMART CLI

Jump to solution

Hi

Not sure about the CLI but you can easily achieve it from SmartConsole using the Object Explorer.

Just press on Ctrl + E, select the relevant categories you want and apply Actions > Export

 

Object Explorer.JPG

HTH

Tal

0 Kudos
Lijo_mathai
Nickel

Re: View network host objects in SMART CLI

Jump to solution

Thanks, this works. We can see IP netmask info once we export specific Objects say Hosts under Network Objects will exports all the host objects created in the database.

0 Kudos