10-30-2024 03:32 AM
Can someone help me with python scripts to export access control policy and objects to CSV format. I tried the below script but it is giving me error.
My FMC version is 7.4.2
Thanks and Regards
Shabeeb
10-30-2024 03:36 AM
@SHABEEB KUNHIPOCKER what is the error?
10-30-2024 03:53 AM
Hi,
Thanks a lot for the response. Please find the error below
File "C:\Users\shabeeb\fmc-api-master\fmc-api-master\fmc_api_tools.py", line 2307, in <module>
export_acp_rules(server,headers,api_uuid)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shabeeb\fmc-api-master\fmc-api-master\fmc_api_tools.py", line 1476, in export_acp_rules
temp_list = parse_rule(fmc_name,rule)
^^^^^^^^
NameError: name 'fmc_name' is not defined
10-30-2024 04:01 AM
10-30-2024 04:03 AM
10-30-2024 06:08 AM
@SHABEEB KUNHIPOCKER i understand this, but you are running your code locally to an FMC, and it is failing. I am asking to show me the code you are running which is getting you the error message please.
10-30-2024 05:43 AM
Any update guys?
10-30-2024 12:51 PM
try this one it can export your ACP's
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide