码迷,mamicode.com
首页 > 其他好文 > 详细

Check Point防火墙导入.csv格式的对象

时间:2020-03-29 23:57:17      阅读:62      评论:0      收藏:0      [点我收藏+]

标签:obj   modified   member   none   hid   管理   ali   cts   word   

Step1:将.csv格式的对象上传到管理服务器,本例为/home/admin目录

[[email protected]:0]# pwd
/home/admin
[[email protected]:0]# ls -l
total 8
-rw-r----- 1 admin root 625 Aug 15 22:18 host.csv
-rw-r----- 1 admin root 1036 Aug 15 22:18 network.csv
[[email protected]:0]#

Step2:使用cat命令查看network

[[email protected]:0]# cat network.csv
Name,IPv4 address,Mask,IPv6 address,Mask 6,NAT Properties,Comments,Tags,Modifier,Last Modified
CP_default_Office_Mode_addresses_pool,172.16.10.0,255.255.255.0,,-1,Hide behind: All,Used as a default for Office Mode. If deleted; it must be specified for each gateway individually (in the *** Clients page Advanced section),,System,Tue Oct 09 21:49:33 CST 2018,
IPv6_Link_Local_Hosts,,,fe80::,64,None,IPv6 link-local addresses,,System,Tue Oct 09 21:46:09 CST 2018,
Net_10.10.1.0,10.10.1.0,255.255.255.0,,-1,None,深圳本部外网 ,,admin,Thu Aug 15 16:24:44 CST 2019,
Net_10.133.1.0,10.133.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部服务器 ,,admin,Thu Aug 15 16:17:30 CST 2019,
Net_10.158.1.0,10.158.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部办公,,admin,Thu Aug 15 16:16:56 CST 2019,
Net_10.179.1.0,10.179.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部O2O,,admin,Thu Aug 15 16:19:47 CST 2019,
Net_10.201.1.0,10.201.1.0,255.255.255.0,,-1,Hide behind: All,深圳本部***,,admin,Thu Aug 15 16:20:10 CST 2019,
[[email protected]:0]#

Step3:导入network对象到管理服务器

[[email protected]:0]# mgmt_cli add network --batch network.csv
Username: admin
Password:
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 3: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 4: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 5: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 6: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 7: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Line 8: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [Comments]"

Executed command failed. Changes are discarded.
[[email protected]:0]#

Groups: mgmt_cli add group --batch groups_full_csv.csv
Add objects to groups: mgmt_cli set group --batch group-members_full_csv.csv
Dynamic Objects: mgmt_cli add dynamic-object --batch dynamic-objects_full_csv.csv
Address Ranges: mgmt_cli add address-range --batch address-ranges_full_csv.csv
Domain Objects: mgmt_cli add dns-domain --batch dns-domain.csv

Check Point防火墙导入.csv格式的对象

标签:obj   modified   member   none   hid   管理   ali   cts   word   

原文地址:https://blog.51cto.com/14773580/2482878

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!