I'm having an issue trying to export a policy from my R81.10 management server , but I'm getting the following error listed below:
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]# python import_export_package.py -op export --debug on
Please enter a Policy Package name to export:
"Policy-NY-UAT"
Please select a login method:
1. Enter user credentials manually
2. Login as Root
3. Use an existing session file
4. Use an existing session UID
99. Back
1
The script will run with the following parameters:
Export Access-Control layers = True
Export NAT layers = True
Export Threat-Prevention layers = True
Export HTTPS Inspection layers = True
Output-file name = None
Management Server IP = 127.0.0.1
Management Server Port = 443
Management Server Domain = None
1. Change Settings
2. Run
99. Back
1
Please select a setting to change:
1. Disable export of Access-Control Rulebases
2. Disable export of Threat-Prevention Rulebases
3. Disable export of NAT Rulebases
4. Disable export of HTTPS Inspection Rulebases
5. Output file name
6. Change Management Server IP
7. Change Management Server Port
8. Change the domain name
99. Back
5
Please enter the output file name:
'test'
The script will run with the following parameters:
Export Access-Control layers = True
Export NAT layers = True
Export Threat-Prevention layers = True
Export HTTPS Inspection layers = True
Output-file name = test
Management Server IP = 127.0.0.1
Management Server Port = 443
Management Server Domain = None
1. Change Settings
2. Run
99. Back
2
Please enter your username:
'admin'
Please enter your password:
Traceback (most recent call last):
File "import_export_package.py", line 26, in <module>
args = process_arguments(arg_parser)
File "/home/admin/ExportImportPolicyPackage-master/utils.py", line 113, in process_arguments
log_file = open(args.log_file, "w",newline='')
TypeError: 'newline' is an invalid keyword argument for this function
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]#
[Expert@ny2-cp-sms1:0]# clish -c 'show version all'
Product version Check Point Gaia R81.10
OS build 335
OS kernel version 3.10.0-957.21.3cpx86_64
OS edition 64-bit
[Expert@ny2-cp-sms1:0]#
any help is appreciated