Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Download Software
Research a Problem Login required
Case Management Login required
Contract & Product Management Login required
Technical Documentation
Documentation Archive
Enterprise MIBs
File Format Help
Glossary
Portable Libraries
End-of-Life Products
Contact Support
Guidelines and Policies
Security Resources
Home > Support > Technical Documentation > Junos OS > Merging Examples
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • T Series
  • Overview of a Routing Matrix with a TX Matrix Plus Router
  • Roadmap for Configuring the Routing Matrix
  • Example Configuration for the Routing Matrix
  • Upgrading the Junos OS on the Routing Matrix
  • Additional Information
  • Routing Matrix with a TX Matrix Plus Router Solutions Page
 

Merging Examples

If you want to use the examples in this manual, you can use the load merge or the load merge relative command. These commands cause the software to merge the incoming configuration into the current candidate configuration. If the example configuration contains the top level of the hierarchy (or multiple hierarchies), the example is a full example. In this case, use the load merge command.

If the example configuration does not start at the top level of the hierarchy, the example is a snippet. In this case, use the load merge relative command.

These procedures are described in the following sections:

  • Merging a Full Example
  • Merging a Snippet
  • For More Information

Merging a Full Example

To merge a full example, follow these steps:

  1. From the HTML or PDF version of the manual, copy a configuration example into a text file, save the file with a name, and copy the file to a directory on your router.

    For example, copy the following configuration to a file and name the file ex-script.conf. Copy the ex-script.conf file to the /var/tmp directory on your router.

    system {scripts {commit {file ex-script.xsl;}}}interfaces {em0 {disable;unit 0 {family inet {address 10.0.0.1/24;}}}}
  2. Merge the contents of the file into your router configuration by issuing the load merge configuration mode command:

    [edit]user@host# load merge /var/tmp/ex-script.confload complete

Merging a Snippet

To merge a snippet, follow these steps:

  1. From the HTML or PDF version of the manual, copy a configuration snippet into a text file, save the file with a name, and copy the file to a directory on your router.

    For example, copy the following snippet to a file and name the file ex-script-snippet.conf. Copy the ex-script-snippet.conf file to the /var/tmp directory on your router.

    commit { file ex-script-snippet.xsl; }
  2. Move to the hierarchy level that is relevant for this snippet by issuing the following configuration mode command:

    [edit]user@host# edit system scripts [edit system scripts]
  3. Merge the contents of the file into your router configuration by issuing the load merge relative configuration mode command:

    [edit system scripts]user@host# load merge relative /var/tmp/ex-script-snippet.confload complete

For More Information

For more information about using the load command, see Loading a Configuration from a File and Examples: Loading a Configuration from a File in the Junos OS CLI User Guide PDF Document.

 

Related Documentation

  • T Series
  • Overview of a Routing Matrix with a TX Matrix Plus Router
  • Roadmap for Configuring the Routing Matrix
  • Example Configuration for the Routing Matrix
  • Upgrading the Junos OS on the Routing Matrix
  • Additional Information
  • Routing Matrix with a TX Matrix Plus Router Solutions Page
 

Published: 2011-10-26

 
  • About Juniper
  • The New Network
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out