Knowledge Center Search


 

How to display set commands from the configuration on a Juniper J-series router?

  [KB10819] Show KB Properties

  [KB10819] Hide KB Properties

Categories:
Knowledge Base ID: KB10819
Last Updated: 29 Jun 2010
Version: 3.0

Summary:
How to display the configuration commands that would generate the current router configuration?

Problem or Goal:
Is there a way to display the router's configuration in other than the default programming-like structured format?

Solution:

You can use the command show | display set in configuration mode at the appropriate hierarchy prompt.

Example:

[edit]
user@Router# show | display set
set version 8.4R2.4
set system host-name Router
set system root-authentication encrypted-password "$1$CRPN8km3$iw4nXb.CL7UdcZ2Z3V/0U."
set system services ssh
set system services web-management http interface ge-0/0/0.0
set system syslog user * any emergency
set system syslog file messages any any
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set interfaces ge-0/0/0 unit 0 family inet address 192.168.100.1/24
set interfaces ge-0/0/3 speed 100m
set interfaces ge-0/0/3 link-mode full-duplex
set interfaces ge-0/0/3 gigether-options no-auto-negotiation
set interfaces ge-0/0/3 unit 0 family inet address 172.16.21.162/23
set routing-options static route 0.0.0.0/0 next-hop 172.16.21.170

[edit]
user@Router#

Purpose:
Configuration

Related Links:

 

 

ASK THE KB

Question or KB ID:


 


 

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