
write
Writes the running configuration file (up to 6MB) to a file on the local disk, a network server, or to the terminal.
Syntax: write {file filename | network | terminal} [interface | system | ospf | isis | bgp | ip-route | policy]
file filename
Writes the running configuration file to a file named filename on the local disk.
network
Writes the running configuration file to a network server.
terminal
Displays the running configuration file on the terminal.
interface
Writes/displays only the interface information from the running configuration file.
ospf
Writes/displays only OSPF configuration information from the running configuration file.
system
Writes/displays only general system information (server_id, hostname).
isis
Writes/displays only IS-IS configuration information from the running configuration file.
bgp
Writes/displays only BGP configuration information from the running configuration file.
policy
Writes/displays only routing policy information from the running configuration file.
traffic-engineering
Writes/displays only the Traffic Engineering configuration information from the running configuration file.
qos
Writes/displays only the QoS Manager configuration information from the running configuration file.
<cr>
Writes/displays the entire running configuration file.
Description: The running configuration file contains configuration information used when the server is started.
NOTE Only files that are 6 MB or smaller can be written with the write command.
Use the write command with the file keyword to write the running configuration file to a file on the local disk.
Use the write command with the network keyword to write the running configuration file to a network server.
Use the write command with the terminal keyword to display the running configuration file on the terminal.
Use the interface argument to write or display only information about interfaces from the running configuration file.
Use the system argument to write or display general information about the system from the running configuration file.
Use the ospf argument to write or display only information about OSPF from the running configuration file.
Use the isis argument to write or display only information about IS-IS from the running configuration file.
Use the bgp argument to write or display only information about BGP from the running configuration file.
Use the policy argument to write or display only information about routing policy from the running configuration file.
Use the traffic-engineering argument to write or display only information about Traffic Engineering from the running configuration file.
Use the qos argument to write or display only information about the Qos Manager from the running configuration file.
Use the write command with no argument to write or display all information in the running configuration file.
Factory Default: None.
Command Mode: Executive.
Example 1: In the following example the write terminal interface command displays configuration about only the interfaces to the terminal:
router#write terminal interface
!
interface Loopback 0
ip address 11.1.1.1 255.255.255.0
!
interface Ethernet 0
ip address 10.1.2.157 255.255.255.0
!
.
.
.
NOTE Sample output for all examples is truncated for brevity.
Example 2: In the following is sample the write terminal policy command displays only routing policy information:
router#write terminal policy
route-map sandy 10
match ip address sandy1 sandy2 sandy3 sandy4
match ip address sandy5 sandy6
match as-path _411_500_
.
.
.
Example 3: The following example writes the running configuration file to a file named test.cfg on a remote host:
router#write network
Host Address [255.255.255.255]:10.5.1.190
Destination filename: testfile.cfg
Write file testfile.cfg to host 10.5.1.190 [yes | no] ? yes
Write config...Complete
Related Commands: configure
copy
show boot
show running-config
show startup-config
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: ConfigFileMgrCmd.fm
HTML File Name: ConfigFileMgrCmd28.html
Last Updated: 02/25/05 at 14:26:17