cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3095
Views
0
Helpful
2
Replies

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

adalessandro
Level 1
Level 1

Hello,

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

Thank you

Andrea

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

Review Cisco Networking products for a $25 gift card