Iosfs App
Iosfs App
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT
SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE
OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public
domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH
ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF
DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this
URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership
relationship between Cisco and any other company. (1110R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display
output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in
illustrative content is unintentional and coincidental.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
© 2013 Cisco Systems, Inc. All rights reserved.
CONTENTS
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 iii
Contents
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
iv OL-28266-01
A P P E N D I X A
Working with the Cisco IOS File System,
Configuration Files, and Software Bundles
This appendix describes how to manipulate the Catalyst 3850 switch flash file system, how to copy
configuration files, and how to install and copy bundle files on a Catalyst 3850 switch or a Catalyst 3850
switch stack.
Unless otherwise noted, the term switch refers to a standalone switch and to a switch stack.
Note For complete syntax and usage information for the commands used in this chapter, see the switch
command reference for this release.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-1
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
This example shows a switch stack. In this example, the stack master is stack member 1; the file system
on stack member 2 is displayed as flash-2, the file system on stack member 3 is displayed as flash-3 and
so on. The example also shows the crashinfo directories and a USB flash drive plugged into the stack
master.
Switch# show file systems
File Systems:
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-2 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Field Value
Size(b) Amount of memory in the file system in bytes.
Free(b) Amount of free memory in the file system in bytes.
Type Type of file system.
disk—The file system is for a flash memory device, USB flash, and crashinfo file.
network—The file system for network devices; for example, an FTP server or and HTTP server.
nvram—The file system is for a NVRAM device.
opaque—The file system is a locally generated pseudo file system (for example, the system) or a download
interface, such as brimux.
unknown—The file system is an unknown type.
Flags Permission for file system.
ro—read-only.
rw—read/write.\
wo—write-only.
Prefixes Alias for file system.
crashinfo:—Crashinfo file.
flash:—Flash file system.
ftp:—FTP server.
http:—HTTP server.
https:—Secure HTTP server.
nvram:—NVRAM.
null:—Null destination for copies. You can copy a remote file to null to find its size.
rcp:—Remote Copy Protocol (RCP) server.
scp:—Session Control Protocol (SCP) server.
system:—Contains the system memory, including the running configuration.
tftp:—TFTP network server.
xmodem:—Obtain the file from a network machine by using the Xmodem protocol.
ymodem:—Obtain the file from a network machine by using the Ymodem protocol.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-3
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Command Description
dir [/all] [filesystem:][filename] Displays a list of files on a file system.
show file systems Displays more information about each of the files on a file system.
show file information file-url Displays information about a specific file.
show file descriptors Displays a list of open file descriptors. File descriptors are the internal representations
of open files. You can use this command to see if another user has a file open.
To display information about the driver text object in the CISCO-MEMORY-POOL-MIB, use the show
memory privileged EXEC command:
Switch# show memory
System memory : 1939252K total, 1317664K used, 621588K free, 118580K kernel reserved
Lowest(b) : 54189544
Command Purpose
Step 1 dir filesystem: Displays the directories on the specified file system.
For filesystem:, use flash: for the system board flash device.
Example: To access flash partitions of switch members in a stack, use flash-n where n is
Switch# dir flash: the stack member number. For example, flash-4.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-4 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Command Purpose
Step 2 cd directory_name Changes to the directory of interest.
The command example shows how to change to the directory named
new_configs.
Example:
Switch# cd new_configs
Step 3 pwd Displays the working directory.
Example:
Switch# pwd
Command Purpose
Step 1 dir filesystem: Displays the directories on the specified file system.
For filesystem:, use flash: for the system board flash device.
Example:
Switch# dir flash:
Step 2 mkdir directory_name Creates a new directory. Directory names are case sensitive and are limited to
45 characters between the slashes (/); the name cannot contain control
characters, spaces, deletes, slashes, quotes, semicolons, or colons.
Example:
Switch# mkdir old_configs
Step 3 dir filesystem: Verifies your entry.
Example:
Switch# dir flash:
To remove a directory with all its files and subdirectories, use the delete /force /recursive
filesystem:/file-url privileged EXEC command.
Use the /recursive keyword to delete the named directory and all subdirectories and the files contained
in it. Use the /force keyword to suppress the prompting that confirms a deletion of each file in the
directory. You are prompted only once at the beginning of this deletion process.
For filesystem, use flash: for the system board flash device. For file-url, enter the name of the directory
to be deleted. All the files in the directory and the directory are removed.
Caution When files and directories are deleted, their contents cannot be recovered.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-5
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Copying Files
To copy a file from a source to a destination, use the copy source-url destination-url privileged EXEC
command. For the source and destination URLs, you can use running-config and startup-config
keyword shortcuts. For example, the copy running-config startup-config command saves the currently
running configuration file to the NVRAM section of flash memory to be used as the configuration during
system initialization.
You can also copy from special file systems (xmodem:, ymodem:) as the source for the file from a
network machine that uses the Xmodem or Ymodem protocol.
Network file system URLs include ftp:, rcp:, and tftp: and have these syntaxes:
• FTP—ftp:[[//username [:password]@location]/directory]/filename
• RCP—rcp:[[//username@location]/directory]/filename
• SCP—scp:[[//username@location]/directory]/filename
• TFTP—tftp:[[//location]/directory]/filename
Local writable file systems include flash:.
Some invalid combinations of source and destination exist. Specifically, you cannot copy these
combinations:
• From a running configuration to a running configuration
• From a startup configuration to a startup configuration
• From a device to the same device (for example, the copy flash: flash: command is invalid)
For specific examples of using the copy command with configuration files, see the “Working with
Configuration Files” section on page A-10.
Deleting Files
When you no longer need files on a flash memory device, you can permanently delete them.
• Use the delete command to remove any type of file.
• Use the software clean command to remove unused package files and provisioning files.
Use the delete /recursive [filesystem:]/file-url privileged EXEC command when you want to delete files
on the flash device including the current package and provisioning files. Use the /recursive keyword to
delete a directory and all subdirectories and the files contained in it. Use the filesystem: option to specify
the device from which to delete the files. If you omit the filesystem: option, the switch uses the default
device specified by the cd command. Use the file-url option, to specify the path (directory) and the name
of the file to be deleted.
When you attempt to delete files, the system prompts you to confirm the deletion of each file. Use the
/force keyword to suppress system prompts to confirm the deletion of each file. You are prompted only
once at the beginning of the deletion process.
We recommend that you use the software clean command instead of the delete command when you are
removing package files and provisioning files . The software clean command leaves the running
package files and the current provisioning (packages.cnf) file intact.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-6 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Beginning in privileged EXEC mode, follow these steps to delete unnecessary package files and
provisioning files on the flash memory device:
Command Purpose
Step 1 software clean flash:/file-url Deletes unused files from the local flash memory device.
For flash:/file-url, specify the location of the files you wish to delete. If a path
is not specified, the path is the boot path.
Example:
Switch# software clean flash:
Step 2 yes Specifies that the listed files be deleted.
or or
no Specifies that the deletion process be canceled.
This example shows how to use the command to delete unused files on each switch in a two-switch stack:
3850-Stack# software clean
Preparing clean operation ...
[1 2]: Cleaning up unnecessary package files
[1 2]: No path specified, will use booted path flash:packages.conf
[1 2]: Cleaning flash:
[1]: Preparing packages list to delete ...
cat3850-base.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-drivers.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-infra.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-iosd-universalk9.SSA.150-8.79.EMP1.pkg
File is in use, will not delete.
cat3850-platform.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-wcm.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
[2]: Preparing packages list to delete ...
cat3850-base.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-drivers.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-infra.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-iosd-universalk9.SSA.150-8.79.EMP1.pkg
File is in use, will not delete.
cat3850-platform.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
cat3850-wcm.SSA.03.08.79.EMP1.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
[1]: Files that will be deleted:
cat3850-base.SSA.03.08.72.EMP2.pkg
cat3850-drivers.SSA.03.08.72.EMP2.pkg
cat3850-infra.SSA.03.08.72.EMP2.pkg
cat3850-iosd-universalk9.SSA.150-8.72.EMP2.pkg
cat3850-platform.SSA.03.08.72.EMP2.pkg
cat3850-universalk9.03.08.79.EMP1.bin
cat3850-wcm.SSA.03.08.72.EMP2.pkg
packages.conf.01-
[2]: Files that will be deleted:
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-7
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
cat3850-base.SSA.03.08.72.EMP2.pkg
cat3850-drivers.SSA.03.08.72.EMP2.pkg
cat3850-infra.SSA.03.08.72.EMP2.pkg
cat3850-iosd-universalk9.SSA.150-8.72.EMP2.pkg
cat3850-platform.SSA.03.08.72.EMP2.pkg
cat3850-universalk9.03.08.79.EMP1.bin
cat3850-wcm.SSA.03.08.72.EMP2.pkg
packages.conf.00-
When the switch is running in installed mode and you attempt to delete the current package files or
provisioning file, the system displays additional caution messages. The following example shows the
warning message and confirmation prompts displayed when you try to delete a package file that is in use:
Switch# delete flash:cat3k_caa-base.SSA.03.09.19.EMP.pkg
Delete filename [cat3k_caa-base.SSA.03.09.19.EMP.pkg]?
Delete flash:/cat3k_caa-base.SSA.03.09.19.EMP.pkg? [confirm]
This package file is currently in use and is part of the committed package set.
Deleting it may cause system instability and may prevent the system from booting on the
next reload.
Note The warning message and confirmation prompt are not displayed when the specified package file is not
in use; the specified file is not a package file; or the delete command’s /force option is used.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-8 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with the Flash File System
Command Purpose
Step 1 archive tar /create Creates a file and add files to it.
destination-url flash:/file-url
For destination-url, specify the destination URL alias for the local or network
file system and the name of the file to create. The -filename. is the file to be
created. These options are supported:
Example:
Switch# archive tar /create • Local flash file system syntax:
tftp:172.20.10.30/saved. flash:
flash:/new-configs
• FTP syntax:
ftp:[[//username[:password]@location]/directory]/-filename.
• RCP syntax:
rcp:[[//username@location]/directory]/-filename.
• TFTP syntax:
tftp:[[//location]/directory]/-filename.
For flash:/file-url, specify the location on the local flash file system in which
the new file is created. You can also specify an optional list of files or
directories within the source directory to add to the new file. If none are
specified, all files and directories at this level are written to the newly created
file.
Step 2 archive tar /table source-url Displays the contents of a file.
For source-url, specify the source URL alias for the local or network file
Example: system. The -filename. is the file to display. These options are supported:
Switch# archive tar /table • Local flash file system syntax:
flash:/new-configs flash:
• FTP syntax:
ftp:[[//username[:password]@location]/directory]/-filename.
• RCP syntax:
rcp:[[//username@location]/directory]/-filename.
• TFTP syntax:
tftp:[[//location]/directory]/-filename.
You can also limit the file displays by specifying a list of files or directories
after the file. Only those files appear. If none are specified, all files and
directories appear.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-9
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 3 archive tar /xtract source-url Extracts a file into a directory on the flash file system.
flash:/file-url [dir/file...]
For source-url, specify the source URL alias for the local file system. The
-filename. is the file from which to extract files. These options are supported:
Example: • local flash file system syntax:
Switch# archive tar /xtract flash:
tftp:/172.20.10.30/saved.
flash:/new-configs • FTP syntax:
ftp:[[//username[:password]@location]/directory]/-filename.
• RCP syntax:
rcp:[[//username@location]/directory]/-filename.
• TFTP syntax:
tftp:[[//location]/directory]/-filename.
For flash:/file-url [dir/file...], specify the location on the local flash file system
from which the file is extracted. Use the dir/file... option to specify a list of files
or directories within the file to be extracted. If none are specified, all files and
directories are extracted.
Step 4 more [/ascii | /binary | /ebcdic] Displays the contents of any readable file, including a file on a remote file
file-url system.
Example:
Switch# more flash:
/new-configs
This example shows how to create a file. This command writes the contents of the new-configs directory
on the local flash device to a file named saved. on the TFTP server at 172.20.10.30:
Switch# archive tar /create tftp:172.20.10.30/saved. flash:/new-configs
This example shows how to extract the contents of a file located on the TFTP server at 172.20.10.30:
Switch# archive tar /xtract tftp:/172.20.10.30/saved. flash:/new-configs
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-10 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
You can copy (download) configuration files from a TFTP, FTP, or RCP server to the running
configuration or startup configuration of the switch. You perform this task when you want to:
• Restore a backed-up configuration file.
• Use the configuration file for another switch. For example, you might add another switch to your
network and want it to have a configuration similar to the original switch. By copying the file to the
new switch, you can change the relevant parts rather than recreating the whole file.
• Load the same configuration commands on all the switches in your network so that all the switches
have similar configurations.
You can copy (upload) configuration files from the switch to a file server by using TFTP, FTP, or RCP.
You might perform this task to back up a current configuration file to a server before changing its
contents so that you can later restore the original configuration file from the server.
The protocol you use depends on which type of server you are using. The FTP and RCP transport
mechanisms provide faster performance and more reliable delivery of data than TFTP. These
improvements are possible because FTP and RCP are built on and use the TCP/IP stack, which is
connection-oriented.
• Guidelines for Creating and Using Configuration Files, page A-11
• Configuration File Types and Location, page A-12
• Creating a Configuration File By Using a Text Editor, page A-12
• Copying Configuration Files By Using TFTP, page A-13
• Copying Configuration Files By Using FTP, page A-14
• Copying Configuration Files By Using RCP, page A-18
• Clearing Configuration Information, page A-22
• Replacing and Rolling Back Configurations, page A-22
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-11
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Note The copy {ftp: | rcp: | tftp:} system:running-config privileged EXEC command loads the
configuration files on the switch as if you were entering the commands at the command line. The switch
does not erase the existing running configuration before adding the commands. If a command in the
copied configuration file replaces a command in the existing configuration file, the existing command is
erased. For example, if the copied configuration file contains a different IP address in a particular
command than the existing configuration, the IP address in the copied configuration is used. However,
some commands in the existing configuration might not be replaced or negated. In this case, the resulting
configuration file is a mixture of the existing configuration file and the copied configuration file, with
the copied configuration file having precedence.
To restore a configuration file to an exact copy of a file stored on a server, copy the configuration file
directly to the startup configuration (by using the copy {ftp: | rcp: | tftp:} nvram:startup-config
privileged EXEC command), and reload the switch.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-12 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Note You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files.
To restart the daemon, either stop the inetd process and restart it, or enter a fastboot
command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). For more
information on the TFTP daemon, see the documentation for your workstation.
• Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in
the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity
to the TFTP server by using the ping command.
• Ensure that the configuration file to be downloaded is in the correct directory on the TFTP server
(usually /tftpboot on a UNIX workstation).
• For download operations, ensure that the permissions on the file are set correctly. The permission
on the file should be world-read.
• Before uploading the configuration file, you might need to create an empty file on the TFTP server.
To create an empty file, enter the touch filename command, where filename is the name of the file
you will use when uploading it to the server.
• During upload operations, if you are overwriting an existing file (including an empty file, if you had
to create one) on the server, ensure that the permissions on the file are set correctly. Permissions on
the file should be world-write.
Step 1 Copy the configuration file to the appropriate TFTP directory on the TFTP server.
Step 2 Verify that the TFTP server is properly configured by referring to the “Preparing to Download or Upload
a Configuration File By Using TFTP” section on page A-13.
Step 3 Log into the switch through the console port, the Ethernet management port, or a Telnet session.
Step 4 Download the configuration file from the TFTP server to configure the switch.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-13
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Specify the IP address or hostname of the TFTP server and the name of the file to download.
Use one of these privileged EXEC commands:
• copy tftp:[[[//location]/directory]/filename] system:running-config
• copy tftp:[[[//location]/directory]/filename] nvram:startup-config
• copy tftp:[[[//location]/directory]/filename] flash-[n]:/directory/startup-config
The configuration file downloads, and the commands are executed as the file is parsed line-by-line.
This example shows how to configure the software from the file tokyo-confg at IP address 172.16.2.155:
Switch# copy tftp://172.16.2.155/tokyo-confg system:running-config
Configure using tokyo-confg from 172.16.2.155? [confirm] y
Booting tokyo-confg from 172.16.2.155:!!! [OK - 874/16000 bytes]
Step 1 Verify that the TFTP server is properly configured by referring to the “Preparing to Download or Upload
a Configuration File By Using TFTP” section on page A-13.
Step 2 Log into the switch through the console port, the Ethernet management port, or a Telnet session.
Step 3 Upload the switch configuration to the TFTP server. Specify the IP address or hostname of the TFTP
server and the destination filename.
Use one of these privileged EXEC commands:
• copy system:running-config tftp:[[[//location]/directory]/filename]
• copy nvram:startup-config tftp:[[[//location]/directory]/filename]
• copy flash-[n]:/directory/startup-config tftp:[[[//location]/directory]/filename]
The file is uploaded to the TFTP server.
This example shows how to upload a configuration file from a switch to a TFTP server:
Switch# copy system:running-config tftp://172.16.2.155/tokyo-confg
Write file tokyo-confg on host 172.16.2.155? [confirm] y
#
Writing tokyo-confg!!! [OK]
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-14 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-15
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode on the switch.
This step is required only if you override the default remote
username or password.
Example:
Switch# configure terminal
Step 2 ip ftp username username (Optional) Changes the default remote FTP username.
Example:
Switch(confg)# ip ftp username NetAdmin1
Step 3 ip ftp password password (Optional) Changes the default FTP password.
Example:
Switch(confg)# ip ftp password adminpassword
Step 4 end Returns to privileged EXEC mode.
Example:
Switch(confg)# end
Step 5 copy Copies the configuration file from the FTP server to the
ftp:[[[//[username[:password]@]location]/directory] running configuration or to the startup configuration file.
/filename] system:running-config
or
copy
ftp:[[[//[username[:password]@]location]/directory]
/filename] nvram:startup-config
Example:
Switch# copy ftp system:running-config
This example shows how to copy a configuration file named host1-confg from the home directory for
user netadmin1 on the remote server with an IP address of 172.16.101.101 and to load and run those
commands on the switch:
Switch# copy ftp://netadmin1:[email protected]/host1-confg system:running-config
Configure using host1-confg from 172.16.101.101? [confirm]
Connected to 172.16.101.101
Loading 1112 byte file host1-confg:![OK]
Switch#
%SYS-5-CONFIG: Configured from host1-config by ftp from 172.16.101.101
This example shows how to specify a remote username of netadmin1. The software copies the
configuration file host2-confg from the home directory for user netadmin1 on the remote server with an
IP address of 172.16.101.101 to the switch startup configuration.
Switch# configure terminal
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-16 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
username or password.
Example:
Switch# configure terminal
Step 2 ip ftp username username (Optional) Changes the default remote username.
Example:
Switch(confg)# ip ftp username NetAdmin1
Step 3 ip ftp password password (Optional) Changes the default password.
Example:
Switch(confg)# ip ftp password adminpassword
Step 4 end Returns to privileged EXEC mode.
Example:
Switch(confg)# end
Step 5 copy system:running-config Copies the specified configuration file to the specified
ftp:[[[//[username[:password]@]location]/directory] location on the FTP server.
/filename]
or
copy nvram:startup-config
ftp:[[[//[username[:password]@]location]/directory]
/filename]
Example:
Switch# copy system:running-config ftp:
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-17
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
This example shows how to copy the running configuration file named switch2-confg to the netadmin1
directory on the remote host with an IP address of 172.16.101.101:
Switch# copy system:running-config ftp://netadmin1:[email protected]/switch2-confg
Write file switch2-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Switch#
This example shows how to store a startup configuration file on a server by using FTP to copy the file:
Switch# configure terminal
Switch(config)# ip ftp username netadmin2
Switch(config)# ip ftp password mypass
Switch(config)# end
Switch# copy nvram:startup-config ftp:
Remote host[]? 172.16.101.101
Name of configuration file to write [switch2-confg]?
Write file switch2-confg on host 172.16.101.101?[confirm]
![OK]
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-18 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Before you begin downloading or uploading a configuration file by using RCP, do the following:
• Ensure that the workstation acting as the RCP server supports the remote shell (rsh).
• Ensure that the switch has a route to the RCP server. The switch and the server must be in the same
subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the
RCP server by using the ping command.
• If you are accessing the switch through the console or a Telnet session and you do not have a valid
username, make sure that the current RCP username is the one that you want to use for the RCP
download. You can enter the show users privileged EXEC command to view the valid username. If
you do not want to use this username, create a new RCP username by using the ip rcmd
remote-username username global configuration command to be used during all copy operations.
The new username is stored in NVRAM. If you are accessing the switch through a Telnet session
and you have a valid username, this username is used, and you do not need to set the RCP username.
Include the username in the copy command if you want to specify a username for only that copy
operation.
• When you upload a file to the RCP server, it must be properly configured to accept the RCP write
request from the user on the switch. For UNIX systems, you must add an entry to the .rhosts file for
the remote user on the RCP server. For example, suppose that the switch contains these
configuration lines:
hostname Switch1
ip rcmd remote-username User0
If the switch IP address translates to Switch1.company.com, the .rhosts file for User0 on the RCP
server should contain this line:
Switch1.company.com Switch1
For more information, see the documentation for your RCP server.
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
username.
Example:
Switch# configure terminal
Step 2 ip rcmd remote-username username (Optional) Specifies the remote username.
Example:
Switch(config)# ip rcmd remote-username
netadmin1
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-19
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 3 end Returns to privileged EXEC mode.
Example:
Switch(confg)# end
Step 4 copy Using RCP, copies the configuration file from a network
rcp:[[[//[username@]location]/directory]/filename] server to the running configuration or to the startup
system:running-config configuration file.
or
copy
rcp:[[[//[username@]location]/directory]/filename]
nvram:startup-config
Example:
Switch# copy rcp: system:running-config
This example shows how to copy a configuration file named host1-confg from the netadmin1 directory
on the remote server with an IP address of 172.16.101.101 and load and run those commands on the
switch:
Switch# copy rcp://[email protected]/host1-confg system:running-config
Configure using host1-confg from 172.16.101.101? [confirm]
Connected to 172.16.101.101
Loading 1112 byte file host1-confg:![OK]
Switch#
%SYS-5-CONFIG: Configured from host1-config by rcp from 172.16.101.101
This example shows how to specify a remote username of netadmin1. Then it copies the configuration
file host2-confg from the netadmin1 directory on the remote server with an IP address of 172.16.101.101
to the startup configuration:
Switch# configure terminal
Switch(config)# ip rcmd remote-username netadmin1
Switch(config)# end
Switch# copy rcp: nvram:startup-config
Address of remote host [255.255.255.255]? 172.16.101.101
Name of configuration file[rtr2-confg]? host2-confg
Configure using host2-confg from 172.16.101.101?[confirm]
Connected to 172.16.101.101
Loading 1112 byte file host2-confg:![OK]
[OK]
Switch#
%SYS-5-CONFIG_NV:Non-volatile store configured from host2-config by rcp from
172.16.101.101
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-20 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
username.
Example:
Switch# configure terminal
Step 2 ip rcmd remote-username username (Optional) Specifies the remote username.
Example:
Switch(config)# ip rcmd remote-username
netadmin1
Step 3 end Returns to privileged EXEC mode.
Example:
Switch(confg)# end
Step 4 copy system:running-config Using RCP, copies the specified configuration file from the
rcp:[[[//[username@]location]/directory]/filename] switch running to the specified network server.
or
copy nvram:startup-config
rcp:[[[//[username@]location]/directory]/filename]
Example:
Switch# copy system:running-config rcp:
This example shows how to copy the running configuration file named switch2-confg to the netadmin1
directory on the remote host with an IP address of 172.16.101.101:
Switch# copy system:running-config rcp://[email protected]/switch2-confg
Write file switch-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Switch#
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-21
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Caution You cannot restore the startup configuration file after it has been deleted.
Archiving a Configuration
The configuration archive provides a mechanism to store, organize, and manage an archive of
configuration files. The configure replace privileged EXEC command increases the configuration
rollback capability. As an alternative, you can save copies of the running configuration by using the copy
running-config destination-url privileged EXEC command, storing the replacement file either locally
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-22 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
or remotely. However, this method lacks any automated file management. The configuration replacement
and rollback feature can automatically save copies of the running configuration to the configuration
archive.
You use the archive config privileged EXEC command to save configurations in the configuration
archive by using a standard location and filename prefix that is automatically appended with an
incremental version number (and optional timestamp) as each consecutive file is saved. You can specify
how many versions of the running configuration are kept in the archive. After the maximum number of
files are saved, the oldest file is automatically deleted when the next, most recent file is saved. The show
archive privileged EXEC command displays information for all the configuration files saved in the
configuration archive.
The Cisco IOS configuration archive, in which the configuration files are stored and available for use
with the configure replace command, is in any of these file systems: FTP, HTTP, RCP, TFTP.
Replacing a Configuration
The configure replace privileged EXEC command replaces the running configuration with any saved
configuration file. When you enter the configure replace command, the running configuration is
compared with the specified replacement configuration, and a set of configuration differences is
generated. The resulting differences are used to replace the configuration. The configuration
replacement operation is usually completed in no more than three passes. To prevent looping behavior
no more than five passes are performed.
You can use the copy source-url running-config privileged EXEC command to copy a stored
configuration file to the running configuration. When using this command as an alternative to the
configure replace target-url privileged EXEC command, note these major differences:
• The copy source-url running-config command is a merge operation and preserves all the commands
from both the source file and the running configuration. This command does not remove commands
from the running configuration that are not present in the source file. In contrast, the configure
replace target-url command removes commands from the running configuration that are not present
in the replacement file and adds commands to the running configuration that are not present.
• You can use a partial configuration file as the source file for the copy source-url running-config
command. You must use a complete configuration file as the replacement file for the configure
replace target-url command.
You can also use the configure replace command to roll back changes that were made since the previous
configuration was saved. Instead of basing the rollback operation on a specific set of changes that were
applied, the configuration rollback capability reverts to a specific configuration based on a saved
configuration file.
If you want the configuration rollback capability, you must first save the running configuration before
making any configuration changes. Then, after entering configuration changes, you can use that saved
configuration file to roll back the changes by using the configure replace target-url command.
You can specify any saved configuration file as the rollback configuration. You are not limited to a fixed
number of rollbacks, as is the case in some rollback models.
Configuration Guidelines
Follow these guidelines when configuring and performing configuration replacement and rollback:
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-23
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
• Make sure that the switch has free memory larger than the combined size of the two configuration
files (the running configuration and the saved replacement configuration). Otherwise, the
configuration replacement operation fails.
• Make sure that the switch also has sufficient free memory to execute the configuration replacement
or rollback configuration commands.
• Certain configuration commands, such as those pertaining to physical components of a networking
device (for example, physical interfaces), cannot be added or removed from the running
configuration.
– A configuration replacement operation cannot remove the interface interface-id command line
from the running configuration if that interface is physically present on the device.
– The interface interface-id command line cannot be added to the running configuration if no
such interface is physically present on the device.
• When using the configure replace command, you must specify a saved configuration as the
replacement configuration file for the running configuration. The replacement file must be a
complete configuration generated by a Cisco IOS device (for example, a configuration generated by
the copy running-config destination-url command).
Note If you generate the replacement configuration file externally, it must comply with the format of files
generated by Cisco IOS devices.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Example:
Switch# configure terminal
Step 2 archive Enters archive configuration mode.
Example:
Switch(config)# archive
Step 3 path url Specifies the location and filename prefix for the files in the configuration
archive.
Example:
Switch(config-archive)# path
flash:myconfiguration
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-24 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Configuration Files
Command Purpose
Step 4 maximum number (Optional) Sets the maximum number of archive files of the running
configuration to be saved in the configuration archive.
number—Maximum files of the running configuration file in the configuration
Example:
Switch(config-archive)# archive. Valid values are from 1 to 14. The default is 10.
maximum 14 Note Before using this command, you must first enter the path archive
configuration command to specify the location and filename prefix for
the files in the configuration archive.
Step 5 time-period minutes (Optional) Sets the time increment for automatically saving an archive file of
the running configuration in the configuration archive.
minutes—Specifies how often, in minutes, to automatically save an archive file
Example:
Switch(config-archive)# of the running configuration in the configuration archive.
time-period 1440
Step 6 end Returns to privileged EXEC mode.
Step 7 show running-config (Optional) Displays the contents of the running configuration.
Example:
Switch# show running-config
Step 8 copy running-config (Optional) Saves the current configuration to NVRAM.
startup-config
Example:
Switch# copy running-config
startup-config
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-25
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Command Purpose
Step 1 archive config (Optional) Saves the running configuration file to the configuration archive.
Note Enter the path archive configuration command before using this
Example: command.
Switch# archive config
Step 2 configure replace target-url [list] Replaces the running configuration file with a saved configuration file.
[force] [time seconds] [nolock]
target-url—URL (accessible by the file system) of the saved configuration file
that is to replace the running configuration, such as the configuration file
created in Step 2 by using the archive config privileged EXEC command.
Example:
Switch# configure replace list—Display a list of the command entries applied by the software parser
flash:startup-config time 120 during each pass of the configuration replacement operation. The total number
of passes also appears.
force— Replace the running configuration file with the specified saved
configuration file without prompting you for confirmation.
time seconds—Specify the time (in seconds) within which you must enter the
configure confirm command to confirm replacement of the running
configuration file. If you do not enter the configure confirm command within
the specified time limit, the configuration replacement operation is
automatically stopped. (In other words, the running configuration file is
restored to the configuration that existed before you entered the configure
replace command).
Note You must first enable the configuration archive before you can use the
time seconds command line option.
Example:
Switch# show running-config
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-26 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-27
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
For information about how to prepare before you begin downloading or uploading a Cisco IOS XE
bundle file with TFTP, see the “Preparing to Download or Upload a Configuration File By Using TFTP”
section on page A-13.
Beginning in privileged EXEC mode, do the following to download a software bundle file from a TFTP
server:
Command Purpose
Step 1 copy tftp:[[//location]/directory]/bundle-name Upload the currently running bundle file to the TFTP server.
flash:
• For //location, specify the IP address of the TFTP server.
• For /directory/bundle-name specify the directory (optional)
Example: and the name of the software bundle file to be uploaded.
Switch# copy Directory and bundle names are case sensitive.
tftp:/cat3k_caa-universalk9.SPA.03.02.00
.SE.150-1.EX.bin flash:
You can upload a bundle file from the switch to a TFTP server. You can later download this bundle to
the switch or to another switch of the same type.
Beginning in privileged EXEC mode, do the following to upload a bundle to a TFTP server:
Command Purpose
Step 1 copy flash: Upload the currently running bundle file to the TFTP server.
tftp:[[//location]/directory]/bundle-name
• For //location, specify the IP address of the TFTP server.
• For /directory/bundle-name specify the directory (optional)
Example: and the name of the software bundle file to be uploaded.
Switch# copy flash: Directory and bundle names are case sensitive.
tftp:/cat3k_caa-universalk9.SPA.03.02.00
.SE.150-1.EX.bin
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-28 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
For information about how to prepare before you begin downloading or uploading a Cisco IOS XE
bundle file with TFTP, see the “Preparing to Download or Upload a Configuration File By Using FTP”
section on page A-15.
You can download a new bundle file from and FTP server.
Beginning in privileged EXEC mode, follow these steps to download a new Cisco IOS XE bundle from
an FTP server:
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
username or password.
Example:
Switch# configure terminal
Step 2 ip ftp username username (Optional) Changes the default remote username.
Example:
Switch(config)# ip ftp username Admin01
Step 3 ip ftp password password (Optional) Changes the default password.
Example:
Switch(config)# ip ftp password
adminpassword
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-29
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Command Purpose
Step 4 end Returns to privileged EXEC mode.
Example:
Switch(config)# end
Step 5 copy ftp:[[//location]/directory]/bundle_name (Optional) Downloads the bundle files from the FTP server to
flash: the switch.
• For //username[:password], specify the username and
password; these must be associated with an account on the
Example:
Switch# copy FTP server. For more information, see the “Preparing to
ftp:/cat3k_caa-universalk9.SPA.03.02.00. Download or Upload Bundle Files By Using FTP” section
SE.150-1.EX.bin flash: on page A-29.
• For @location, specify the IP address of the FTP server.
• For /directory/bundle_name, specify the directory
(optional) and the bundles to download. Directory and
bundle file names are case sensitive.
You can upload an Cisco IOS XE bundle from the switch to an FTP server. You can later download this
bundle to the same switch or to another switch of the same type.
Beginning in privileged EXEC mode, follow these steps to upload a bundle to an FTP server:
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
Example: username or password.
Switch# configure terminal
Step 2 ip ftp username username (Optional) Changes the default remote username.
Example:
Switch(config)# ip ftp username Admin01
Step 3 ip ftp password password (Optional) Changes the default password.
Example:
Switch(config)# ip ftp password adminpassword
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-30 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Command Purpose
Step 4 end Returns to privileged EXEC mode.
Example:
Switch(config)# end
Step 5 copy flash: Uploads the bundle file from the switch to the FTP server.
ftp:[[//[username[:password]@]location]/directory]/
• For //username:password, specify the username and
bundle_name
password. These must be associated with an account on
the FTP server.
Example: • For @location, specify the IP address of the FTP server.
Switch# copy flash:
ftp:/cat3k_caa-universalk9.SPA.03.02.00. • For /directory/bundle_name, specify the directory and
SE.150-1.EX.bin the name of the software bundle to be uploaded.
Directory and bundle names are case sensitive.
For information about preparing to download or upload bundle files, see “Preparing to Download or
Upload a Configuration File By Using RCP” section on page A-18.
Beginning in privileged EXEC mode, follow these steps to download a new Cisco IOS XE bundle from
an RCP server.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
This step is required only if you override the default remote
username.
Example:
Switch# configure terminal
Step 2 ip rcmd remote-username username (Optional) Specifies the remote username.
Example:
Switch(config)# ip rcmd remote-username
Admin01
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-31
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Command Purpose
Step 3 end Returns to privileged EXEC mode.
Example:
Switch(config)# end
Step 4 copy rcp: Downloads the bundle file from the RCP server to the switch.
[[[//[username@]location]/directory]/
• For //username, specify the username. For the RCP copy
bundle_name] flash:
request to execute successfully, an account must be defined on
the network server for the remote username. For more
information, see the “Preparing to Download or Upload a
Example:
Switch# copy rcp: Cisco IOS XE Bundle File By Using RCP” section on
//[email protected]/bundle1 flash: page A-31.
• For @location, specify the IP address of the RCP server.
• For /directory/bundle_name, specify the directory (optional)
and the software bundle to download. Directory and bundle
file names are case sensitive.
You can upload a software bundle file from the switch to an RCP server. You can later download this
bundle to the same switch or to another switch of the same type.
Beginning in privileged EXEC mode, follow these steps to upload a software bundle file to an RCP
server:
Command Purpose
Step 1 configure terminal (Optional) Enters global configuration mode.
This step is required only if you override the default remote
Example: username.
Switch# configure terminal
Step 2 ip rcmd remote-username username (Optional) Specify the remote username.
Example:
Switch(config)# ip rcmd remote-username
Admin01
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-32 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Command Purpose
Step 3 end Return to privileged EXEC mode.
Example:
Switch(config)# end
Step 4 copy flash: rcp: Uploads the software bundle on the switch to the RCP
[[[//[username@]location]/directory]/bundle_name] server.
• For //username, specify the username; for the RCP copy
request to execute, define an account on the network
Example:
Switch# copy flash: server for the remote username. For more information,
rcp://[email protected]/bundle1 see the “Preparing to Download or Upload a Cisco IOS
XE Bundle File By Using RCP” section on page A-31.
• For @location, specify the IP address of the RCP server.
• For /directory]/bundle_name specify the directory
(optional) and the name of the software bundle to be
uploaded. Directory and bundle file names are case
sensitive.
Note The software install command is not supported when the switch is running in bundle mode. Use the
software expand privileged EXEC command to convert the switch from bundle mode to installed mode.
This example shows the software install command being used to expand and copy the packages from a
Cisco IOS XE bundle located on a TFTP server:
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-33
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-34 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
3850-Switch#
3850-Switch# configure terminal
3850-Switch(config)# end
3850-Switch#
*Nov 19 14:02:42.441: %SYS-5-CONFIG_I: Configured from console by console
3850-Switch#
3850-Switch# write memory
Building configuration...
Compressed configuration from 4941 bytes to 2236 bytes[OK]
3850-Switch# reload
Reload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]
Converting from the Bundle Running Mode to the Installed Running Mode
To convert the running mode of a switch from bundle mode to installed mode, use the software expand
running privileged EXEC command. This command expands the packages from the booted IOS XE
software bundle and copies them and the provisioning file to the specified to destination.
When you use the software expand running command to convert the switch from bundle mode to
installed mode, specify the to destination as flash:. After you execute the command, configure the boot
system command to point to the expanded provisioning file (flash:packages.conf), then reload the switch
to boot in installed mode.
Note The software expand running command is not supported when the switch is running in installed mode.
This example shows using the software expand running command to convert the active switch in a
switch stack from the bundle running mode to the installed running mode:
3850-Stack# dir flash:
Directory of flash:/
Directory of flash:/
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-35
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
3850-Stack#
3850-Stack# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3850-Stack#
3850-Stack# reload
Reload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]
Copying IOS XE Package and Bundle Files From One Stack Member to Another
For switch stacks running in installed mode, use the software install source switch privileged EXEC
command to install the running software packages from an existing stack member to one or more other
stack members that are running different (but compatible) software packages.
This example shows a 2-member stack where each switch is running a different (but compatible)
software packages. The software install source switch command is used to install the packages that are
currently running on the standby switch (switch 1) onto the active switch (switch 2).
3850-Stack# show version running
Package: Base, version: 03.02.00SE, status: active
File: cat3k_caa-base.SPA.03.02.00SE.pkg, on: Switch1
Built: Wed Jan 09 21:59:52 PST 2013, by: gereddy
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-36 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
3850-Stack#
3850-Stack# software install source switch 1
Preparing install operation ...
[2]: Copying software from source switch 1 to switch 2
[2]: Finished copying software to switch 2
[2]: Starting install operation
[2]: Starting compatibility checks
[2]: Finished compatibility checks
[2]: Starting application pre-installation processing
[2]: Finished application pre-installation processing
[2]: Old files list:
Removed cat3k_caa-base.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-drivers.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-infra.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-iosd-universalk9.SSA.150-9.17.EMP.pkg
Removed cat3k_caa-platform.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-wcm.SSA.03.09.17.EMP.pkg
[2]: New files list:
Added cat3k_caa-base.SPA.03.02.00.SE.pkg
Added cat3k_caa-drivers.SPA.03.02.00.SE.pkg
Added cat3k_caa-infra.SPA.03.02.00.SE.pkg
Added cat3k_caa-iosd-universalk9.SPA.150-1.EX.pkg
Added cat3k_caa-platform.SPA.03.02.00.SE.pkg
Added cat3k_caa-wcm.SPA.10.0.100.0.pkg
[2]: Creating pending provisioning file
[2]: Finished installing software. New software will load on reboot.
[2]: Committing provisioning file
For switch stacks running in bundle mode, follow these steps to copy the bundle file from one stack
member to another:
1. Use the copy privileged EXEC command to copy the running bundle from one switch in the stack
to the other.
2. Configure the boot system global configuration command to point to the bundle file.
3. Reload the switch.
This example shows a 2-member stack where each switch is running a different (but compatible)
software packages.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-37
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
Note If you configure the global software auto-upgrade enable command, the auto-upgrade functionality is
initiated automatically when a switch with incompatible software running in installed mode joins the
stack that is running in installed mode. For more information, see Cisco IOS Configuration
Fundamentals Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches).
This example shows a 2-member switch stack; switch 2 is the active switch and switch 1 is running
incompatible software.
3850-Stack#
3850-Stack# software auto-upgrade
% Auto upgrade has been initiated for the following incompatible switches: 1
INFO level system messages will be generated to provide status information during
the auto upgrade process
3850-Stack#
*Oct 19 06:59:14.521: %INSTALLER-6-AUTO_UPGRADE_SW_INITIATED: 2 installer: Auto upgrade initiated for switch 1
*Oct 19 06:59:14.522: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Searching stack for software to upgrade switch 1
*Oct 19 06:59:14.523: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Found donor switch 2 to auto upgrade switch 1
*Oct 19 06:59:14.523: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Upgrading switch 1 with software from switch 2
*Oct 19 07:00:47.829: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Finished installing software on switch 1
*Oct 19 07:00:47.829: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Reloading switch 1 to complete the auto upgrade
To upgrade a switch that is running in bundle mode with a software bundle that is incompatible with the
switch stack (also running in bundle mode), follow these steps:
1. Use the copy privileged EXEC command to copy the running bundle from one switch in the stack
to the other.
2. Configure the boot system global configuration command to point to the bundle file.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-38 OL-28266-01
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
3850-Stack#
3850-Stack# copy flash:cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin flash-1:
Destination filename [cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin]?
Copy in progress...
...
220766688 bytes copied in 181.700 secs (1215007 bytes/sec)
3850-Stack#
3850-Stack# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3850-Stack(config)# boot system switch 1 flash:cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin
3850-Stack(config)# end
3850-Stack#
*Nov 19 16:08:14.857: %SYS-5-CONFIG_I: Configured from console by console
3850-Stack# reload slot 1
Stack is in Half ring setup; Reloading a switch might cause stack split
Proceed with reload? [confirm]
Note If you configure the global software auto-upgrade enable command, the auto-upgrade functionality is
initiated automatically when a switch with incompatible software running in installed mode joins the
stack that is running in installed mode. For more information, see Cisco IOS Configuration
Fundamentals Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches).
This example shows a 2-member switch stack running in installed mode. Switch 2 is the active switch
and switch 1 is running in bundle mode.
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 A-39
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Bundles
Working with Cisco IOS XE Software Bundles
3850-Stack#
3850-Stack# software auto-upgrade
% Auto upgrade has been initiated for the following incompatible switches: 1
INFO level system messages will be generated to provide status information during
the auto upgrade process
3850-Stack#
*Oct 19 07:17:16.694: %INSTALLER-6-AUTO_UPGRADE_SW_INITIATED: 2 installer: Auto upgrade initiated for switch 1
*Oct 19 07:17:16.694: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Converting switch 1 to installed mode by
*Oct 19 07:17:16.694: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: installing its running software
*Oct 19 07:18:50.488: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Setting the boot var on switch 1
*Oct 19 07:18:51.553: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Finished installing the running software on switch
1
*Oct 19 07:18:51.553: %INSTALLER-6-AUTO_UPGRADE_SW: 2 installer: Reloading switch 1 to boot in installed mode
Note When you use the software auto-upgrade command to convert an incompatible switch to installed
mode, the command installs the packages from the incompatible switch's running bundle. If, after you
reload and boot the incompatible switch in installed mode, the switch's installed packages are found to
be incompatible with the stack, you can use the software auto-upgrade command again. For more
information, see Cisco IOS Configuration Fundamentals Command Reference, Cisco IOS XE Release
3SE (Catalyst 3850 Switches).
To convert a switch that is running in installed mode and joining a stack that is running in bundle mode,
follow these steps:
1. Use the copy privileged EXEC command to copy the running bundle from one switch in the stack
to the other.
2. Configure the boot system global configuration command to point to the bundle file.
3. Reload the switch.
After reloading, the incompatible switch boots in bundle mode and joins the stack as a fully functioning
member.
This example shows a 2-member switch stack running in bundle mode; switch 2 is the active switch and
switch 1 is running in installed mode:
3850-Stack#
3850-Stack# copy flash:cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin flash-1:
Destination filename [cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin]?
Copy in progress...
....
220766688 bytes copied in 181.700 secs (1215007 bytes/sec)
3850-Stack#
3850-Stack# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3850-Stack(config)# boot system switch 1 flash:cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin
3850-Stack(config)# end
3850-Stack#
*Nov 19 16:08:14.857: %SYS-5-CONFIG_I: Configured from console by console
3850-Stack# reload slot 1
Stack is in Half ring setup; Reloading a switch might cause stack split
Proceed with reload? [confirm]
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
A-40 OL-28266-01
INDEX
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-28266-01 IN-1
Index
Cisco IOS File System, Configuration Files, and Bundle Files Appendix, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
IN-2 OL-28266-01