Table Of Contents
Router Recovery and Management with ROM Monitor
Contents
ROM Monitor Overview
Reinstalling the Cisco IOS XR Software from ROMMON
Contents
Cisco IOS XR Software Installation Overview
Installation from a TFTP Server
Installation from disk1:
Locating Installable Files
tar Filenames and Version Numbers
.vm Filenames and Version Numbers
Reinstalling the Software from an Image Located on a TFTP Server
Restrictions for TFTP Services
Prerequisites
Examples
Reinstalling the Software from a .vm File Located on Flash disk1:
Copying a .vm Image to disk1:
Prerequisites
Examples
What to Do Next
Recovering the Root Password
Recovering the Root Password on Single-RP Routers
Recovering the Root Password on Redundant-RP Routers
Specifying an Alternative Configuration
ROM Monitor Procedures
Entering ROM Monitor Mode
Resetting the Configuration Register and Reloading the Router
Manually Halting the Initialization Process During System Reload
Displaying the Available ROM Monitor Commands and Options
Examples
Displaying the Configuration Register Setting
Displaying Environment Variable Settings
Saving Environment Variable Settings
Exiting ROM Monitor Mode
Resetting to EXEC Mode with CLI Commands
Resetting to EXEC Mode Using Prompts
Router Recovery and Management with ROM Monitor
The ROM Monitor is a bootstrap program that initializes the hardware and boots the Cisco IOS XR software when you power on or reload a router. If the Cisco IOS XR software cannot boot, the router startup ends in ROM Monitor mode and displays the ROM Monitor command-line interface (CLI) prompt:
During normal operation, users do not see the ROM Monitor prompt or use ROM Monitor mode. If the ROM Monitor prompt appears, you might need to reinstall the router software. If you lose the router password or want to specify a configuration file to use at startup, you can perform these tasks in ROM Monitor mode. This chapter describes the procedures that you might want to perform in ROM Monitor mode.
Contents
This appendix contains the following sections:
•
ROM Monitor Overview
•
Reinstalling the Cisco IOS XR Software from ROMMON
•
Recovering the Root Password
•
Specifying an Alternative Configuration
•
ROM Monitor Procedures
ROM Monitor Overview
The ROM Monitor software is known by many names. It is sometimes called ROMMON because of the CLI prompt in ROM Monitor mode. The ROM Monitor software is also called the boot software, boot image, or boot helper.
Although it is distributed with routers that use the Cisco IOS XR software, ROM Monitor is a separate program from the Cisco IOS XR software. During normal startup, the ROM Monitor initializes the router, and then control passes to the Cisco IOS XR software. After the Cisco IOS XR software takes over, ROM Monitor is no longer in use.
Two primary connections exist between ROM Monitor and the Cisco IOS XR software: the ROM Monitor environment variables and the configuration register. The ROM Monitor environment variables define the location of the Cisco IOS XR software and how to load it. After ROM Monitor has initialized the router, it uses the environment variables to locate and load the Cisco IOS XR software.
The configuration register is a software setting that controls router startup. One of the primary uses of the configuration register is to control whether the router starts in ROM Monitor mode or EXEC mode. The configuration register is set in either ROM Monitor mode or EXEC mode as needed. Typically, you set the configuration register for ROM Monitor mode in the Cisco IOS XR software when you need to use ROM Monitor mode. When your maintenance in ROM Monitor mode is complete, you change the configuration register to start the Cisco IOS XR software.
When the router is in ROM Monitor mode, you can access the ROM Monitor software only from a terminal connected directly to the Console port of the primary or standby route processor (RP). Because the Cisco IOS XR software (EXEC mode) is not operating, the non management interfaces (such as PoS interfaces) are not accessible. Basically, all of the Cisco IOS XR software resources are unavailable. The hardware is there, but no configuration exists to make use of the hardware.
Some people get confused when they start to use ROM Monitor mode. It is important to remember that ROM Monitor mode is a router mode, not a mode within the Cisco IOS XR software. It is best to remember that ROM Monitor software and the Cisco IOS XR software are two separate programs that run on the same router. At any given time, the router is running one of these programs, but it never runs both at the same time.
One area that confuses people when using ROM Monitor and the Cisco IOS XR software is that area that defines the IP configuration for the Management Ethernet interface. Most router users get comfortable with configuring the Management Ethernet interface in the Cisco IOS XR software. When the router is in ROM Monitor mode, however, the router is not running the Cisco IOS XR software, so that Management Ethernet interface configuration is not available. Therefore, because it is a separate program, you must configure ROM Monitor to use the Management Ethernet interface if you want to access other devices, such as a TFTP server, while in ROM Monitor mode.
Reinstalling the Cisco IOS XR Software from ROMMON
Caution 
Reinstalling the Cisco IOS XR software from ROMMON replaces the currently installed router software and causes substantial router downtime. We recommend installing or upgrading software packages from the EXEC mode using package installation envelope (PIE) files, as described in
Chapter 5, "Managing Cisco IOS XR Software Packages."
The standard way to install new software on a router is by using the install command in admin EXEC mode. However, if the router is unable to boot the Cisco IOS XR software or you want to completely replace the existing software, you can reinstall the software while the router is in ROM Monitor mode. When you install the Cisco IOS XR software from ROM Monitor, you must use a special software installation file with a .vm file extension. You cannot install software in PIE files from ROM Monitor mode.
Contents
This section includes the following topics:
•
Cisco IOS XR Software Installation Overview
•
Locating Installable Files
•
tar Filenames and Version Numbers
•
.vm Filenames and Version Numbers
•
Reinstalling the Software from an Image Located on a TFTP Server
•
Reinstalling the Software from a .vm File Located on Flash disk1:
•
What to Do Next
Cisco IOS XR Software Installation Overview
When you reinstall the software from ROM Monitor mode, you can do either of the following:
•
Load the Cisco IOS XR software from a .vm file on a TFTP server.
•
Transfer the .vm file to disk1: and load the Cisco IOS XR software from disk1:.
The following sections provide an overview of the processes:
•
Installation from a TFTP Server
•
Installation from disk1:
Installation from a TFTP Server
When you install the Cisco IOS XR software from a TFTP server, you must do the following:
1.
Place the router in ROM Monitor mode.
2.
Clear any environment variables that might interfere with the installation.
3.
Configure ROM Monitor with the IP parameters required to access the TFTP server.
4.
Configure the TURBOBOOT environment variable to either clean or format disk0: during the install.
5.
Boot the Cisco IOS XR software from a .vm file on the TFTP server.
After you boot the Cisco IOS XR software, the software loads into memory so that it can clean or format disk0: based on the TURBOBOOT environment variable setting. When this variable is set to clean the disk, the software replaces all previously installed software with the Cisco IOS XR software from the TFTP server. All router configuration files are retained so that after the installation, the new software operates with the previous configuration.
When the TURBOBOOT environment variable is set to format disk0:, the Cisco IOS XR software from the TFTP server replaces the software on disk0: and the previous configuration is deleted. When the router starts after a disk format, it operates as would a new router with no configuration.
For the procedure to install the Cisco IOS XR software from a TFTP server, see the "Reinstalling the Software from an Image Located on a TFTP Server" section.
Installation from disk1:
When you install the Cisco IOS XR software from disk1:, you must do the following:
1.
Copy the new Cisco IOS XR software to disk1:.
2.
Place the router in ROM Monitor mode.
3.
Clear any environment variables that might interfere with the installation.
4.
Configure the TURBOBOOT environment variable to either clean or format disk0: during the install.
5.
Boot the Cisco IOS XR software from the new Cisco IOS XR software on disk1:.
After you boot the Cisco IOS XR software, the software loads into memory so that it can clean or format disk0: based on the TURBOBOOT environment variable setting. When this variable is set to clean the disk, the software replaces all previously installed software with the Cisco IOS XR software from disk1:. All router configuration files are retained so that after the installation, the new software operates with the previous configuration.
When the TURBOBOOT environment variable is set to format disk0:, the Cisco IOS XR software from disk1: replaces the software on disk0: and the previous configuration is deleted. When the router starts after a disk format, it operates as would a new router with no configuration.
For the procedure to install the Cisco IOS XR software from disk1:, see the "Reinstalling the Software from a .vm File Located on Flash disk1:" section.
Locating Installable Files
To obtain Cisco IOS XR software and version information, use the Cisco IOS XR Software Selector tool at the following website:
http://www.cisco.com/pcgi-bin/Software/IOXPlanner/planner-tool/ioxplanner.cgi?
The Cisco IOS XR Software Selector tool allows you to browse for your software upgrade from a single interface. You can display and select software by package name, release, or platform. The tool also includes posting images and Extensible Markup Language (XML) schemas. Choosing a platform, release, or software feature automatically limits the choices based on your selection, until you arrive at your preferred software.
The software packages that you can install from ROMMON are listed in Table A-1.
Table A-1 Downloadable Software for Installation from ROM Monitor
Software Package Name
|
Description
|
Cisco IOS XR IP/MPLS Core Software
|
This package contains two copies of the Cisco IOS XR Unicast Routing Core Bundle. One copy is in the package installation envelope (PIE) file format and can be installed while IOS XR is running, as described in Chapter 5, "Managing Cisco IOS XR Software Packages." The other copy is in a .vm file that can be installed from ROM Monitor. This package also includes the Cisco IOS XR MPLS, Manageability, and Mulitcast packages (in PIE files).
|
Cisco IOS XR IP/MPLS Core Software 3DES
|
This package contains everything in the Cisco IOS XR IP/MPLS Core Software package, and it contains the Cisco IOS XR Security package (in a PIE file).
|
The packages listed in Table A-1 are distributed in files with .tar filename extensions (.tar files are assembled with the UNIX tar utility). When you download a tar file, you must unpack the tar file with a software program before you can install any of the files in the package.
The files that you can install from ROM Monitor have a .vm filename extension. These files contain the software included in the Cisco IOS XR Unicast Routing Core Bundle. The other files in the packages are PIE files.
Note
The tar files contain both PIE files and .vm files. If the router is operating properly, you can install the software using the appropriate PIE file with little or no interruption to router traffic, as described in Chapter 5, "Managing Cisco IOS XR Software Packages." If the router cannot boot the Cisco IOS XR software, install the core software using the .vm file first, then install any additional packages using the PIE files after the router enters EXEC mode.
Packages for the Cisco XR 12000 Series Router contain additional files which are described in Table A-1.
Table A-2 Additional Files for the Cisco XR 12000 Series Router
Filename
|
Description
|
mbiprp-rp.vm-3.2.0
|
This is the software for all RPs except the RP that serves as the designated shelf controller (DSC). This software is automatically downloaded from the DSC to the other RPs when the RPs are started.
|
bfprp_romupgrade-1.14.0.91
|
This is the ROM Monitor upgrade software for the PRP cards, and later versions may display a different version number at the end of the filename. For instructions on installing this software, see "Upgrading and Downgrading Boothelper and ROM Monitor on Cisco XR 12000 Series Routers."
|
c12kprp-boot-mz.120-30.S
|
This is the boothelper software for the PRP cards, and later versions may display a different version number at the end of the filename. For instructions on installing this software, see "Upgrading and Downgrading Boothelper and ROM Monitor on Cisco XR 12000 Series Routers."
|
tar Filenames and Version Numbers
The format for a tar filename is:
platform-bundle_name-major.minor.maintenance.tar
The tar filename components are described in Table A-3.
Table A-3 tar Filename Components
Component
|
Description
|
platform
|
Identifies the platform for which the software package is designed.
• For packages designed for the Cisco CRS-1 router, the platform designation is "CRS-1."
• For packages designed for the Cisco XR 12000 Series Router, the platform designation is "c12000."
|
bundle_name
|
Identifies a specific bundle.
• The "iosxr" bundle name indicates a file that includes all packages in the Cisco IOS XR Unicast Routing Core Bundle and the Management, MPLS, and Mulitcast packages. These packages are described in Chapter 5, "Managing Cisco IOS XR Software Packages."
• The "iosxr-k9" bundle name indicates a file that includes all packages in the "iosxr" bundle file plus the Security package.
|
major
|
Identifies the major release of this package.
• A major release occurs when there is a major architectural change to the product (for example, a major new capability is introduced).
• All packages operating on the router must be at the same major release level.
• A major release is the least frequent release and may require a router reboot.
|
minor
|
Identifies the minor release of this package.
• A minor release contains one or more of the following:
– New features
– Bug fixes
• The minor release version does not have to be identical for all software packages operating on the router, but the operating packages must be certified by Cisco as compatible with each other.
• A minor release may require a router reboot.
|
maintenance
|
Identifies the maintenance release of this package.
• A maintenance release contains a collection of bug fixes for a package.
• The maintenance release version does not have to be identical for all software packages operating on the router, but the major and minor versions of the maintenance release must match the those of the package being updated.
• A maintenance release usually does not require a router reboot.
|
.vm Filenames and Version Numbers
The format for a composite .vm filename for Cisco CRS-1s is:
comp-platform-package_name.vm-major.minor.maintenance
The format for a .vm filename for Cisco XR 12000 Series Routers is:
platform-package_name.vm-major.minor.maintenance
The "comp" prefix indicates that the file is a composite of multiple packages. The other filename components are described in Table A-4.
Table A-4 .vm Filename Components
Component
|
Description
|
platform
|
Identifies the platform for which the software package is designed.
• For packages designed for Cisco CRS-1s, the platform designation is "hfr."
• For packages designed for Cisco XR 12000 Series Routers, the platform designation is "c12k."
• The mbiprp platform name specifies a special file for the Cisco XR 12000 Series Router. This file is described in Table A-2.
|
package_name
|
Identifies a specific package.
• The "mini" package name indicates a composite package that includes all packages in the Cisco IOS XR Unicast Routing Core Bundle, which is described in Chapter 5, "Managing Cisco IOS XR Software Packages."
• The rp package name specifies a special file for the Cisco XR 12000 Series Router. This file is described in Table A-2.
|
major
|
Identifies the major release of this package.
• A major release occurs when there is a major architectural change to the product (for example, a major new capability is introduced).
• All packages operating on the router must be at the same major release level.
• A major release is the least frequent release and may require a router reboot.
|
minor
|
Identifies the minor release of this package.
• A minor release contains one or more of the following:
– New features
– Bug fixes
• The minor release version does not have to be identical for all software packages operating on the router, but the operating packages must be certified by Cisco as compatible with each other.
• A minor release may require a router reboot.
|
maintenance
|
Identifies the maintenance release of this package.
• A maintenance release contains a collection of bug fixes for a package.
• The maintenance release version does not have to be identical for all software packages operating on the router, but the major and minor versions of the maintenance release must match the those of the package being updated.
• A maintenance release usually does not require a router reboot.
|
Reinstalling the Software from an Image Located on a TFTP Server
The Cisco IOS XR software can be reinstalled directly from a .vm image located on a TFTP server. Complete the instructions in this section exactly as described.
Restrictions for TFTP Services
TFTP services by some vendors (such as Sun Solaris) may not support files larger than 32 MB. Because most Cisco IOS XR .vm images are larger than 32 MB, you may need to use one of the following options:
•
Use a third-party or freeware TFTP server that supports file sizes larger than 32 MB.
•
Download a patch from Sun Microsystems to correct this limitation (http://www.sun.com).
•
Install the Cisco IOS XR software from a .vm image located on the local flash disk. See the "Reinstalling the Software from a .vm File Located on Flash disk1:" section.
Prerequisites
Before you begin, collect the following information.
•
IP address of the Management Ethernet interface for your router
•
Subnet mask of the Management Ethernet interface for your router
•
IP address of the default gateway that serves your router
•
IP address of the TFTP server from which the software will be downloaded
•
The filename and directory of the .vm installation file that will be installed on the router
Note
This procedure installs the Cisco IOS XR software on a router that previously ran the Cisco IOS software. If you are upgrading a Cisco XR 12000 Series Router that is currently running Cisco IOS software, you need to first upgrade the router to Cisco IOS XR software, as described in the document titled Upgrading from Cisco IOS to Cisco IOS XR Software on the Cisco XR 12000 Series Router, Release 3.2.
SUMMARY STEPS
1.
Back up the router configuration while still in EXEC mode.
2.
Place both the standby RP and primary RP in ROM Monitor mode.
3.
Prepare the standby RP:
a.
unset BOOT
b.
unset TFTP_FILE
c.
sync
d.
confreg 0x2
e.
reset
4.
On the primary RP, set the environment variables that configure the Management Ethernet interface for use in ROM Monitor mode:
a.
IP_ADDRESS=ip_address
b.
IP_SUBNET_MASK=ip_address
c.
DEFAULT_GATEWAY=ip_address
5.
On the primary RP, clear the BOOT and TFTP filename variables and set the TURBOBOOT environment variable:
a.
unset BOOT
b.
unset TFTP_FILE
c.
TURBOBOOT=on, destination, options
d.
sync
6.
boot tftp://server/directory/filename
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
Back up the router configuration while still in EXEC mode.
|
(Optional) To preserve the current router configuration, copy it to another disk while still in EXEC mode.
• See the "Managing Configuration History and Rollback" section on page 3-3 for more information.
|
Step 2
|
Place both the standby RP and primary RP in ROM Monitor mode.
|
See the "Entering ROM Monitor Mode" section for more information.
• You must attach a terminal to each card for this procedure.
|
Step 3
|
Prepare the standby RP:
a. unset BOOT
b. unset TFTP_FILE
c. sync
d. confreg 0x2
e. reset
Example:
rommon B2> unset TFTP_FILE
|
Enter these settings exactly as shown. All variable names are case sensitive.
a. Clears the BOOT variable.
b. Clears the TFTP_FILE variable.
c. Saves the changes.
d. Sets the configuration register to automatically start the router in EXEC mode when the card is reset.
e. Resets the standby RP and starts the boot process.
|
Step 4
|
On the primary RP, set the environment variables that configure the Management Ethernet interface for use in ROM Monitor mode:
a. IP_ADDRESS=ip_address
b. IP_SUBNET_MASK=ip_address
c. DEFAULT_GATEWAY=ip_address
Example:
rommon B1> IP_ADDRESS=1.1.1.1
rommon B2> IP_SUBNET_MASK=255.255.254.0
rommon B3> DEFAULT_GATEWAY=1.1.0.1
|
Enter these settings exactly as shown.
• All variable names are case sensitive.
a. Sets the IP address for the Management Ethernet interface on the router.
b. Sets the subnet mask for the Management Ethernet interface on the router.
c. Identifies the default gateway that serves the router.
|
Step 5
|
On the primary RP, clear the BOOT and TFTP filename variables and set the TURBOBOOT environment variable:
a. unset BOOT
b. unset TFTP_FILE
c. TURBOBOOT=on, destination, options
d. sync
Example:
rommon B1> TURBOBOOT=on,disk0,format
|
a. Clears the BOOT variable.
b. Clears the TFTP_FILE variable.
c. Sets the TURBOBOOT parameters. TURBOBOOT parameters are:
– on: Enables TURBOBOOT and cleans the destination if the format option is not specified.
– destination: Specifies the disk from which the Cisco IOS XR software boots. Available destinations are disk0 and disk1.
– options: Specifies the TURBOBOOT options. If no option is specified or the clean option is entered, the destination is cleaned. To format the destination, enter the format option.
– When the clean option is selected, the current software is deleted and replaced with new packages. Other files, such as user configurations, are preserved.
– When the format option is entered, the entire flash disk is formatted before the new software packages are installed. All existing software and configurations are deleted.
d. Saves the new ROM Monitor variable settings.
|
Step 6
|
boot tftp://server/directory/filename
Example:
rommon B1> boot
tftp://223.255.254.254/softdir/comp-hfr-mini.vm
|
Retrieves the file from the TFTP server and installs it on disk0:.
• Execute this command on the primary RP and specify the .vm installation file from the TFTP server.
• This process removes any existing software packages, resets the configuration register to 0x2, and boots the system.
• After the primary RP boots, the standby RP downloads (synchronizes) the packages from the primary RP and boots automatically.
• Allow the system to fully boot.
• If you choose the option to format disk0:, the router configuration is cleared and the router prompts you to enter a root-system username and password.
• If you choose the option to clean disk0:, the system is fully booted when the CLI prompt is shown and the interfaces are created.
• The TURBOBOOT process takes some time. Please do not enter any commands until you are prompted to enter a username or until the CLI prompt appears.
|
Examples
The following examples are provided:
•
Preparing the Standby RP
•
Setting the IP Environment Variables
•
Setting the TURBOBOOT Variable
•
Booting the .vm Installation File
Preparing the Standby RP
The following example shows how to clear the boot and TFTP filename environment variables, set the TURBOBOOT variable to clean the hard disk, set the configuration register to start the router in EXEC mode, and reset the standby RP:
rommon B2> unset TFTP_FILE
Setting the IP Environment Variables
The following example shows how to configure the ROM Monitor Management Ethernet interface on the primary RP:
rommon B1> IP_ADDRESS=10.1.1.1
rommon B2> IP_SUBNET_MASK=255.255.254.0
rommon B3> DEFAULT_GATEWAY=10.1.0.1
Setting the TURBOBOOT Variable
The following example shows how to set the TURBOBOOT variable on the primary RP and save the change:
rommon B1> TURBOBOOT=on,disk0,format
Booting the .vm Installation File
The following example shows how to boot the router using the specified .vm file on the specified TFTP server. Because the TURBOBOOT option was set to format disk0:, the previous configuration is erased, and the Cisco IOS XR software prompts the user to enter a root-system username and password:
rommon B2> boot tftp://10.10.10.10/software/comp-hfr-mini.vm-05.02.08
bios con0/RP1/CPU0 is now available
Press RETURN to get started.
--- Administration User Dialog ---
Enter root-system username: crs-1
The following configuration command script was created:
secret 5 $1$NCmY$VBS6zCKg3baU0IrJ.IvLm/
[0] Return back to the setup without saving this config.
[1] Save this configuration and exit.
Enter your selection [1]: 1
RP/0/RP1/CPU0:Feb 17 21:54:19.709 : exec[65667]: %MGBL-LIBTARCFG-6-SYSTEM_ADMIN_
COMMIT : Administration configuration committed by system.
Use the 'configure' command to modify this configuration.
Reinstalling the Software from a .vm File Located on Flash disk1:
This section describes the tasks required to install the Cisco IOS XR software on the flash disk0: using a .vm image stored on flash disk1:. Complete the procedures exactly as described in this section.
Note
Before booting begins, a delay of 10 minutes or more may occur while the .vm image is read to memory from the removable flash disk1: (DDTS CSCed22546).
Copying a .vm Image to disk1:
Flash disk1: can contain an archive of bootable .vm files. If these files are not present on disk1: or a different version is required, use one of the following options:
•
While the router is still in EXEC mode, copy the necessary .vm image from a TFTP, an FTP, or an rcp server to disk1:. This process is described in the "Upgrading, Downgrading, and Installing Packages" section on page 5-26.
•
Consult your system administrator for a flash disk containing the bootable .vm file.
•
Consult your Cisco representative for a flash disk containing the bootable.vm file. See the "Obtaining Technical Assistance" section for more information.
Note
The removable disk1: is used to store archives of .vm and PIE files only. This disk cannot be used as a destination for installed software or configurations. Only disk0: can be used to store active software and configurations. See the "Overview of Package Management" section on page 5-18 for more information.
Prerequisites
A valid .vm image, as described in the "Locating Installable Files" section, must be located on flash disk (disk1:).
SUMMARY STEPS
1.
Back up the router configuration while still in EXEC mode.
2.
Place both the standby RP and primary RP in ROM Monitor mode.
3.
Prepare the standby RP:
a.
unset BOOT
b.
unset TFTP_FILE
c.
sync
d.
confreg 0x2
e.
reset
4.
On the primary RP, clear the BOOT and TFTP filename variables and set the TURBOBOOT variable:
a.
unset BOOT
b.
unset TFTP_FILE
c.
TURBOBOOT=on, destination, options
d.
sync
5.
boot disk1:/filename
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
Back up the router configuration while still in EXEC mode.
|
(Optional) To preserve the current router configuration, copy it to another disk while still in EXEC mode.
• See the "Managing Configuration History and Rollback" section on page 3-3 for more information.
|
Step 2
|
Place both the standby RP and primary RP in ROM Monitor mode.
|
See the "Entering ROM Monitor Mode" section for more information.
• You must attach a terminal to each card for this procedure.
|
Step 3
|
Prepare the standby RP:
a. unset BOOT
b. unset TFTP_FILE
c. sync
d. confreg 0x2
e. reset
Example:
rommon B2> unset TFTP_FILE
|
Enter the settings exactly as shown.
• All variable names are case sensitive.
a. Clears the BOOT variable.
b. Clears the TFTP_FILE variable.
c. Saves the changes.
d. Sets the configuration register to automatically start the boot process instead of staying in ROM Monitor mode.
e. Resets the standby RP and starts the boot process.
|
Step 4
|
On the primary RP, clear the BOOT and TFTP filename variables and set the TURBOBOOT environment variable:
a. unset BOOT
b. unset TFTP_FILE
c. TURBOBOOT=on, destination, options
d. sync
Example:
rommon B1> TURBOBOOT=on,disk0,format
|
a. Clears the BOOT variable.
b. Clears the TFTP_FILE variable.
c. Sets the TURBOBOOT parameters. TURBOBOOT parameters are:
– on: Enables TURBOBOOT and cleans the destination if the format option is not specified.
– destination: Specifies the disk from which the Cisco IOS XR software boots. Available destinations are disk0 and disk1.
– options: Specifies the TURBOBOOT options. If no option is specified or the clean option is entered, the destination is cleaned. To format the destination, enter the format option.
– When the clean option is selected, the current software is deleted and replaced with new packages. Other files, such as user configurations, are preserved.
– When the format option is entered, the entire flash disk is formatted before the new software packages are installed. All existing software and configurations are deleted.
d. Saves the configuration.
|
Step 5
|
boot disk1:/filename
Example:
rommon B1> boot disk1:/comp-hfr-mini.vm-05.02.08
|
Boots the file located on disk1: and installs it to the default disk0:.
• This process removes any existing software packages, resets the configuration register to 0x2, and boots the system.
• After the primary RP boots, the standby RP downloads (synchronizes) the packages from the primary RP and boots automatically.
• Allow the system to fully boot.
• If you choose the option to format disk0:, the router configuration is cleared and you must enter a new root-system username and password when the router boot process completes.
• If you choose the option to clean disk0:, the system is fully booted when the CLI prompt is shown and the interfaces are created.
• The TURBOBOOT process takes some time. Please do not enter any commands until you are prompted to enter a username or until the CLI prompt appears.
Note A delay of 10 minutes or more occurs while the software is read from the flash disk (DDTS CSCed22546).
|
Examples
The following examples are provided:
•
Preparing the Standby RP
•
Setting the TURBOBOOT Variable
•
Booting the .vm Installation File
Preparing the Standby RP
The following example shows how to clear the boot and TFTP filename environment variables, set the configuration register to start the router in EXEC mode, and reset the standby RP:
rommon B2> unset TFTP_FILE
Setting the TURBOBOOT Variable
The following example shows how to set the TURBOBOOT variable on the primary RP and save the change:
rommon B1> TURBOBOOT=on,disk0,format
Booting the .vm Installation File
The following example shows how to boot the router using the specified .vm file on flash disk1:
rommon B1> boot disk1:/comp-hfr-mini.vm
Note
A delay of 10 minutes or more occurs while the software is read from the flash disk (DDTS CSCed22546).
What to Do Next
After the system is up, it is in normal EXEC mode, and you can execute the full range of CLI commands.
Note
If you chose the option to format disk0:, the router configuration is cleared and you must enter a root-system username and password when the boot process is complete.
After reinstalling the software, you might want to do one or more of the following:
1.
See the "Verifying the System Interfaces" section on page 7-22 for instructions to verify that the interfaces are up and properly configured.
2.
Install additional software from the PIE files, as necessary. See Chapter 5, "Managing Cisco IOS XR Software Packages," for more information.
3.
See the "Related Documents" section for a list of the additional documentation required to fully configure the router.
Recovering the Root Password
If the root password is forgotten, it can be recovered only at the designated shelf controller (DSC). To recover the password at the DSC, set the configuration register to 0x42 on the primary RP and reboot the router. When the router boots, a password recovery dialog appears. This dialog prompts you to reset the root-system username and password. After you save the new password, the configuration register automatically resets to the prior value (such as 0x2).
Password recovery procedures are described in the following sections:
•
Recovering the Root Password on Single-RP Routers
•
Recovering the Root Password on Redundant-RP Routers
Recovering the Root Password on Single-RP Routers
Use the following procedure to recover the router password from a router with a single RP.
Step 1
Place the router in ROM Monitor mode, as described in the "Entering ROM Monitor Mode" section.
Step 2
Set the RP configuration register to 0x42 at the ROMMON prompt:
Note
The configuration register is not an environment variable like TURBOBOOT (which is described earlier in this chapter). Do not enter an equal sign when entering the confreg command.
Step 3
Reset or power cycle the router so that the new setting can take effect:
Step 4
Press Return at the prompt to enter the password recovery dialog. Then enter the new root-system username and password and save the configuration.
router con0/0/CPU0 is now available
Press RETURN to get started.
--- Administration User Dialog ---
Enter root-system username: c12000
The following configuration command script was created:
secret 5 $1$5b3a$YCat5x.hUoAhZYWRrE0fI0
[0] Return back to the setup without saving this config.
[1] Save this configuration and exit.
Enter your selection [1]: 1
config register will be reset to 0x102
Use the 'configure' command to modify this configuration.
Recovering the Root Password on Redundant-RP Routers
Use the following procedure to recover the router password from a router with redundant RPs.
Step 1
Place both RPs in ROM Monitor mode, as described in the "Entering ROM Monitor Mode" section.
Step 2
Set the configuration register of the secondary RP to 0x0 so that the secondary RP does not take control during the password recovery:
Note
The configuration register is not an environment variable like TURBOBOOT (which is described earlier in this chapter). Do not enter an equal sign when entering the confreg command.
Step 3
Set the primary RP configuration register to 0x42:
Step 4
Reset or power cycle the router so that the new setting can take effect:
Step 5
Press Return at the prompt to enter the password recovery dialog. Then enter the new root-system username and password and save the configuration, as shown in the following example:
router con0/0/CPU0 is now available
Press RETURN to get started.
--- Administration User Dialog ---
Enter root-system username: c12000
The following configuration command script was created:
secret 5 $1$5b3a$YCat5x.hUoAhZYWRrE0fI0
[0] Return back to the setup without saving this config.
[1] Save this configuration and exit.
Enter your selection [1]: 1
config register will be reset to 0x102
Use the 'configure' command to modify this configuration.
Step 6
Set the configuration register of the secondary RP to 0x102:
Step 7
Reset the secondary RP so that the new setting can take effect and the secondary RP becomes operational:
Specifying an Alternative Configuration
Caution 
The default committed configuration (disk0:/config/startup) should be sufficient for most situations. The option described in this section is for rare cases when an alternative configuration is required. Use of this method can result in system errors or downtime.
To specify a temporary configuration file with the -a boot option, use the following procedure:
Step 1
Place both RPs in ROM Monitor mode, as described in the "Entering ROM Monitor Mode" section.
Step 2
Set the configuration register of the secondary RP to 0x0 so that the secondary RP does not take control:
Note
The configuration register is not an environment variable like TURBOBOOT (which is described earlier in this chapter). Do not enter an equal sign when entering the confreg command.
Step 3
Set the primary RP configuration register to 0x2:
Step 4
Enter the set command to display the current environment variable settings:
Note the filename set in the BOOT variable.
Step 5
Enter the boot command using the following command syntax:
boot image -a config-file-path
Replace image with the filename listed in the boot variable, and replace config-file-path with the path and filename for the configuration file. Example:
rommon 3> boot tftp://223.255.254.254/images/comp-hfr-mini.vm -a
/disk1:/cfgarchives/gold.conf
Note
The pathname should be a valid UNIX pathname (a slash [/] must be included after the device: "disk1:/").
Although this command causes the router to boot from an alternative configuration, the system reverts to the default committed configuration on the next system reload.
Step 6
Set the configuration register of the secondary RP to 0x102:
Step 7
Reset the secondary RP so that the new setting can take effect and the secondary RP becomes operational:
ROM Monitor Procedures
This section describes the following ROM Monitor tasks:
•
Entering ROM Monitor Mode
•
Displaying the Available ROM Monitor Commands and Options
•
Displaying the Configuration Register Setting
•
Displaying Environment Variable Settings
•
Saving Environment Variable Settings
•
Exiting ROM Monitor Mode
Entering ROM Monitor Mode
The following sections describe two ways to enter ROM Monitor mode:
•
Resetting the Configuration Register and Reloading the Router
•
Manually Halting the Initialization Process During System Reload
Resetting the Configuration Register and Reloading the Router
In normal operating conditions, it should not be necessary to enter ROM Monitor mode. If you do find it necessary to place the system in ROMMON, make sure that the system is in a steady state and that you are prepared for the consequences of a system reload. In particular, verify the items described in the "Prerequisites" section.
Note
If a standby RP is installed in the router, you must complete the steps for the standby after the primary RP has entered ROM Monitor mode.
Prerequisites
Before you place the router in ROM Monitor mode, verify that the system is in a steady state by doing the following:
1.
Prepare the primary RP:
a.
Anticipate substantial downtime, including the loss of packet forwarding on the system.
b.
Verify that all changes to the active router configuration are saved with the commit command in configuration mode.
c.
Verify that all changes to the active software set are saved with the install commit command in admin EXEC mode.
d.
Verify that all install commit processes are complete with the show install committed command in admin EXEC mode. This command displays the committed packages that become active during the next route