06-01-2012 12:44 AM
Hi guys,
I'm just wondering is there an "easy" way of exporting the policy rules from the junos config into an excel sheet?
Many thanks,
Paul
Solved! Go to Solution.
06-01-2012 01:40 AM
Hi Paul,
Pretty easily. If you open up Putty or an SSH program and set logging to on, choose a log file location and log into your box.
user@srx#edit security policies user@srx#show | display xml | no-more
Open your log file up and cut from above <security> and below </security> and save it as an xml file, then just open with excel.
06-01-2012 01:59 AM
Hi MMcD,
and thanks for your reply.
Does what you suggest actually export the "policy rules" or the logs of these rules?
I'm looking to do the former so we can have a consice list in excel format of all our firewall rules corporatre wide.
Regards,
Paul
06-01-2012 02:11 AM
It exports the actual policies. See the attached screenshot for an example
06-01-2012 04:31 AM
MMcD,
I tried that and it's working beautifully.
Thanks so much,
Paul