<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script to export Access Control rules and Objects from FMC in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217667#M1117135</link>
    <description>&lt;P&gt;try this one it can export your ACP's&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rnwolfe/fmc-tools" target="_blank"&gt;https://github.com/rnwolfe/fmc-tools&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 19:51:21 GMT</pubDate>
    <dc:creator>tryingtofixit</dc:creator>
    <dc:date>2024-10-30T19:51:21Z</dc:date>
    <item>
      <title>Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217287#M1117103</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My FMC version is 7.4.2&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/mapp-john/fmc-api" target="_blank"&gt;GitHub - mapp-john/fmc-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Shabeeb&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 10:32:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217287#M1117103</guid>
      <dc:creator>SHABEEB KUNHIPOCKER</dc:creator>
      <dc:date>2024-10-30T10:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217290#M1117104</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/316042"&gt;@SHABEEB KUNHIPOCKER&lt;/a&gt;&amp;nbsp;what is the error?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 10:36:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217290#M1117104</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-10-30T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217307#M1117106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for the response. Please find the error below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File "C:\Users\shabeeb\fmc-api-master\fmc-api-master\fmc_api_tools.py", line 2307, in &amp;lt;module&amp;gt;&lt;BR /&gt;export_acp_rules(server,headers,api_uuid)&lt;BR /&gt;~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\shabeeb\fmc-api-master\fmc-api-master\fmc_api_tools.py", line 1476, in export_acp_rules&lt;BR /&gt;temp_list = parse_rule(fmc_name,rule)&lt;BR /&gt;^^^^^^^^&lt;BR /&gt;NameError: name 'fmc_name' is not defined&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 10:53:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217307#M1117106</guid>
      <dc:creator>SHABEEB KUNHIPOCKER</dc:creator>
      <dc:date>2024-10-30T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217314#M1117107</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; So its saying the variable fmc_name is being referenced in the export_acp_rules function but hasn't been defined in the scope of that function, this typically arises when a variable is used before it has been assigned a value.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;It could be a couple of things, check the&amp;nbsp;export_acp_rules function and the&amp;nbsp; fmc_name is defined before it's used, check if fmc_ name iss supposed to be a parameter or a variable that holds a specific value (like the name of the FMC), make sure thats defined. There could be more, without seeing your code its hard to say. Can you share the entire script?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Oct 2024 11:01:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217314#M1117107</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-10-30T11:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217316#M1117109</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did not create the code. I found the code in the below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/mapp-john/fmc-api" target="_blank" rel="nofollow noopener noreferrer"&gt;GitHub - mapp-john/fmc-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 11:03:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217316#M1117109</guid>
      <dc:creator>SHABEEB KUNHIPOCKER</dc:creator>
      <dc:date>2024-10-30T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217374#M1117117</link>
      <description>&lt;P&gt;Any update guys?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:43:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217374#M1117117</guid>
      <dc:creator>SHABEEB KUNHIPOCKER</dc:creator>
      <dc:date>2024-10-30T12:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217391#M1117118</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/316042"&gt;@SHABEEB KUNHIPOCKER&lt;/a&gt;&amp;nbsp;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.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:08:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217391#M1117118</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-10-30T13:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script to export Access Control rules and Objects from FMC</title>
      <link>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217667#M1117135</link>
      <description>&lt;P&gt;try this one it can export your ACP's&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rnwolfe/fmc-tools" target="_blank"&gt;https://github.com/rnwolfe/fmc-tools&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 19:51:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/script-to-export-access-control-rules-and-objects-from-fmc/m-p/5217667#M1117135</guid>
      <dc:creator>tryingtofixit</dc:creator>
      <dc:date>2024-10-30T19:51:21Z</dc:date>
    </item>
  </channel>
</rss>

