AnsweredAssumed Answered

Changing NAT settings via API

Question asked by Neil ZInk on Oct 19, 2017
Latest reply on Oct 20, 2017 by Neil ZInk

Dear CheckMates

 

I am trying to batch out large number of NAT changes on existing objects.  CLI command looks like:

 

set host name "NatTest" nat-settings.auto-rule "true" nat-settings.ip-address "X.X.X.X" nat-settings.method "hide" nat-settings.install-on "checkPointCluster"

 

I tried using Batch method with following CSV.

name,nat-settings.auto-rule ,nat-settings.ip-address ,nat-settings.method ,nat-settings.install-on

NatTest,TRUE,x.x.x.x,hide,checkPointCluster

The Batch method did not like NAT settings:

 

C:\Program Files (x86)\CheckPoint\SmartConsole\R80.10\PROGRAM>mgmt_cli.exe -m x.x.x.x -d x.x.x.x set host --batch \scripts\nattest.csv --ignore-errors false --debug on

Username:

Password:

Line 2: code: "generic_err_invalid_parameter"

message: "Parameter [auto-rule] value is not valid (full path: nat-settings.auto-rule)"

 

Can you make these kinds of changes via batch mode?  If not, is there another method?

 

Thanks

Outcomes