02-01-2023 12:53 AM
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
02-01-2023 01:04 AM
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.
02-20-2023 03:06 AM
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.
02-20-2023 04:14 AM
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
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