Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EOL/EOE] Importing Firewall DM (output created by 'get config data') into NSM modeled device



Article ID: KB12454 KB Last Updated: 18 Oct 2020Version: 3.0
Note: A product listed in this article has either reached hardware End of Life (EOL) OR software End of Engineering (EOE).  Refer to End of Life Products & Milestones for the EOL, EOE, and End of Support (EOS) dates.
This article details how to take the config generated on the firewall using the 'get config data' command and import it into a modeled device in NSM. This could be usefull for making configuration changes in NSM for a device you are not yet ready to import into NSM. The format of the 'get config data' is DM format, which is similar to XML.


How do you import the 'get config data' from the firewall into a modeled device in NSM?


  1. Run 'get config data' on a firewall.
  2. Save the output from 'get config data' into a text file.  It is suggested to use the .dm extension on that file, but it is not required.  (For this example, the saved filename will be
  3. Find the :header section in the saved file (
  4. Create a device in NSM that matches the values of the :header section.
  5. Export the config from the modeled device using Device -> Configuration -> Export Device Config to File   (For this example, the saved filename will be
  6. Copy the :fileInfo section from the exported modeled device file ( into the top of the file ( from the firewall.
  7. Copy the :type line from the exported modeled device file ( immediately below the :fileInfo section of the file,    
  8. Save the modified config file (
  9. In NSM, choose Device -> Configuration -> Import device config from file
  10. Select the device you modeled
  11. Choose your modified file from the file selection window (
  12. Click import
  13. Config is imported.
Modification History:
2020-10-18: Tagged article for EOL/EOE.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search