Debug commands
UPDATED: August 31, 1999

SUMMARY:

The PortMaster (TM) has many debugging masks and commands built in that can be useful when trouble-shooting a particular problem. Below lists the various debug commands. Note that in order to see the debug information you have to type the following from the PortMaster command prompt:

set console

The 'set console' command by itself will send various PortMaster related messages to the screen. One can issue the 'reset console' command that will cause the console session to be turned off from the active session.

0x0   debug off
0x18  log route updates
0x51  PPP/LMI/Annex-D status
0x54  last 60 characters in/out and flow control
      status on show port watch FLASH
0x74  last 60 chars I/O
0x75  last 60 chars I/O - verbose
0x78  telnet negotiation options
0x81  ARP updates
0x1100 set debug rip

clock on|off
 Enables time stamping of debug output
isdn   on|off
 View connects, disconnects, SPID registering, 07.
isdn-d on|off
 ISDN-frame debugging
isdn-m on|off
 ISDN-low level debugging
choicenet on|off
 Choicenet debugging
ospf-hello on|off
 OSPF hello packets
ospf-event on|off
 Changes in states between neighbors
ospf-lsu on|off
 Link state update packets
ospf-lsa on|off
 Link state 0 packets
ospf-dbdesc on|off
 Displays description of the OSPF database
ospf-error
 Displays problems in differing neighbor configuration
ospf-routing
 Shows when routing table and OSPF database exchange
 information
ospf-max on|off
 All OSPF debugging
bgp-fsm on|off
 BGP State Machine
bgp-decision on|off
 BGP Decision Process
bgp-opens on|off
 BGP open packets
bgp-keepalives on|off
 BGP keepalive packets
bgp-updates on|off
 BGP update packets
bgp-notifications on|off
 BGP notification packets
bgp-errors on|off
 BGP error messages
bgp-packets on|off
 All BGP packets
bgp-max on|off
 All BGP debugging
mcppp-event on|off
 Traces multi-chassis events
mcppp-history 
mcppp-master
mcppp-remote
mcppp-slave
mcppp-sync
ccp-lzs
ccp-stac on|off
mdp-events on|off
mdp-status on|off
mdp-max on|off
flash on|off
mdp-interval on|off
isdn-v120 on|off
rip|rip-detail on|off
vpn supported
imt
nfas
l2tp|isdn-dframes|termination

Also, for ISDN debugging:

show isdn d-channel activity

THE DEBUG MASK:

There are several hexadecimal masks that will provide varying outputs. The hexadecimal masks are made up of two digits.

  1. The first digit tells how verbose the debug output will be. 'F' is the most verbose and '0' is the least.
  2. The second digit tells what to display.

By the way, it is important to turn off debugging and reset the console when finished otherwise someone else in that PortMaster can see the console debugging messages without even logging in as !root.

+--------+--------+  +--------+--------+
|  level |  mask  |  | level  | mask   |
+--------+--------+  +--------+--------+

    0        0          7       2    Is to watch the flash
set debug 0x0

Turns off debug mask. No other information will be shown to the console.
Typing 'set debug' or 'set debug off' or 'set debug 0' will turn off debugging. 

set debug 0x18

Shows RIP updates to routing table

set debug 0x51

Shows PPP Negotiation (LCP, PAP, IPCP, IPXCP)
Shows modem table communication with modem
Shows Frame-Relay LMI and Annex-d communication

set debug 0x54

Shows last 60 characters passed through port
To see the output do a 'show s1' or whatever port you wish to examine.
"Modem:" shows Modem Status Register Bits

  • 0x10 CTS_LEVEL
  • 0x20 DSR_LEVEL
  • 0x30 DCD_LEVEL

"Flow:" shows Flow Control

  • 0x24 means the port is using RTS/CTS (hardware flow control) and not Xon/Xoff (software flow control).
set debug 0x72

Shows all reads and writes to the flash NVRAM 

set debug 0x81

Shows PPP Negotiation (LCP, PAP, IPCP, IPXCP)
Shows modem table communication with modem
Shows Frame-Relay LMI and Annex-d communication
Shows ARP updates

set debug 0x84

Shows last 2 disconnect reasons
Shows last 60 characters passed through port
To see the output do a 'show s1' or whatever port you wish to examine.
"Modem:" shows Modem Status Register Bits

  • 0x10 CTS_LEVEL
  • 0x20 DSR_LEVEL
  • 0x30 DCD_LEVEL
  • "Flow:" shows Flow Control
  • 0x24 means the port is using RTS/CTS (hardware flow control) and not Xon/Xoff (software flow control).
set debug 0xff

Shows all debug 

THE DEBUG COMMAND:

There are two options to the various debugs.

  • on turns the debug on
  • off turns the debug off
set debug isdn on | off

Shows information about incoming/outgoing ISDN calls and disconnects.

set debug isdn-d on | off

Shows detailed information about incoming/outgoing ISDN calls and disconnects.

set debug isdn-m on | off

Shows ISDN debug information (MWAC) in excrutiating detail.

set debug term on | off

Shows termination reasons when a user terminates a session or is disconnected.
Results are sent to console, syslog and RADIUS accounting logs.