cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
246
Views
5
Helpful
5
Replies

How do I parse firewall configuration

xinhuan_zheng
Beginner
Beginner

I have Cisco ASA Firewall configuration. We typically save the configuration in text format. Is there an easy way to parse the configuration to extract all Object Network information & output in CSV format? The CSV format I'd like is:

NAME, DESCRIPTION, TYPE, IP, NETMASK

TEST, TEST HOST, HOST, 1.2.3.4, 255.255.255.255

Do I need to write my own parsing program to do that? We also have Cisco Firewall Management Center. Can I accomplish it using FMC?

1 Accepted Solution

Accepted Solutions

Asmat Sulaiman
Beginner
Beginner

Hi Xinhuan,

You can simply use a command "show running-config object in-line" this will provide the output you need. Hope this help

View solution in original post

5 Replies 5

KyoCode
Beginner
Beginner

Hi,

If you're currently using ASDM, you can download all of them with a right click to CSV, if you need an automation, you might want to download the API bundle and install it. Please, keep me posted which one do you need.

Also, I've created this code a long time ago that will connect to the FMC RestAPI and download the ACP to a csv file: https://github.com/AngelIV23/cisco-fmc-excel-from-json

try it out and let me know

KyoCode
Beginner
Beginner

I just saw my code and I think is a little frustrating to see so many errors, let me update it 

Asmat Sulaiman
Beginner
Beginner

Hi Xinhuan,

You can simply use a command "show running-config object in-line" this will provide the output you need. Hope this help

That's what I need. Thank you!

I'm glad that helped. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: