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

Script in creating object and add in a object group using CLI

What is the command line script to create object/object group and add object in an object group. Like hundred of objects (IPs).

I am using Checkpoint R80.10.

0 Kudos
3 Replies
Highlighted
Sapphire

There is no such CLI script - you have to write your own using CP commands from GAiA clish or the Management API.

Highlighted
Pearl

mgmt add group name "group_name"

mgmt add host name "host_name_1" ip-address "x.x.x.1" groups.1 "group_name"
mgmt add host name "host_name_2" ip-address "x.x.x.2" groups.1 "group_name"
Highlighted

Thanks! Tested okay.

0 Kudos