Difference between revisions of "Cisco debugging"

From Noah.org
Jump to navigationJump to search
m (Created page with 'Category:Engineering Turn debugging and select dhcp IP packets to debug. <pre> no debug all terminal monitor conf t logging monitor debugging logging on exit debug ip dhcp s…')
 
m
 
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
  
Turn debugging and select dhcp IP packets to debug.
+
Turn on debugging and select dhcp IP packets for debug logging.
 
<pre>
 
<pre>
 
no debug all
 
no debug all
Line 24: Line 24:
 
exit
 
exit
 
show debug
 
show debug
 +
</pre>
 +
 +
Note that the '''logging''' command can be used to send log messages to a '''syslog''' server.
 +
<pre>
 +
logging [SYSLOG_SERVIER_IP]
 +
no logging [SYSLOG_SERVER_IP]
 
</pre>
 
</pre>

Latest revision as of 15:45, 19 November 2014


Turn on debugging and select dhcp IP packets for debug logging.

no debug all
terminal monitor
conf t
logging monitor debugging
logging on
exit
debug ip dhcp server packet

Confirm that debugging is on using show debug; although, it is likely you will already be seeing dhcp packets if your network is moderately busy.

show debug
# DHCP server packet debugging is on.

Observe DHCP packets... then turn off debugging. Note that show debug will return an empty line if all debugging is off.

no debug all
terminal no monitor
conf t
no logging monitor
exit
show debug

Note that the logging command can be used to send log messages to a syslog server.

logging [SYSLOG_SERVIER_IP]
no logging [SYSLOG_SERVER_IP]