Cisco WS-C4003-RF Hardware Maintenance Manual - Page 130

Debugging Commands, Configuration Register, utility will print a before and after view

Page 130 highlights

Entering the ROM Monitor Program Debugging Commands Most of the debugging commands are functional only when the Cisco IOS software has crashed or is aborted. If you enter the debug commands and Cisco IOS crash information is not available, the screen will display the following error message: "xxx: kernel context state is invalid, can not proceed." • stack or k-Produces a stack trace. • context-Displays the processor context. • frame-Displays an individual stack frame. • sysret-Displays the return information from the last booted system image. This includes the reason for terminating the image, a stack dump of up to eight frames, and if an exception is involved, the address where the exception occurred. For example: rommon 8 > sysret System Return Info: count: 19, reason: user break pc:0x60043754, error address: 0x0 Stack Trace: FP: 0x80007e78, PC: 0x60043754 FP: 0x80007ed8, PC: 0x6001540c FP: 0x80007ef8, PC: 0x600087f0 FP: 0x80007f18, PC: 0x80008734 • 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). rommon 9 > meminfo Main memory size: 8 MB. Packet memory size: 4 MB Available main memory starts at 0xa000e001, size 0x7f1fff Packet memory starts at 0xa8000000 NVRAM size: 0x20000 Configuration Register The configuration register resides in NVRAM. The configuration register is identical in operation to other Cisco routers. Enter confreg for the menu-driven system, or enter the new value of the register in hexadecimal. Note The value is always interpreted as hex. The confreg utility will print a before and after view of the configuration register when used in menu-driven mode. • confreg [hexnum]-Executing the confreg command with the argument hexnum will change the virtual configuration register to match the hex number specified. Without the argument, confreg will dump the contents of the virtual configuration register in English and allow the user to alter the contents. The user is prompted to change or keep the information held in each bit of the virtual configuration register. In either case the new virtual configuration register value is written into NVRAM and does not take effect until the user resets or power cycles the platform. D-4 Cisco 4000 Series Hardware Installation and Maintenance

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143

D-4
Cisco 4000 Series Hardware Installation and Maintenance
Entering the ROM Monitor Program
Debugging Commands
Most of the debugging commands are functional only when the Cisco IOS software has crashed or
is aborted. If you enter the debug commands and Cisco IOS crash information is not available, the
screen will display the following error message:
“xxx: kernel context state is invalid, can not proceed."
stack or k—Produces a stack trace.
context—
Displays the processor context.
frame—Displays an individual stack frame.
sysret—Displays the return information from the last booted system image. This includes the
reason for terminating the image, a stack dump of up to eight frames, and if an exception is
involved, the address where the exception occurred.
For example:
rommon 8 >
sysret
System Return Info:
count: 19,
reason: user break
pc:0x60043754,
error address: 0x0
Stack Trace:
FP: 0x80007e78, PC: 0x60043754
FP: 0x80007ed8, PC: 0x6001540c
FP: 0x80007ef8, PC: 0x600087f0
FP: 0x80007f18, PC: 0x80008734
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).
rommon 9 >
meminfo
Main memory size: 8 MB. Packet memory size: 4 MB
Available main memory starts at 0xa000e001, size 0x7f1fff
Packet memory starts at 0xa8000000
NVRAM size: 0x20000
Configuration Register
The configuration register resides in NVRAM. The configuration register is identical in operation to
other Cisco routers. Enter
confreg
for the menu-driven system, or enter the new value of the register
in hexadecimal.
Note
The value is always interpreted as hex. The
confreg
utility will print a before and after view
of the configuration register when used in menu-driven mode.
confreg
[
hexnum
]—Executing the
confreg
command with the argument
hexnum
will change the
virtual configuration register to match the hex number specified. Without the argument,
confreg
will dump the contents of the virtual configuration register in English and allow the user to alter
the contents. The user is prompted to change or keep the information held in each bit of the virtual
configuration register. In either case the new virtual configuration register value is written into
NVRAM and does not take effect until the user resets or power cycles the platform.