ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1905
Views
0
Helpful
2
Replies
Highlighted

CSM 4.3 export ASA rulebase to HTML / CSV

Hi.

Is there a way to export the rulebase to csv/html using CSM 4.3?  I know it can be done through ASDM but looking at the rules in ASDM, they are flattened out into single object source, destination & port per line.  Is it possible to keep it in the format as per CSM (network object groups, service groups, etc..)

2 REPLIES 2
Highlighted
Beginner

Hello,I have this problem too

Hello,

I have this problem too. Also using CSM 4.7. Can anyone help?

Thank you

Andrea

Highlighted
Cisco Employee

There are two ways to do it

There are two ways to do it.

Simple method is to go the rules page, select all rules, right click and copy. Then paste it in new MS Excel file. You can save it any format you like. If you paste in Notepad or Notepad++, add <html><body> and </body></html> tags before and after the text you pasted, then save the file with .html extension. This will look exactly like what you see in CSM. If you use object-groups, you won't be able to see what's there inside the object group.

A little more difficult method is to use CSM REST API. You can read the rules in any access rules policy. The response contains all the rules in that policy along with definitions of all the policy objects in XML format. You can then modify the XML output to any format you like, depends on how creative you want to be with it.

 

Regards,

Chetan