11-28-2012 01:29 AM - edited 02-21-2020 04:47 AM
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..)
09-21-2015 01:01 AM
Hello,
I have this problem too. Also using CSM 4.7. Can anyone help?
Thank you
Andrea
09-27-2015 08:22 AM
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
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