Subject: 23. How can I debug a problem? What are all the debug commands?

To drop into debug monitor mode from the main console display, type the following characters in quick succession (within one second):

<ESC> [ <ESC> =

(escape-key, left-bracket, escape-key, equals-sign)

You will be presented with a ">" prompt. In this mode, debugging output is displayed by typing a command name (listed below). You can toggle multiple commands for output about more than one process. When you're done, make sure you turn off output, by entering the command name(s) again.

To quit debug mode, type "q".

Jeff Smith provided the following list of debug commands, and I have updated them with new commands in rev. 4.4B, using the same method (by poring over the output of strings -a mp1t1.bin).

WARNING: USE AT YOUR OWN RISK. Neither Ascend, Jeff, myself nor anyone else assume responsibility for any damage done to your hardware by executing any of the following commands. Please be careful.

These commands were derived from the Max image. They may or may not be applicable to other Ascend products.

AcctEvnt          Toggle acctevnt debug display (SNMP Accounting events?)
ansi              Send H channels ANSI style
assert            show and clear the last assert failure
BNCP              Toggle bncp debug output (BONDING?)
bridgeInfo        display bridge address buckets
briDisplay        Display the first n bytes of BRI messages 
brouterDebug      Toggle brouter debug display
buster            Reset other vender's BONDING units
bypassUserif      Toggle mode to jump directly to termsrv
bypassUserif      Toggle mode to jump directly to termsrv
callback          Toggle callback debug output
callBlocks        show networki call blocks
callRequests      show networki call requests
callroute         Toggle callroute debug display
callself          Toggle call self test debug output
cbState           Toggle Combinet debug messages 
clid              Fake clid detection
clockSource       show the current clock source
clrHistory        Clear history log
compress          Toggle compress debug display
core              Toggle core debug display
D <address>       Display Memory
debug             Display/alter memory/ports
dialEnabled       Toggle TS dial modem
DnsDebug          Toggle DNS Debug Messages
dnsDebug          Toggle DNS Debug Messages
dumpBytes         dumpbytes address length
dumpWord          Dump a single word of memory
dynamicToggle     Toggle DYNAMIC debug output
E <address>       Examine Memory
etherDisplay <n>  Display the first n bytes of ETHER messages 
EtherStats        Dump ethernet statistics
fatalHistory      List history log
fmark             Execute an fmark
frdlState         toggle frdlcall state display
frdump            dump Frame Relay if table 
frMgrdump         dump Frame Relay Mgr table 
frestore          restore configuration from flash
frState           Toggle for Frame Relay if messages 
hdlcdrv           Toggle hdlcdrv debug display
help              List all monitor commands
ipRoutes          Toggle IP route manager debug display
ipxConn           Display the IPX connection table
ipxSpoof          Toggle IPX spoofing debug display
lanval            Enable messages in lanval module
lcState           Toggle lancore state display
loopDisable       disable loop
loopEnable        enable loop
lpState           Toggle lanport state display
modemdrvState     Toggle modemdrv debug display
mpcmToggle        Toggle MPCM debug output
mppcm             Toggle MPPCM debug output
mppec             Toggle MPPEC debug output
mpToggle          Toggle MP debug output
netclock          Toggle netclock debug output
networki          Toggle networki debug display
noansi            Don't send H channels ANSI style
noidle            Toggle sending of idle messages
nompp             Toggle nompp mode
NsLookup          Perform DNS Lookup
NVRAMClear        Clear system configuration memory
perf              Turn on poor man's performance monitor
pools             Display pool allocation data (buffers)
portInfo          Dump portMgr info for slot 
pppfsm            Toggle pppfsm state change display
pppif             Toggle pppif debug display
quit              Exit from monitor to menus
radif             Enable Radius client debug messages
reservations      Show networki channel reservations
reset             Reset unit
restore           Restore configuration from tftp host [pre-4.4B versions]
revision          Set revision info
ripDebug          Toggle rip debug display
routmgr           Toggle routmgr debug display
save              Save configuration to tftp host [pre-4.4B versions]
session           Print session entry
setDslNT          Toggles PRI  TE/NT emulation
showperf          Results performance monitor
showtrace         Display results of last trace
spyderDump        Dump spyder receive chains
spyderStats       Dump spyder counters
stackUsage        Display stack usage
tcpbind           Toggle tcpbind debug output
telnetDebug       Toggle telnet debug output
telnetDebug       Toggle telnet debug output
termSrv           Toggle TermSrv debug messages
termSrvConsole    Toggle console is remote mode
termSrvState      Toggle TermSrv debug messages 
tloadcode	  Load new software code using TFTP
trace             Turn on poor man's logic analyzer
trestore          Restore configuration from tftp host [4.4B and later]
tsave             Save configuration to tftp host [4.4B and later]
tsConsole         Treat console as remote unit (toggle)
tsdial            Toggle ts dial debug output
tsdriver          Toggle tsdriver debug output
tsDump            Dump Terminal server table entry
tserver           Dump Terminal server table entry 
tssdrvState       Toggle tssdrv state display
tssmgrCrissCross  Criss-cross highways on slot
tssmgrDebug       Toggle tssmgr debug display
tstcp             Toggle tstcp debug output
twCounts          Display TCP vs WAN data counts
update            Enable feature
useEtherData      Toggle use of ether data card
wanDisplay <n>    Display the first n bytes of WAN messages 
wanNext <n>       Display the first n bytes of the next WAN connection
wanToggle         Toggle WANDRV debug output
wdState           Toggle wandata state display

Go to Previous Question
Go to Next Question
Go to Table of Contents