If you change the configuration while in Manual Commit mode and issue the
reload
command without saving the changes to the startup configuration, the system provides
a warning, allowing you to save the changes before reloading.
You can use the
include-text-config
keyword with the
copy running-configuration
command to add the text configuration to the system configuration file in compressed
format. Storing the text configuration in compressed format reduces the size of the
system configuration file and the amount of space that the file occupies on the local
flash card or network host. If you change from commit mode to manual-commit mode,
the configuration that is available at that point in time is written into the .cnf file. A Perl
script is provided in the Tools folder of the software image bundle that you can download
from the Juniper Networks website, depending on whether you want to install the software
on an ERX model or an E120 and E320 model, shipped with your router that enables you
to view the text configuration in a configuration file that contains both binary and text
configuration. The Perl script supports multiple platforms. The “Usage and
Troubleshooting document for desktop tool” file in PDF format provides an explanation
of how to extract the system configuration file, using the extractScrFromCnf.pl script.
For more information about using the Perl script, see “Using the Desktop Tool for Viewing
Uncompressed Text Configuration” on page 267.
NOTE:
To avoid any discrepancies between the text-generated file and the
system configuration file, do not change the configuration when the
copy
running-configuration
command is running.
copy running-configuration
•
Use to save the current configuration to a system configuration (*.cnf) file.
•
Use the
include-text-config
keyword to add the text configuration to the system
configuration file in compressed format.
•
Although this command is available in either Automatic Commit mode or Manual
Commit mode, use this command only in Manual Commit mode. Issuing this command
in Automatic Commit mode has no effect.
•
The destination filename must have a .cnf extension.
•
The destination file can be either a local or a network file.
•
If you want to restore a previously saved configuration, use the
boot config
cnfFileName
command.
•
Example 1—Saves the current configuration on the router to the system 2.cnf file
host1#
copy running-configuration system2.cnf
•
Example 2—Saves the current configuration on the router to the system 2.cnf file and
adds the text configuration to the system 2.cnf file in compressed format
host1#
copy running-configuration system2.cnf include-text-config
•
There is no
no
version.
•
See copy running-configuration.
265
Copyright © 2010, Juniper Networks, Inc.
Chapter 5: Managing the System
Содержание JUNOSE 11.3
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Страница 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Страница 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Страница 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Страница 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Страница 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Страница 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Страница 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Страница 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Страница 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Страница 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Страница 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Страница 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...