Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant

How to change all Track fields in policy R80.20

Jump to solution

Hello,

I want to set Track field to Log for all our rules. We are running R80.20.

I have followed sk109766 but it is not working. I guess this is only working for R77.30.

Is there an other way to do that beside doing it manually with Smartconsole ?

regards,

Cedric

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Participant

ok I have finally found the command to do it in CLI:

# mgmt_cli set access-rule rule-number 1 layer "Security" track.type "Log"

It is also working with a CSV as source to be able to update all rules:

# mgmt_cli set access-rule layer "Security" -b rulebase_log.csv

In CSV file:

rule-number,track.type,layer
1,"Log","Security"
2,"Log","Security"
...

View solution in original post

3 Replies
Highlighted
Champion
Champion

sk109766 is for R77.xx versions, but not for R80.xx - most configuration parameters are now saved in SQL database instead of in file rulebases_5_0.fws. So the contemporary way to do this is Management API.

Highlighted
Participant

ok I have finally found the command to do it in CLI:

# mgmt_cli set access-rule rule-number 1 layer "Security" track.type "Log"

It is also working with a CSV as source to be able to update all rules:

# mgmt_cli set access-rule layer "Security" -b rulebase_log.csv

In CSV file:

rule-number,track.type,layer
1,"Log","Security"
2,"Log","Security"
...

View solution in original post

Highlighted
Champion
Champion

Yes, the API is a helpful toolbox...

0 Kudos