Академический Документы
Профессиональный Документы
Культура Документы
The ROM monitor is a bootstrap program that initializes the hardware and boots the
Cisco IOS-XR software when you power on or restart a Cisco CRS-1 Series Carrier Routing System
router (Cisco CRS-1 Series router) . ROM monitor mode is also known as “ROMMON,” which reflects
the command-line interface (CLI) prompt for the mode.
rommon B1>
During normal operation, users do not interact with ROMMON. This mode is accessed only by manually
interrupting the boot process and placing the system in ROMMON. Once in ROMMON, you can perform
ROM monitor tasks, including reinstalling the Cisco IOS-XR software, recovering passwords, and
performing other diagnostic tasks.
The ROM monitor CLI mode is accessible only from a terminal connected directly to the Console port
of the primary and standby route processors (RPs). This chapter describes the procedures to enter ROM
monitor mode and perform the most common ROM monitor tasks.
Contents
This chapter contains the following sections:
• Entering ROM Monitor Mode, page A-176
– Reset the Configuration Register and Reload the Router, page A-176
– Manually Halt the Initialization Process During System Reload, page A-180
• Configuration Register Settings, page A-180
– Commonly Used Configuration Register Value Settings, page A-180
– Changing the Configuration Register Setting from EXEC Mode, page A-181
– Changing the Configuration Register from ROM Monitor Mode, page A-183
• Reinstalling the Cisco IOS-XR Software from ROMMON, page A-183
– Bootable .vm Software Images, page A-184
– Understanding the TFTP Environmental Variables in ROMMON, page A-185
– Understanding the Easybake Variables, page A-186
– Reinstall the Software from an Image Located on a TFTP server, page A-187
– Reinstall the Software from a .vm Located on Flash disk1:, page A-191
Prerequisites
Before you place the router in ROMMON mode, verify that the system is in a steady state, including the
following:
1. Prepare the primary RP:
a. Anticipate significant downtime, including 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
EXEC mode.
d. Verify that all install commit processes are complete with the show install committed
command in EXEC mode. This command displays the committed packages that become active
during the next router boot.
2. Verify the other nodes in the system are in a steady state.
a. If a standby RP is installed, verify that it is in the “ready” state with the show redundancy
command in EXEC mode.
b. Verify that all available nodes in the system are in HFROS-RUNNING state with show
platform command in EXEC mode.
After you have verified that the system is in a stable state, you can enter ROM monitor mode by resetting
the configuration register setting, as described in the following steps.
SUMMARY STEPS
Complete the following steps in the order shown to ensure that the configuration register setting is
consistent between the Cisco IOS-XR software and the ROM monitor of the Cisco CRS-1 Series router.
Note If a standby RP is installed in the router, you must also complete the steps for the standby after the
primary RP has entered ROM monitor mode.
1. Verify that the router is in a steady state, as described in the “Prerequisites” section on page A-176.
2. Connect a terminal to the primary RP console port.
3. configure
4. config-register 0x0
5. commit
6. no config-register 0x0
7. commit
8. end
9. reload
10. Repeat these steps for the standby RP after the primary RP has entered ROMMON. Both RPs must
be in ROMMON mode.
DETAILED STEPS
Example:
RP/0/RP0/CPU0:router# configure
Example:
RP/0/RP0/CPU0:router(config)# commit
Step 8 end Exits configuration mode.
Example:
RP/0/RP0/CPU0:router(config)# end
Step 9 reload Reloads the system to enter ROM monitor mode.
Example:
RP/0/RP0/CPU0:router# reload
Step 10 rommon B1> Allows you to boot the system manually or perform
other ROM monitor tasks.
Step 11 Repeat these steps for the standby RP after the primary RP has When you place the primary RP in ROMMON mode,
entered ROMMON. Both RPs must be in ROMMON mode. the system will fail over to the standby RP, which
then becomes the primary.
If the router contains two RPs, repeat these steps for
the second RP. Both RPs must be in ROMMON
mode.
Initializing NVRAM...
Testing a portion of DDR SDRAM ...done
Reading ID EEPROMs ...
Initializing SQUID ...
Initializing PCI ...
rommon B1 >
This message usually appears during the first 20 seconds of system startup. It may be necessary to press
the Ctrl-C keys repeatedly during this time to ensure the initialization process stops and the system
enters ROMMON.
This operation can be performed only from a terminal directly connected to the router console port. See
the “Connecting and Communicating with the Cisco CRS-1 Series Router” section on page 1-16 for
more information.
Note If a standby RP is installed in the system, repeat this process for both RPs. When the primary RP is
placed in ROMMON, it fails over to the standby RP, which can then also be placed in ROMMON.
Note By default, the configuration register value is 0x2, which automatically boots the system to normal
EXEC mode.
Note To view the current configuration register setting, enter the show variables boot command in EXEC
mode.
Complete the following steps in the order shown to ensure that the configuration register setting is
consistent between the Cisco IOS-XR software and the ROM monitor of the Cisco CRS-1 Series router.
SUMMARY STEPS
DETAILED STEPS
Example:
RP/0/RP0/CPU0:router# configure
Example: Warning You must commit the setting and enter the
RP/0/RP0/CPU0:router(config)# commit
following “no config-register 0x0” command for
the settings to take effect. Refer to DDTS#
CSCec84700 for more information on this
requirement.
Example:
RP/0/RP0/CPU0:router(config)# commit
Step 7 end Exits configuration mode.
Example:
RP/0/RP0/CPU0:router(config)# end
Step 8 reload Reloads the system for the changes to take effect.
Example:
RP/0/RP0/CPU0:router# reload
EXAMPLE
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# config-register value
RP/0/RP0/CPU0:router(config)# commit
RP/0/RP0/CPU0:router(config)# no config-register value
RP/0/RP0/CPU0:router(config)# commit
RP/0/RP0/CPU0:router(config)# end
RP/0/RP0/CPU0:router# reload
SUMMARY STEPS
1. confreg value
2. reset
DETAILED STEPS
Step 2 reset Reloads the system for the changes to take effect.
Example:
rommon B1> reset
EXAMPLE
rommon B1> confreg 0x2
You must reset or power cycle for new config to take effect.
rommon B1> reset
The standard way to install new software on your router is by using the install CLI commands in EXEC
mode. However, if the router is unable to boot the Cisco IOS-XR software, or if you wish to completely
replace the existing software, you can reinstall the software while in ROM monitor mode.
This section describes the process to reinstall the Cisco IOS-XR software from a .vm image.
• The standard method to reinstall the software is to boot a .vm image located on a TFTP server.
• If a TFTP server is not available, copy the necessary.vm image to flash disk1: while the router is still
in EXEC mode. This process is described in the “Installing or Downloading Files from a Network
Server” section on page 6-110.
• After the image is on flash disk1:, complete the instructions in the “Reinstall the Software from a
.vm Located on Flash disk1:” section on page A-191.
Contents
This section includes the following topics:
• “Overview”
• “Reinstall the Software from an Image Located on a TFTP server”
• “Reinstall the Software from a .vm Located on Flash disk1:”
• “What to Do Next”
Overview
The following sections provide an overview of reinstalling software from ROMMON:
• “Bootable .vm Software Images”
• “Understanding the TFTP Environmental Variables in ROMMON”
• “Understanding the Easybake Variables”
Note Only Cisco IOS-XR software installation files with the .vm extension can be installed from ROMMON.
Note Environmental values that are not saved with the sync command are discarded whenever the system is
reset or reloaded.
Examples
Warning Use only the Easybake variables shown in Table A-4 when booting a .vm image from ROMMON. Use
of any variable not shown in this list could result in serious system errors.
Prerequisites
Before you begin, collect the following information.
• IP address of your router
• Subnet mask of your router
• IP address of the default gateway of 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 your router
SUMMARY STEPS
c. EASYBAKE=variable
d. sync
6. On the primary RP, boot the .vm installation file from the TFTP server:
rommon B1> boot tftp://server/dir/filename
DETAILED STEPS
Example:
rommon B1> IP_ADDRESS=1.1.1.1
rommon B1> IP_SUBNET_MASK=255.255.254.0
rommon B1> DEFAULT_GATEWAY=1.1.0.1
Examples
The following examples are provided:
On the primary RP, set the ROMMON variables that define the IP locations of your router and the TFTP
server where the bootable .vm file is located:
rommon B1> IP_ADDRESS=1.1.1.1
rommon B1> IP_SUBNET_MASK=255.255.254.0
rommon B1> DEFAULT_GATEWAY=1.1.0.1
On the primary RP, boot the .vm installation file from the TFTP server:
boot tftp://223.255.254.254/softdir/comp-hfr-mini.vm
IP_ADDRESS: 1.1.1.1
IP_SUBNET_MASK: 255.0.0.0
DEFAULT_GATEWAY: 1.1.0.1
TFTP_SERVER: 223.0.0.0
TFTP_FILE: /softdir/comp-hfr-mini.vm
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).
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 the internal flash disk0: can be used to store
active software and configurations. See the “File Storage” section on page 1-13 for more information.
Prerequisites
A valid.vm image as described in the “Bootable .vm Software Images” section on page A-184, must be
located on the removable flash disk (disk1:). The software can be installed only using a .vm file located
on disk1: or TFTP server.
SUMMARY STEPS
a. unset BOOT
b. unset TFTP_FILE
c. EASYBAKE=0x100000001
d. sync
5. On the primary RP, boot the .vm installation file from disk1:.
boot disk1:/directory/filename
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).
DETAILED STEPS
Example:
rommon B1> sync
Examples
The following examples are provided:
• “Prepare the Standby RP”
• “Set the Easybake Variable”
• “Boot the .vm Installation File”
On the primary RP, set the Easybake variable and save the changes:
rommon B1> EASYBAKE=0x100000001
rommon B1> sync
On the primary RP, boot the .vm installation file from disk1:.
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, where you can execute the full range of CLI
commands.
Note If you chose the option to format disk0:, the router enters Setup mode. The Setup mode prompts allow
you to enter the initial configurations, as described in the “Verify the System After Initial Bring Up”
section on page 4-76. Also, see the “Enter the Initial Configuration Using the Setup Mode Prompts”
section on page 4-73.
1. See the “Interfaces Not Coming Up” section on page 9-171 for instructions to verify that the
interfaces are up and properly configured.
2. Install additional software from the PIE files, as necessary. See Chapter 6, “Adding and Activating
Cisco IOS-XR Software Packages,” for more information.
3. See Appendix C, “Related Cisco Systems Documentation,” for a list of the additional documentation
to fully configure the router.
Warning The default committed configuration (disk0:/config/startup) should be sufficient for most situations.
The options described in this section are for rare cases when an alternative configuration is required.
Use of these methods can result in system errors or downtime.
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.
Example:
rommon B1> boot tftp://223.255.254.254/images/comp-hfr-mini.vm -a
/disk1:/cfgarchives/gold.conf
Note The path name should be a valid unix path name (a slash “/” must be included after the device “disk1:/”).
Disaster Recovery
If the router is unable to boot the Cisco IOS-XR software from the local storage device, the router
attempts to find a boot image until you press Ctrl-C, as described in the “Manually Halt the Initialization
Process During System Reload” section on page A-180.
From ROM monitor mode, you can boot an alternative Cisco IOS-XR software image, or issue one of
the available ROM monitor commands.
• For a summary of the available commands in ROM monitor mode, see the “Viewing the Available
ROM Monitor Commands and Options” section on page A-197.
• To reinstall the Cisco IOS-XR software from a bootable .vm image on a local device or TFTP server,
see the “Reinstalling the Cisco IOS-XR Software from ROMMON” section on page A-183.
Step 1 Set the primary RP configuration register to 0x40 at the ROMMON prompt and boot the router.
rommon 1 > confreg 0x40
Step 2 You must reset or power cycle for the new setting to take effect.
Step 3 Press Return at the prompt to enter the password recovery dialog. Then enter the new root username and
password.
router con0_0_0 is now available
username user_a
password 7 1105180741
group root-system
!
end
[0] Go to the command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration and exit.
Enter your selection [2]:
Username: user_a
Password:
RP/0/RP0/CPU0:router#
Command Description
help or ? Displays a summary of all available ROM monitor commands.
-? Displays information about command syntax.
EXAMPLE
Enter the “?” at the command prompt to display a list of the commands available in ROM monitor mode.
Note Commands are case sensitive. You can halt any command by pressing Ctrl-C on a terminal.
rommon B5 > ?
alias set and display aliases command
show_bcm_links Show Links status on Broadcom Switches
show_bcm Show Broadcom Switches Information
Tip The first RP to enter EXEC mode becomes the primary RP. You can determine which RP is the
primary RP by resetting that card to EXEC mode first, and then waiting 1 to 2 minutes to allow it to
boot fully. You can also fail over to the standby RP at any time with the failover redundancy
command in EXEC mode.
SUMMARY STEPS
1. confreg 0x2
2. reset
DETAILED STEPS
SUMMARY STEPS
1. confreg
2. Respond to each prompt as instructed.
3. reset
EXAMPLE
rommon B1> confreg
Configuration Summary
(Virtual Configuration Register: 0x0)
enabled are:
console baud: 9600
boot: the ROM Monitor
Configuration Summary
(Virtual Configuration Register: 0x2)
enabled are:
console baud: 9600
boot: image specified by the boot system commands
You must reset or power cycle for new config to take effect
rommon B1> reset
Note MBI validation mode causes the router to boot the startup Cisco IOS-XR software and configuration.