-7
Cisco AS5350 and Cisco AS5400 Universal Gateway Software Configuration Guide
OL-3418-02 B0
Appendix
ROM Monitor Commands
frame print out a selected stack frame
hardware_info display hardware information
help monitor builtin command help
history monitor command history
meminfo memory information (-spd dumps SDRAM cookie)
repeat repeat a monitor command
reset system reset
set show all monitor variables
show_spd show all SPD data
sleep millisecond sleep command
stack produce a stack trace
sync write monitor environment to NVRAM
sysret print out info from last system return
unalias unset an alias
unset unset a monitor variable
•
history or h—Displays the command history, that is, the last 16 commands executed in the monitor
environment.
•
meminfo—Displays the size (in bytes) the starting address, the available range of the main memory,
the starting point and size of packet memory, and the size of nonvolatile memory (NVRAM).
For example:
rommon 9 > meminfo
Main memory size:128 MB. Packet memory size:64 MB
Available main memory starts at 0xa000e000, size 0x7ff2000
Packet memory starts at 0xa8000000
NVRAM size:0x80000
Main memory control register:0xbe9022f4
Shared memory control register:0x00000202
•
repeat [number or string] [count] or r—Repeats the specified command. Without an argument,
repeats the last command. The optional command number (from the history list) or match string
specifies which command to repeat. In the case of the match string, the most recent command to
begin with the specified string will be re-executed. If the string includes spaces, you must define it
using quotes. The count option allows you to repeat the command more than once.
•
reset or i—Resets and initializes the system, similar to power-on.
•
set—Displays all the monitor variables and their values.
•
stack [num]—Produces a stack trace of the num frames. The default is 5. The command dumps from
the kernel stack and the process stack (if one is available) of a booted image.
For example:
rommon 5 > stack 8
Stack trace:
PC = 0x02004adc
Frame 00: FP = 0x02003938 RA = 0x02005f2a
Frame 01: FP = 0x02003948 RA = 0x02005df0
Frame 02: FP = 0x02003960 RA = 0x020050ee
Frame 03: FP = 0x02003994 RA = 0x02004034
Frame 04: FP = 0x02003b00 RA = 0x00012ca6
•
sync—Writes the working in-core copy of the environment variables and aliases to NVRAM so that
they are read on the next reset.