cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
363
Views
1
Helpful
3
Replies

Automate to fetch Policy base from ASDM

ssan239
Level 1
Level 1

Hi All,

We need to fetch the Policy export from the ASDM in the XML format for almost 200Firewalls. So thought of automating it. Which is the best way to do it? Any suggestions and inputs on this will be helpful. So the plan is automating the Login to ASDM, Export Policy in XML formal and close ASDM. Anyway we can do this?

Regards,

Sanjay S

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

ASDM is a just GUI tool to manage, You can use Python script directly connect to ASA and fetch ACL rules. rather using ASDM

you can find some good examples in Git. or cisoc dev network.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thank you Balaji,

I already have scripted to fetch the ACLs from CLI. But we are using a tool which suggests to upload ASDM rule base export to optimize the rule base. So planning to try something from rest API or any other method to export rules from ASDM.

I can only assume that when you were told to use ASDM to export the rule set those that told you this meant by using API as this uses HTTPS when sending calls to the ASA.  Here are a couple links to help you get started.

https://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.html

https://www.cisco.com/c/en/us/td/docs/security/asa/api/asa-api-rn.html

 

--
Please remember to select a correct answer and rate helpful posts
Review Cisco Networking for a $25 gift card