Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
cdrik
Participant
Jump to solution

How to change all Track fields in policy R80.20

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
cdrik
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
G_W_Albrecht
Legend
Legend

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.

CCSE CCTE CCSM SMB Specialist
cdrik
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"
...

G_W_Albrecht
Legend
Legend

Yes, the API is a helpful toolbox...

CCSE CCTE CCSM SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events