- Preface
- Overview of the Hardware and Software
- Basic Router Configuration
- Configuring Ethernet CFM and Y.1731 Performance Monitoring on Layer 3 Interfaces
- Configuring Ethernet Virtual Connection Bridge Domain
- Configuring EtherChannel
- Configuring Backup Data Lines and Remote Management
- Configuring Power Efficiency Management
- Configuring Security Features
- Configuring Identity Features on Layer 3 Interface
- Unified Communications on Cisco Integrated Services Routers
- Configuring Next-Generation High-Density PVDM3 Modules
- Multi-Gigabit Fabric on the Router
- Upgrading the Cisco IOS Software
- Wireless Overview
- Configuring the Wireless Device
- Configuring the Radio
- Administering the Wireless Device
- Cisco IOS CLI for Initial Configuration
- Using CompactFlash Memory Cards
- Using ROM Monitor
- Changing the Configuration Register Settings
- 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 (confreg)
- Obtaining Information on USB Flash Devices
- Modifying the I/O Memory (iomemset)
- Recovering the System Image (tftpdnld)
- Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)
- Exiting ROM Monitor Mode
Using ROM Monitor
The ROM monitor is accessed during power up or reload when 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 during the first 5 seconds after reloading the router.
The following sections describe how to use the ROM monitor in the Cisco 3900 series, 2900 series, 1900 series integrated services routers (ISRs) to manually load a system image or upgrade the system image for disaster, or when there are no TFTP servers or network connections.
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 1 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).
- The Break key sequence was entered 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?
Use ROM monitor in the following situations:
- 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.
- During troubleshooting if the router crashes and hangs—See the “Troubleshooting Crashes and Hangs (stack, context, frame, sysret, meminfo)” section.
- Disaster recovery—Use one of the following methods for recovering the system image or configuration file:
– TFTP download (tftpdnld)—Use this method if you can connect a TFTP server directly to the fixed LAN port on your router. See the “Recovering the System Image (tftpdnld)” section.
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 in order to load a system image.
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 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
This product 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 through the CLI.
For a complete list of guidelines and Cisco products adherence to accessibility, see the Cisco Accessibility Products document at:
http://www.cisco.com/web/about/responsibility/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 (confreg)
- Obtaining Information on USB Flash Devices
- Modifying the I/O Memory (iomemset)
- Recovering 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 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
To enter ROM monitor mode by reloading the router and entering the Break key sequence, follow these steps.
SUMMARY STEPS
DETAILED STEPS
|
|
|
---|---|---|
|
||
|
||
|
Interrupts the router reload and enters ROM monitor mode.
|
Example
Sample Output for the reload Command
Troubleshooting Tips
The Break key sequence varies, depending on the software on your PC or terminal. See the Standard Break Key Sequence Combinations During Password Recovery tech note.
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, which continues the booting process and loads 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 the Changing the Configuration Register Settings document at:
http://www.cisco.com/en/US/docs/routers/access/1800/1841/software/configuration/guide/b_creg.html
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
Sample Output for the help ROM Monitor Command
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 example:
Loading a System Image (boot)
This section describes how to load a system image by using the boot ROM monitor command.
Prerequisites
Determine the filename and location of the system image that you want to load.
SUMMARY STEPS
1. boot
or
boot flash0: [ filename ]
or
boot filename tftpserver
or
boot [ filename ]
or
boot usbflash0: [ filename ]
DETAILED STEPS
|
|
|
---|---|---|
boot filename tftpserver 1 ROMMON > boot someimage 172.16.30.40 |
In order, the examples here direct the router to: Note In IOS, flash0 will be aliased onto flash.
Note Platforms can boot from USB in ROM monitor with or without a compact flash device. It is not necessary to use a bootloader image from the compact flash device. Partitions, such as usbflash0:2:image_name, are not supported on USB flash drives. The boot usbflash<x>: command will boot the first file on the device, if it is a valid image. 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. |
1.Cisco 3925E and Cisco 3945E do not support this boot option. |
Examples
The following example shows how to load boot flash memory and USB boot flash memory:
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:
- Booting Commands ” chapter of Cisco IOS Configuration Fundamentals Command Reference
- Cisco IOS Configuration Fundamentals Configuration Guide
Modifying the Configuration Register (confreg)
This section describes how to modify the configuration register by using the confreg ROM monitor command. You can also modify the configuration register setting from the Cisco IOS command-line interface (CLI) by 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
2 54212244 -rw- c2900-universalk9-mz
Modifying the I/O Memory (iomemset)
This section describes how to modify the I/O memory by using the memory-size iomemset command.
Note Use the iomemset command only when it is necessary to temporarily set the I/O memory from the 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 by using the memory-size iomem command that is saved in the NVRAM configuration.
If you need to set the router I/O memory permanently by using a manual method, use the memory-size iomem Cisco IOS command. If you set the I/O memory from the Cisco IOS software, you must restart the router for I/O memory to be set properly.
When the configured I/O memory exceeds the IOS limit (1G), IOS will automatically set an appropriate I/O memory size and print this message: IOMEM size calculated is greater than maximum allowed during boot up.
SUMMARY STEPS
DETAILED STEPS
|
|
|
---|---|---|
iomemset i/o-memory percentage |
Reallocates the percentage of DRAM used for I/O memory and processor memory. |
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
-------------------------------------------------
Recovering 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 by 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 TFTP download. This can be 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. GE_SPEED_MODE = [ 0 | 1 | 2 | 3 | 4 | 5 ]
8. TFTP_MEDIA_TYPE = [ 0 | 1 ]
10. TFTP_DESTINATION=[flash0 : | flash1: | usbflash0: | usbflash1: ]
11. TFTP_MACADDR = MAC_address
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 the Troubleshooting Router Crashes and Understanding Software-forced Crashes tech notes.
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 sent from the network, such as Telnet and Simple Network Management Protocol (SNMP).
Router hangs are discussed in detail in the Troubleshooting Router Hangs tech note.
ROM Monitor Console Communication Failure
Under certain mis-configuration situations, it can be impossible to establish a console connection with the router due to a speed mismatch or other incompatibility. The most obvious symptom is 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 boot 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 rate to 9600 regardless of user configuration. The jumper forces the data rate to a known good value.
Restrictions
Do not manually reload or power-cycle the router unless reloading or power cycling is required for troubleshooting a router crash. The system reload or power-cycle can cause important information to be lost that is needed for determining the root cause of the problem.
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 flash0: [directory] [ filename ]
or
boot filename tftpserver
or
boot [ filename ]
DETAILED STEPS
|
|
|
---|---|---|
|
Displays a list of the files and directories in flash memory.
|
|
boot flash0: [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 |
ROM Monitor Download Procedures for Cisco 2691, Cisco, 3631, Cisco 3725, and Cisco 3745 Routers |
|
Using the boot image (Rx-boot) to recover or upgrade the system image |
|
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.2 |
2.You must have an account at 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. |