Juniper SRX - Sanitize Configuration Before Migrate
Showing results for 
Search instead for 
Did you mean: 

The Enhanced LIVEcommunity Experience is finally here! Learn all about it.

L7 Applicator
Did you find this article helpful? Yes No
0% helpful (0/1)

Generate the XML configuration by running this command from the CLI


show configuration | display xml | no-more


Before you import a Juniper SRX into Expedition, there are some manual checks we can do to verify the migration will work.


  1. The configuration must start only with <configuration> tag, you have to replace everything before or inside that tag by only <configuration>
  2. The configuration must end with </configuration> any other text after it must be removed

        Here's an example on how a SRX config should look when you edit:




  • For integrity validation is a good practice try to open the XML file from FIREFOX browser becasue if something is breaking the XML integretity FIREFOX will notice to you which line has an invalid character. You must replace the invalid character before upload it to Expedition

This is an example of wrong configuration. It seems someone created the file but stored with wrong jumps on it, so Firefox will complain about the format.



If we edit the file, we can see this at line 911 of the config file:




To fix this example, we have to remove the break line after </asc to:



Fix all the problems before importing into Expedition.


Hope this helps.

Rate this article:
L0 Member

Hi I tried doing  the same and able to open the file in the firefox without any error ,but when i load in expedition im getting xml remove attributes in the configuration tag  and not loading .


XML file opens perfectly in all the browsers without any error ...Please advice

L0 Member

I would suggest using an online XML viewer to see what is broken in the XML, such as :

Register or Sign-in
Article Dashboard
Version history
Last update:
‎10-07-2019 08:31 AM
Updated by:
Retired Member