Creating objects with dbedit
From cpwiki.net
Contents |
creating a new host
dbedit> create host_plain object_name
dbedit> modify network_objects object_name ipaddr 192.168.1.1
dbedit> update network_objects object_name
creating a new network
dbedit> create network network_name
dbedit> modify network_objects network_name ipaddr 192.168.1.0
dbedit> modify network_objects network_name netmask 255.255.255.0
dbedit> update network_objects network_name
creating and adding objects to a group
dbedit> create network_object_group group_name
dbedit> addelement network_objects group_name network_objects:object_name
dbedit> update network_objects group_name
deleting an object
dbedit> delete network_objects <object_name>
running the script
dbedit -s 192.168.2.100 -u Administrator -p abc123 -f network_script.txt