Script to export Access Control rules and Objects from FMC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 03:36 AM
@SHABEEB KUNHIPOCKER what is the error?
Connect with me https://bigevilbeard.github.io
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 04:01 AM
Connect with me https://bigevilbeard.github.io
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Connect with me https://bigevilbeard.github.io
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 05:43 AM
Any update guys?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 12:51 PM
try this one it can export your ACP's
