Hi fellow Check Mates,
I'm getting an error message when trying to create multiple access control rules using mgmt_cli and referencing a csv file. This is being run on an MDS server hence the -d option
MDS R81.40
api version : 1.8.1
Commands:
mgmt_cli login -r true -d xxx.xxx.xxx.xxx > id.txt
mgmt_cli login -r true -d xxx.xxx.xxx.xxx --batch filename.csv
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [action]"
This is the contents of filename.csv (other rules omitted for brevity reasons)
layer,position.bottom,source,destination,service.1,service.2,service.3,action,track,comments
MY_POLICY_NAME Network,<my section name>,host_object,group_object,TCP111,TCP222,TCP333,Accept,Log,<my comments>
If I run the command manually below it works fine and adds the rule
mgmt_cli -s id.txt add access-rule "MY_POLICY_NAME Network" position.bottom "my section name" source "host_object" destination "group_object" service.1 "TCP111" service.2 "TCP222" service.3 "TCP333" action "Accept" track "Log" comments "my comments"
I thought it might be something to do with the format of the csv file so I ran the dos2unix command but got the same error message.
If anyone has any ideas, let me know. Thanks for reading.
Nick