To extract a consolidated package and to boot using provisioning file, perform the following steps:
SUMMARY STEPS1.
Perform one of the following tasks:
2.
Configure the router to boot using the provisioning file.The sequence below provides an example that would boot the router using the provisioning file named packages.conf that was stored with the other subpackages in the bootflash: file system:
DETAILED STEPS
Step 1
|
Perform one of the following tasks:
-
Copy the consolidated package file (or, in cases where you have every individual subpackage and a provisioning file for the subpackages available, each individual subpackage and the provisioning file) onto the bootflash: file system using the copy command. Make sure to copy the consolidated package into the bootflash: file system and directory where you want to store the provisioning file and the individual image subpackages. Enter the request platform software package expand file bootflash:url-to-Cisco-IOS-XE-imagename command with no other option to extract the provisioning file and the individual subpackages out of the consolidated package file and into the current directory in bootflash:.
-
Copy the consolidated package file onto any file system on your router, then enter the request platform software package expand file file-system:url-to-Cisco-IOS-XE-imagename to bootflash: command to extract the provisioning file and the individual image subpackages onto the bootflash: file system.
Note
|
After performing this step, do not move any of the files. The bootup process cannot function properly unless all of the subpackages and the provisioning file are located in the same directory.Also, do not rename the subpackage files. Only the provisioning file can be renamed, and the renaming of the provisioning file, if desired, should be done at this step before the router is rebooted. |
|
Step 2
|
Configure the router to boot using the provisioning file.The sequence below provides an example that would boot the router using the provisioning file named packages.conf that was stored with the other subpackages in the bootflash: file system:
Example:
Router(config)# no boot system
Router(config)# config-register 0x2102
Router(config)# boot system flash bootflash:packages.conf
Router(config)# exit
*May 11 01:31:04.815: %SYS-5-CONFIG_I: Configured from console by con
Router# copy running-config startup-config
Building configuration...
[OK]
Router# reload
|
What to Do Next
Extracting the SubPackages and the Provisioning File: Example 1
The following example shows how to extract the individual subpackages and the provisioning file from a consolidated package that has already been placed in the directory where you want to store the individual subpackages and the provisioning file.
Output of the directory before and after the extraction is given to confirm the files were extracted.
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 4 2007 04:32:46 -08:00 lost+found
86401 drwx 4096 Dec 4 2007 06:06:24 -08:00 .ssh
14401 drwx 4096 Dec 4 2007 06:06:36 -08:00 .rollback_timer
28801 drwx 4096 Mar 18 2008 17:31:17 -07:00 .prst_sync
43201 drwx 4096 Dec 4 2007 04:34:45 -08:00 .installer
12 -rw- 208904396 May 9 2008 14:36:31 -07:00 asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
13 -rw- 45977 Apr 9 2008 16:48:46 -07:00 target_support_output.tgz.tgz
928862208 bytes total (503156736 bytes free)
Router# request platform software package expand file bootflash:asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
Verifying parameters
Validating package type
Copying package files
SUCCESS: Finished expanding all-in-one software package.
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 4 2007 04:32:46 -08:00 lost+found
86401 drwx 4096 Dec 4 2007 06:06:24 -08:00 .ssh
14401 drwx 4096 Dec 4 2007 06:06:36 -08:00 .rollback_timer
28801 drwx 4096 Mar 18 2008 17:31:17 -07:00 .prst_sync
43201 drwx 4096 Dec 4 2007 04:34:45 -08:00 .installer
12 -rw- 208904396 May 9 2008 14:36:31 -07:00 asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
57611 -rw- 47071436 May 22 2008 11:26:23 -07:00 asr1000rp1-espbase.02.01.00.122-33.XNA.pkg
57602 -rw- 5740 May 22 2008 11:26:22 -07:00 asr1000rp1-packages-adventerprisek9.02.01.00.122-33.XNA.conf
57612 -rw- 20334796 May 22 2008 11:26:24 -07:00 asr1000rp1-rpaccess.02.01.00.122-33.XNA.pkg
57613 -rw- 22294732 May 22 2008 11:26:24 -07:00 asr1000rp1-rpbase.02.01.00.122-33.XNA.pkg
57614 -rw- 21946572 May 22 2008 11:26:25 -07:00 asr1000rp1-rpcontrol.02.01.00.122-33.XNA.pkg
57615 -rw- 48099532 May 22 2008 11:26:26 -07:00 asr1000rp1-rpios-adventerprisek9.02.01.00.122-33.XNA.pkg
57616 -rw- 34324684 May 22 2008 11:26:27 -07:00 asr1000rp1-sipbase.02.01.00.122-33.XNA.pkg
57617 -rw- 22124748 May 22 2008 11:26:28 -07:00 asr1000rp1-sipspa.02.01.00.122-33.XNA.pkg
57603 -rw- 6256 May 22 2008 11:26:28 -07:00 packages.conf
13 -rw- 45977 Apr 9 2008 16:48:46 -07:00 target_support_output.tgz.tgz
928862208 bytes total (286662656 bytes free)
Extracting the SubPackages and the Provisioning File: Example 2
The following example shows how to extract the individual subpackages and the provisioning file from a consolidated package that has already been placed on the router in a directory that will not store the individual subpackages and the provisioning file. In this particular example, the contents of a consolidated package stored in usb0: are extracted into bootflash:.
Output of the bootflash: directory before and after the extraction is given to confirm the files were extracted:
Router# dir usb0:
Directory of usb0:/
1240 -rwx 208904396 May 27 2008 14:10:20 -07:00 asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
255497216 bytes total (40190464 bytes free)
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 13 2004 03:45:47 -08:00 lost+found
87937 drwx 4096 Dec 13 2004 03:46:45 -08:00 .rollback_timer
14657 drwx 4096 Dec 13 2004 03:47:17 -08:00 .installer
29313 drwx 4096 Dec 13 2004 03:53:00 -08:00 .ssh
12 -rw- 33554432 Dec 13 2004 03:53:49 -08:00 nvram_00100
58625 drwx 4096 May 7 2008 17:27:51 -07:00 .prst_sync
945377280 bytes total (695246848 bytes free)
Router# request platform software package expand file usb0:asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin to bootflash:
Verifying parameters
Validating package type
Copying package files
SUCCESS: Finished expanding all-in-one software package.
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 13 2004 03:45:47 -08:00 lost+found
87937 drwx 4096 Dec 13 2004 03:46:45 -08:00 .rollback_timer
14657 drwx 4096 Dec 13 2004 03:47:17 -08:00 .installer
29313 drwx 4096 Dec 13 2004 03:53:00 -08:00 .ssh
12 -rw- 33554432 Dec 13 2004 03:53:49 -08:00 nvram_00100
43979 -rw- 47071436 May 27 2008 14:25:01 -07:00 asr1000rp1-espbase.02.01.00.122-33.XNA.pkg
58625 drwx 4096 May 7 2008 17:27:51 -07:00 .prst_sync
43970 -rw- 5740 May 27 2008 14:25:00 -07:00 asr1000rp1-packages-adventerprisek9.02.01.00.122-33.XNA.conf
43980 -rw- 20334796 May 27 2008 14:25:01 -07:00 asr1000rp1-rpaccess.02.01.00.122-33.XNA.pkg
43981 -rw- 22294732 May 27 2008 14:25:02 -07:00 asr1000rp1-rpbase.02.01.00.122-33.XNA.pkg
43982 -rw- 21946572 May 27 2008 14:25:03 -07:00 asr1000rp1-rpcontrol.02.01.00.122-33.XNA.pkg
43983 -rw- 48099532 May 27 2008 14:25:04 -07:00 asr1000rp1-rpios-adventerprisek9.02.01.00.122-33.XNA.pkg
43984 -rw- 34324684 May 27 2008 14:25:05 -07:00 asr1000rp1-sipbase.02.01.00.122-33.XNA.pkg
43985 -rw- 22124748 May 27 2008 14:25:05 -07:00 asr1000rp1-sipspa.02.01.00.122-33.XNA.pkg
43971 -rw- 6256 May 27 2008 14:25:05 -07:00 packages.conf
945377280 bytes total (478752768 bytes free)
Extracting the SubPackages, Configuring the Router to Boot Using the Provisioning File, and Reloading the Router: Example 3
In the following example, the provisioning file and the individual subpackages are extracted from a consolidated package. The router is then configured to boot using the provisioning file. This example also shows the config-register being set and the running configuration being saved because these tasks must be performed for the router to reload properly. The router is then reloaded to complete the process.
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 4 2007 04:32:46 -08:00 lost+found
86401 drwx 4096 Dec 4 2007 06:06:24 -08:00 .ssh
14401 drwx 4096 Dec 4 2007 06:06:36 -08:00 .rollback_timer
28801 drwx 4096 Mar 18 2008 17:31:17 -07:00 .prst_sync
43201 drwx 4096 Dec 4 2007 04:34:45 -08:00 .installer
12 -rw- 208904396 May 9 2008 14:36:31 -07:00 asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
13 -rw- 45977 Apr 9 2008 16:48:46 -07:00 target_support_output.tgz.tgz
928862208 bytes total (503156736 bytes free)
Router# request platform software package expand file bootflash:asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
Verifying parameters
Validating package type
Copying package files
SUCCESS: Finished expanding all-in-one software package.
Router# dir bootflash:
Directory of bootflash:/
11 drwx 16384 Dec 4 2007 04:32:46 -08:00 lost+found
86401 drwx 4096 Dec 4 2007 06:06:24 -08:00 .ssh
14401 drwx 4096 Dec 4 2007 06:06:36 -08:00 .rollback_timer
28801 drwx 4096 Mar 18 2008 17:31:17 -07:00 .prst_sync
43201 drwx 4096 Dec 4 2007 04:34:45 -08:00 .installer
12 -rw- 208904396 May 9 2008 14:36:31 -07:00 asr1000rp1-adventerprisek9.02.01.00.122-33.XNA.bin
57611 -rw- 47071436 May 22 2008 11:26:23 -07:00 asr1000rp1-espbase.02.01.00.122-33.XNA.pkg
57602 -rw- 5740 May 22 2008 11:26:22 -07:00 asr1000rp1-packages-adventerprisek9.02.01.00.122-33.XNA.conf
57612 -rw- 20334796 May 22 2008 11:26:24 -07:00 asr1000rp1-rpaccess.02.01.00.122-33.XNA.pkg
57613 -rw- 22294732 May 22 2008 11:26:24 -07:00 asr1000rp1-rpbase.02.01.00.122-33.XNA.pkg
57614 -rw- 21946572 May 22 2008 11:26:25 -07:00 asr1000rp1-rpcontrol.02.01.00.122-33.XNA.pkg
57615 -rw- 48099532 May 22 2008 11:26:26 -07:00 asr1000rp1-rpios-adventerprisek9.02.01.00.122-33.XNA.pkg
57616 -rw- 34324684 May 22 2008 11:26:27 -07:00 asr1000rp1-sipbase.02.01.00.122-33.XNA.pkg
57617 -rw- 22124748 May 22 2008 11:26:28 -07:00 asr1000rp1-sipspa.02.01.00.122-33.XNA.pkg
57603 -rw- 6256 May 22 2008 11:26:28 -07:00 packages.conf
13 -rw- 45977 Apr 9 2008 16:48:46 -07:00 target_support_output.tgz.tgz
928862208 bytes total (286662656 bytes free)
Router(config)# no boot system
Router(config)# config-register 0x2102
Router(config)# boot system flash bootflash:packages.conf
Router(config)# exit
Router# copy run start
Router# reload