- Preface
- Overview of the Hardware and Software
- Setup for Initial Configuration
- Cisco IOS CLI for Initial Configuration
- Basic Router Configuration
- Configuring Backup Data Lines and Remote Management
- Upgrading the Cisco IOS Software
- Using CompactFlash Memory Cards
- Using ROM Monitor
- Changing the Configuration Register Settings
- Index
- Contents
- Platforms Supported by This Document
- Prerequisites for Using the ROM Monitor
- Information About the ROM Monitor
- How to Use the ROM Monitor—Typical Tasks
- Entering ROM Monitor Mode
- Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)
- Displaying Files in a File System (dir)
- Loading a System Image (boot)
- Modifying the Configuration Register
- Obtaining Information on USB Flash Devices
- Modifying the I/O Memory (iomemset)
- Upgrading of ROM Monitor command Using CiscoIOS
- Downloading the System Image (tftpdnld)
- Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)
- Exiting ROM Monitor Mode
Using ROM Monitor
First Published: May 27, 2010, OL-20356-01
Last Updated: October 25, 2017
Many users do not use the ROM monitor at all, unless during power up or reload, the router does not find a valid system image, the last digit of the boot field in the configuration register is 0, or you enter the Break key sequence of the terminal that is plugged into the router console port during the first 60 seconds after reloading the router.
This document describes how to use the ROM monitor to manually load a system image, upgrade the system image when there are no TFTP servers or network connections, or for disaster recovery.
Contents
Platforms Supported by This Document
This document describes use of the ROM monitor with the Cisco Connected Grid Router 2010.
Prerequisites for Using the ROM Monitor
Connect a terminal or PC to the router console port. For help, see the hardware installation guide for your router.
Information About the ROM Monitor
Before using the ROM monitor, you should understand the following concepts:
- ROM Monitor Mode Command Prompt
- Why is the Router in ROM Monitor Mode?
- When do I use ROM Monitor?
- Tips for Using ROM Monitor Commands
- Accessibility
ROM Monitor Mode Command Prompt
The ROM monitor uses the rommon x > command prompt. The x variable begins at one and increments each time you press Return or Enter in ROM monitor mode.
Why is the Router in ROM Monitor Mode?
The router boots to ROM monitor mode when one of the following occurs:
- During power up or reload, the router did not find a valid system image.
- The last digit of the boot field in the configuration register is 0 (for example, 0x100 or 0x0).
- You enter the Break key sequence (typically, Ctrl-Break) of the terminal that is plugged into the router console port during the first 60 seconds after reloading the router.
To exit ROM monitor mode, see the “Exiting ROM Monitor Mode” section.
When do I use ROM Monitor?
- Manually loading a system image—You can load a system image without configuring the router to load that image in future system reloads or power-cycles. This can be useful for testing a new system image or for troubleshooting. See the “Loading a System Image (boot)” section.
- Upgrading the system image when there are no TFTP servers or network connections, and a direct PC connection to the router console is the only viable option—See information about upgrading the system image in the configuration documentation for your router.
- Troubleshooting if the router crashes and hangs—See the “Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)” section.
- Recovering from a system disaster—Use one of the following methods for recovering the system image or configuration file:
Note
Recovering the system image is different from upgrading the system image. You need to recover the system image if it becomes corrupt or if it is deleted because of a disaster that affects the memory device severely enough to require deleting all data on the memory device to load a system image.
–
TFTP download (tftpdnld)—Use this method if you can connect a TFTP server directly to the fixed LAN port on your router. See the “Downloading the System Image (tftpdnld)” section.
Tips for Using ROM Monitor Commands
- ROM monitor commands are case sensitive.
- You can halt any ROM monitor command by entering the Break key sequence (Ctrl-Break) on the PC or terminal. The Break key sequence varies, depending on the software on your PC or terminal. If Ctrl-Break does not work, see the Standard Break Key Sequence Combinations During Password Recovery troubleshooting tech note.
- To find out which commands are available on your router and to display command syntax options, see the “Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)” section.
Accessibility
The Cisco Connected Grid Router 2010 can be configured using the Cisco command-line interface (CLI). The CLI conforms to accessibility code 508 because it is text based and it relies on a keyboard for navigation. All functions of the router can be configured and monitored using the CLI.
For a complete list of guidelines and Cisco products adherence to accessibility, see Cisco Accessibility Products.
How to Use the ROM Monitor—Typical Tasks
This section provides the following procedures:
- Entering ROM Monitor Mode
- Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)
- Displaying Files in a File System (dir)
- Loading a System Image (boot)
- Modifying the Configuration Register
- Obtaining Information on USB Flash Devices
- Modifying the I/O Memory (iomemset)
- Upgrading of ROM Monitor command Using Cisco IOS
- Downloading the System Image (tftpdnld)
- Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)
- Exiting ROM Monitor Mode
Note
This section does not describe how to perform all possible ROM monitor tasks. Use the command help to list and perform any tasks that are not described in this document. See the “Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)” section.
Entering ROM Monitor Mode
Prerequisites
Connect a terminal or PC to the router console port. For help, see the hardware installation guide for your router.
Using the Break Key Sequence to Interrupt the System Reload and Enter ROM Monitor Mode
This section describes how to enter ROM monitor mode by reloading the router and entering the Break key sequence.
Note Bit 8 controls the console Break key (see Table 1):
- Setting bit 8 (Factory default) causes the processor to ignore the console Break key.
- Clearing bit 8 causes the processor to interpret Break as a command to force the router into the ROM monitor mode, halting normal operation.
Break can always be sent in the first 60 seconds while the router is rebooting, regardless of the configuration register settings.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
||
|
|
||
Immediately press Ctrl - Break. |
Interrupts the router reload and enters ROM monitor mode.
|
Examples
This section provides an example of the reload command:
Sample Output for the reload Command
Note
Clearing bit 8 causes the processor to interpret Break as a command to force the router into the ROM monitor mode, halting normal operation.
Troubleshooting Tips
The Break key sequence varies, depending on the software on your PC or terminal. See Standard Break Key Sequence Combinations During Password Recovery.
What to Do Next
- Proceed to the “Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)” section.
- If you use the Break key sequence to enter ROM monitor mode when the router would otherwise have booted the system image, you can exit ROM monitor mode by doing one of the following:
–
Enter the i or reset command, which restarts the booting process and loads the system image.
–
Enter the cont command to continue the booting process and load the system image.
Setting the Configuration Register to Boot to ROM Monitor Mode
This section describes how to enter ROM monitor mode by setting the configuration register to boot to ROM monitor mode at the next system reload or power-cycle. For more information about the configuration register, see Changing the Configuration Register Settings.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
Examples
The following example shows how to set the configuration register to boot to ROM monitor mode:
What to Do Next
Proceed to the “Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)” section.
Displaying Commands and Command Syntax in ROM Monitor Mode (?, help, -?)
This section describes how to display ROM monitor commands and command syntax options.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
||
|
|
Examples
This section shows the help command example:
Displaying Files in a File System (dir)
To display a list of the files and directories in the file system, use the dir command, as shown in the following examples. You might need to enter the reset command before viewing the flash memory directory.
Loading a System Image (boot)
This section describes how to load a system image using the boot ROM monitor command.
Prerequisites
Determine the filename and location of the system image that you want to load. Two images can be downloaded for Cisco CGR 2010: cgr2010-universalk9-mz.SPA.151-1.T and cgr2010-universalnovpnk9-mpe-mz.SPA.151-1.T.
SUMMARY STEPS
1.
boot
or
boot flash: [ filename ]
or
boot filename tftpserver
or
boot [ filename ]
DETAILED STEPS
Examples
The following example shows how to load boot flash memory and the resulting command text output:
Note
The following warning message does not appear if the proper CompactFlash card is installed in the ISR.
What to Do Next
If you want to configure the router to load a specified image at the next system reload or power-cycle, see the following documents:
Modifying the Configuration Register
This section describes how to modify the configuration register using the confreg ROM monitor command. You can also modify the configuration register setting from the Cisco IOS CLI using the config-register command in global configuration mode.
Restrictions
The modified configuration register value is automatically written into NVRAM, but the new value does not take effect until you reset or power-cycle the router.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
Changes the configuration register settings while in ROM monitor mode. |
Examples
In the following example, the configuration register is set to boot the system image from flash memory:
In the following example, no value is entered; therefore, the system prompts for each bit in the register:
Obtaining Information on USB Flash Devices
This section describes how to obtain information on USB devices that are installed in the router. For instructions on booting from a USB flash device, see the “Loading a System Image (boot)” section.
SUMMARY STEPS
DETAILED STEPS
Examples
Sample Output for the dir usbFlash Command
In some cases, you need to use the reset command first.
rommon 8 > dir usbflash:
Please reset before executing this command
rommon 9 > reset
System Bootstrap, Version 12.4(20100226:194457) [petechiu-v150rm7 138], DEVELOPMENT SOFTWARE Copyright (c) 1994-2010 by cisco Systems, Inc.
Total memory size = 1024 MB
Field Upgradeable ROMMON Integrity test _______________________________________
ROM: Digitally Signed Development Software
CGR-2010/K9 platform with 1048576 Kbytes of main memory Main memory is configured to 72 bit mode with ECC enabled
Upgrade ROMMON initialized
rommon 1 >
-------------
Upgrade ROMMON initialized
rommon 1 > dir usbflash:
program load complete, entry point: 0x80903000, size: 0x4c440
open(): Open Error = -1
dir: cannot open device "usbflash:"
Note
The Cisco CGR 2010 in this example does not have USB flash.
Modifying the I/O Memory (iomemset)
This section describes how to modify the I/O memory percentage setting using the memory-size iomemset command.
Note
Use the iomemset command only if it is needed for temporarily setting the I/O memory percentage from ROM monitor mode. Using this command improperly can adversely affect the functioning of the router.
The Cisco IOS software can override the I/O memory percentage if the memory-size iomem command is set in the NVRAM configuration. If the Cisco IOS command is present in the NVRAM configuration, the I/O memory percentage set in the ROM monitor with the iomemset command is used only the first time the router is booted up. Subsequent reloads use the I/O memory percentage set using the memory-size iomem command that is saved in the NVRAM configuration.
If you need to set the router I/O memory permanently using a manual method, use the memory-size iomem Cisco IOS command. If you set the I/O memory percentage from the Cisco IOS software, you must restart the router for I/O memory to be properly set.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
iomemset i/o-memory percentage |
Examples
In the following example, the percentage of DRAM used for I/O memory is set to 15:
usage: iomemset [smartinit | 5 | 10 | 15 | 20 | 25 | 30 | 40 | 50 ]
rommon 3 >
rommon 3 > iomemset 15
Invoking this command will change the io memory percent
*****WARNING:IOS may not keep this value*****
Do you wish to continue? y/n: [n]: y
Upgrading of ROM Monitor command Using Cisco IOS
This section describes how to upgrade the ROM Monitor using Cisco IOS. The upgrade rom-monitor command results in a power-on reset of the router and the CLI will ask if you want to continue. If you answer yes, the CLI will proceed with the upgrade.
Downloading the System Image (tftpdnld)
This section describes how to download a Cisco IOS software image from a remote TFTP server to the router flash memory using the tftpdnld command in ROM monitor mode.
Before you can enter the tftpdnld command, you must set the ROM monitor environment variables.
Prerequisites
Connect the TFTP server to a fixed network port on your router.
Restrictions
- LAN ports on network modules or interface cards are not active in ROM monitor mode. Therefore, only a fixed port on your router can be used for a TFTP download. Use a fixed Ethernet port on the router that is either of the two Gigabit Ethernet ports on Cisco routers with those ports.
- You can only download files to the router. You cannot use the tftpdnld command to retrieve files from the router.
SUMMARY STEPS
3.
DEFAULT_GATEWAY= ip_address
5.
TFTP_FILE=[ directory-path / ]filename
7.
FE_SPEED_MODE=[0 | 1 | 2 | 3 | 4 | 5]
9.
GE_SPEED_MODE=[0 | 1 | 2 | 3 | 4 | 5]
12.
TFTP_DESTINATION=[ flash: | usbflash0: | usbflash1:]
DETAILED STEPS
Examples
Sample Output for Recovering the System Image (tftpdnld)
Sample Output for the set ROM Monitor Command
What to Do Next
If you want to configure the router to load a specified image at the next system reload or power-cycle, see the “ Loading and Managing System Images” section in Cisco IOS Configuration Fundamentals Command Reference .
Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)
This section lists and describes some ROM monitor commands that can be used to troubleshoot router crashes and hangs.
Most ROM monitor debug commands are functional only when the router crashes or hangs. If you enter a debug command when crash information is not available, the following error message appears:
The ROM monitor commands in this section are all optional and can be entered in any order.
Router Crashes
A router or system crash is a situation in which the system detects an unrecoverable error and restarts itself. The errors that cause crashes are typically detected by processor hardware, which automatically branches to special error-handling code in the ROM monitor. The ROM monitor identifies the error, prints a message, saves information about the failure, and restarts the system. For detailed information about troubleshooting crashes, see Troubleshooting Router Crashes and Understanding Software-forced Crashes.
Router Hangs
A router or system hang is a situation in which the system does not respond to input at the console port or to queries, such as Telnet and SNMP, sent from the network.
Router hangs are discussed in detail in Troubleshooting Router Hangs.
ROM Monitor Console Communication Failure
Under certain configuration situations where there is improper configuration, it can be impossible to establish a console connection with the router because of a speed mismatch or other incompatibility. The most obvious symptom is a set of erroneous characters in the console display.
If a ROM monitor failure of this type occurs, you may need to change a jumper setting on the motherboard so that the router can reboot for troubleshooting. Procedures for accessing the motherboard and jumper locations are described in the installation of internal components section of the hardware installation document for your router.
The jumper to be changed is DUART DFLT, which sets the console connection data baud rate to 9600, regardless of user configuration. The jumper forces the data rate to an acceptable value.
Restrictions
Do not manually reload or power-cycle the router unless reloading or power cycling is required for troubleshooting a router crash. System reload or power-cycle can cause important information that is needed for determining the root cause of the problem to be lost.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
(Optional) Obtains a stack trace.
|
|
|
|
(Optional) Displays the CPU context at the time of the fault. |
|
|
|
||
|
|
(Optional) Displays return information from the last booted system image. |
|
|
|
(Optional) Displays memory information, including: Alternatively, using the meminfo -l command provides information on supported DRAM configurations for the router. |
Examples
This section provides the following examples:
- Sample Output for the stack ROM Monitor Command
- Sample Output for the context ROM Monitor Command
- Sample Output for the frame ROM Monitor Command
- Sample Output for the sysret ROM Monitor Command
- Sample Output for the meminfo ROM Monitor Command
Sample Output for the stack ROM Monitor Command
Sample Output for the context ROM Monitor Command
Sample Output for the frame ROM Monitor Command
Sample Output for the sysret ROM Monitor Command
Sample Output for the meminfo ROM Monitor Command
You can also use the meminfo -l command to show the supported DRAM configurations for the router. The following is sample output for the command:
Troubleshooting Tips
Exiting ROM Monitor Mode
This section describes how to exit ROM monitor mode and enter the Cisco IOS command-line interface (CLI). The method that you use to exit ROM monitor mode depends on how your router entered ROM monitor mode:
- If you reload the router and enter the Break key sequence to enter ROM monitor mode when the router would otherwise have booted the system image, you can exit ROM monitor mode by doing either of the following:
–
Enter the i command or the reset command, which restarts the booting process and loads the system image.
–
Enter the cont command, which continues the booting process and loads the system image.
SUMMARY STEPS
2.
boot flash: [directory] [ filename ]
or
boot filename tftpserver
or
boot [ filename ]
DETAILED STEPS
|
|
|
|
|---|---|---|
|
|
Displays a list of the files and directories in flash memory.
|
|
boot flash: [directory] [ filename ] ROMMON > boot someimage 172.16.30.40 |
In order, the examples here direct the router to:
You can override the default boothelper image setting by setting the BOOTLDR Monitor environment variable to point to another image. Any system image can be used for this purpose. Note Options to the boot command are -x (load image but do not execute) and -v (verbose). |
Examples
Sample Output for the dir flash: Command in ROM Monitor mode
What to Do Next
If you want to configure the router to load a specified image at the next system reload or power-cycle, see the “ Loading and Managing System Images” section in Cisco IOS Configuration Fundamentals Command Reference .
Additional References
The following sections provide references related to using the ROM monitor.
Related Documents
|
|
|
|---|---|
Break key sequence combinations for entering ROM monitor mode within the first 60 seconds of rebooting the router |
Standard Break Key Sequence Combinations During Password Recovery |
Using the boot image (Rx-boot) to recover or upgrade the system image |
|
Cisco IOS Configuration Fundamentals and Network Management Configuration Guide |
|
Technical Assistance
|
|
|
|---|---|
Technical Assistance Center (TAC) home page, containing 30,000 pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.1 |
|
1.You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear. |
Feedback