善用 Debug 指令

Post date: Feb 1, 2012 7:45:32 AM

相信有許多朋友在測試的時候,常會遇到一些狀況。需要進一步訊息協助測試。

這邊介紹一個指令 DEBUGGING 在交換器或是路由器上 下指令後 就可以看到進階訊息

方便除錯

此指令須搭配 Terminal debugging 方能把debugging 訊息顯示在 console 上面 。

不然開啟debuggering 之後 會不知道去哪邊看訊息

<WX5004test>terminal ?

debugging Send debug information to terminal

logging Send log information to terminal

monitor Send information output to current terminal

trapping Send trap information to terminal

<WX5004test>terminal debugging (開啟畫面顯示 debbugging 訊息)

Info: Current terminal debugging is on.

<WX5004test>debugging radius packet (針對 RADIUS 訊息除錯)

packet Radius packet debugging functions

ProVision 指令下法

HP-5412zl# debug destination session

HP-5412zl# debug event

<cr>

HP-5412zl# debug event

Aruba OS switch firmware 16.xx 版本以後 Debug 資料多出許多

詳細功能請參考下列資料

HP-2530-8-PoEP(config)# debug

acl Displays debug messages for access control lists.

all Display all debug messages.

aruba-central Display Aruba Central server debug information.

cdp Display CDP information.

cwmp Enable or disable CWMP events debug messages.

destination Select destination for debug messages.

dldp Enable DLDP debug messages.

est Display EST debug messages.

event Display event log messages.

ip Display debug messages for IPv4.

ipv6 Enable debug messages for IPv6.

lacp Display LACP information.

lldp Display LLDP information.

mdns Display mDNS debug messages.

mstp Display MSTP debug messages.

mvrp Enable MVRP debug messages.

ntp Display debug messages for NTP.

rest-interface Display REST debug information.

rpvst Display RPVST debug messages.

security Display all Security messages.

smart-link Display Smart link debug messages.

snmp Display SNMP debug messages.

udld Display UDLD debug messages.

ztp Display ZTP debug messages.

<WX5004test>undo debugging all (關閉所有的debbuging ,使用完畢後 請務必關閉,避免console 產生過多訊息)

All possible debugging has been turned off

<WX5004test>

<WX5004test>debugging ? (顯示完整的 debugging 相關指令)

aaa Specify AAA debug

aaa-ldap AAA-LDAP module

acsei Specify ACSEI(a method for exchanging information between

ACFP client and ACFP server) configuration information

acsei-client Specify ACSEI client configuration information

adjacent-table ADJ module

all All debugging functions

arp ARP module

arp-snooping ARP snooping

device Device managed

dhbk Double Hot Backup module

dhcp Dynamic Host Configuration Protocol and BOOTP debugging

functions

dhcp-snooping DHCP Snooping

dns Domain name system module

dot1x 802.1x configuration information

ethernet Ethernet module

ftp-server FTP server information

http Hypertext transfer protocol

hwtacacs Specify HWTACACS server

iactp IACTP attributes

ifnet Turn on IFNET switch

igmp-snooping Configure IGMP snooping characteristic

ip IP module

ipc Interprocess communication

ipv6 IPv6 module

link-aggregation Link aggregation group module

local-server Debug local server

mac-authentication Specify Mac-auth configuration information

mld-snooping Configure MLD snooping characteristic

nqa NQA module

ntp-service NTP module

pki Enable PKI debugging functions

port-security Specify port-security configuration information

portal Portal protocol

ppp PPP module

pppoe-server PPPoE server module

qos Command of QoS(Quality of Service)

radius Radius module

rm RM module

rmon RMON module

sc SC module

snmp SNMP module

ssh SSH module

ssl Enable SSL debugging function

stp Spanning tree protocol

tcp TCP module

telnet TELNET module

track Track module

udp UDP module

vfs File system module

vrrp VRRP module

vty VTY module

wlan WLAN attributes

xcmp Enable system xcmp functions

<WX5004test>