Cisco 3725 Software Configuration Guide - Page 185

Debugging Commands, Configuration Register Commands

Page 185 highlights

Appendix C Using the ROM Monitor Entering the ROM Monitor Mode - upgrade rom-monitor preference-Selects the version of ROMMON to be loaded the next time the router is reloaded. This command is used in the Cisco IOS exec mode. - rommon-pref-Used in ROMMON command mode. Provides the same information as upgrade rom-monitor preference command in the Cisco IOS exec mode. Debugging Commands Most debugging commands are functional only when Cisco IOS software has crashed or is aborted. If you enter a debugging command and Cisco IOS crash information is not available, the following error message appears: "xxx: kernel context state is invalid, can not proceed." • stack or k-Produces a stack trace. • context-Displasy processor context. • frame-Displays an individual stack frame. • sysret-Displays return information from the last booted system image. This information 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: a SegV exception pc:0x802b1040, error address: 0x802b1040 Stack Trace: FP: 0x80908398, PC: 0x802b102c FP: 0x809083b0, PC: 0x802b0b88 FP: 0x809083d8, PC: 0x8017039c FP: 0x809083e8, PC: 0x8016f764 Configuration Register Commands The virtual configuration register resides in NVRAM. You can display or modify the virtual configuration register from either the ROM monitor or the operating system software. To change the virtual configuration register from the ROM monitor, enter the confreg command by itself for menu mode, or enter the new value of the register in hexadecimal. • confreg [hexnum]-Changes the virtual configuration register to the value specified. The value is always interpreted as hexadecimal. Note Entering confreg without an argument displays the contents of the virtual configuration register and prompts you to alter the contents by describing the meaning of each bit. In either case, the new virtual configuration register value is written into NVRAM, but is not effective until you reset or power-cycle the router. The following display shows an example of the confreg command: rommon 7 > confreg Configuration Summary enabled are: OL-1957-04 Software Configuration Guide for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers C-5

  • 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
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

C-5
Software Configuration Guide for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-04
Appendix C
Using the ROM Monitor
Entering the ROM Monitor Mode
upgrade rom-monitor preference<readonly|upgrade>
—Selects the version of ROMMON to
be loaded the next time the router is reloaded. This command is used in the Cisco IOS exec
mode.
rommon-pref
—Used in ROMMON command mode. Provides the same information as
upgrade rom-monitor preference
command in the Cisco IOS exec mode.
Debugging Commands
Most debugging commands are functional only when Cisco IOS software has crashed or is aborted. If
you enter a debugging command and Cisco IOS crash information is not available, the following error
message appears:
“xxx: kernel context state is invalid, can not proceed.”
stack
or
k
—Produces a stack trace.
context
—Displasy processor context.
frame
—Displays an individual stack frame.
sysret
—Displays return information from the last booted system image. This information 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: a SegV exception
pc:0x802b1040,
error address: 0x802b1040
Stack Trace:
FP: 0x80908398, PC: 0x802b102c
FP: 0x809083b0, PC: 0x802b0b88
FP: 0x809083d8, PC: 0x8017039c
FP: 0x809083e8, PC: 0x8016f764
Configuration Register Commands
The virtual configuration register resides in NVRAM. You can display or modify the virtual
configuration register from either the ROM monitor or the operating system software.
To change the virtual configuration register from the ROM monitor, enter the
confreg
command by itself
for menu mode, or enter the new value of the register in hexadecimal.
confreg
[
hexnum
]—Changes the virtual configuration register to the value specified. The value is
always interpreted as hexadecimal.
Note
Entering
confreg
without an argument displays the contents of the virtual configuration register and
prompts you to alter the contents by describing the meaning of each bit. In either case, the new virtual
configuration register value is written into NVRAM, but is not effective until you reset or power-cycle
the router.
The following display shows an example of the
confreg
command:
rommon 7 >
confreg
Configuration Summary
enabled are: