SRX Services Gateway
Reply
Contributor
paulkil
Posts: 127
Registered: ‎11-05-2010
0
Accepted Solution

export policy rules

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

Distinguished Expert
MMcD
Posts: 528
Registered: ‎07-20-2010
0

Re: export policy rules

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.

MMcD [JNCIS-SEC, CCNA, MCP]
____________________________________________________

[Please Mark My Solution Accepted if it Helped, Kudos are Appreciated Too]
Contributor
paulkil
Posts: 127
Registered: ‎11-05-2010
0

Re: export policy rules

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

Distinguished Expert
MMcD
Posts: 528
Registered: ‎07-20-2010

Re: export policy rules

It exports the actual policies.  See the attached screenshot for an example

MMcD [JNCIS-SEC, CCNA, MCP]
____________________________________________________

[Please Mark My Solution Accepted if it Helped, Kudos are Appreciated Too]
Contributor
paulkil
Posts: 127
Registered: ‎11-05-2010
0

Re: export policy rules

MMcD,

I tried that and it's working beautifully.

 

Thanks so much,

 

Paul

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.