此文主要是有关所有协议上命令的收集操作
工具/原料
JuniperEX/QFX交换机平台
SecrureCRT或Putty
方法/步骤
1、LACP:CLIcommands:show interfacesterse|matchaeshow interfacesstatisticsshow ethernet-switchingtable|matchxx-x/x/xshow lacpinterfacesshow lacpstatisticsinterfacesxx-x/x/xshow interfaceextensiveLogs:/var/log/messagesTraceoptionsset protocolslacptraceoptionsfilelacp.trset protocolslacptraceoptionsfilesize5mset protocolslacptraceoptionsfilefiles5set protocolslacptraceoptionsflagallQuestions:- Whatdeviceisconnectedattheotherend?- Islinkprotectionenabled?- Whatarethetroubleshootingstepssofar?- Didtheissuestartafteranykindofdeviceorconfigchange?
2、BFD:CLIcommands:showbfdsessionbriefshowbfdsessionshowbfdsessionsummaryshowbfdsessiondetailshowbfdsessiondiscriminatorbriefshowbfdsessiondiscriminatordetailaddressLogs:/var/log/messagesTraceoptions:setprotocolsbfdtraceoptionsfilebfd.trsetprotocolsbfdtraceoptionsfilesize5msetprotocolsbfdtraceoptionsfilefiles5setprotocolsbfdtraceoptionsflagall
3、BGP:Showcommands:se隋茚粟胫tclitimestampshowbgpsummaryshowbgpgroupsh泠贾高框owbgpneighborshowroutenext-hopshowrouteprotocolbgpallshowroutereceive-protocolbgp<peeraddress>extensiveshowrouteadvertising-protocolbgpextensiveshowrouteforwarding-tableshowrouteresolutionunresolvedshowroutecommunityshowroutedamping[history|decayed|surpressed]showrouteaspath-regexmonitortrafficinterfaceXX-X/X/Xsize4096detailLogs:/var/log/messagesTraceoptions:Caveatssetprotocolsbgptraceoptionsfilebgp.trsetprotocolsbgptraceoptionsfilesize5msetprotocolsbgptraceoptionsfilefiles5setprotocolsbgptraceoptionsflagallsetrouting-instancesbgp-riprotocolsbgptraceoptionsfilebgp.trsetrouting-instancesbgp-riprotocolsbgptraceoptionsfilesize5msetrouting-instancesbgp-riprotocolsbgptraceoptionsfilefiles5setrouting-instancesbgp-riprotocolsbgptraceoptionsflagall
4、DHCP:CLIcommands:showconfiguration|displayset|matchdhcpshowsystemservicesdhcpbindingdetailshowsystemservicesdhcpclientshowsystemservicesdhcppooldetailshowinterfacesterseshowdhcpsnoopingbindingvlanshowdhcpsnoopingbindinginterfacexx-x/x/xmonitortrafficinterfacexx-x/x/xLogs:/var/log/messagesTraceoptions:noneQuestions:-Anytroubleshootingstepssofar?-Confirmwhetherthediscoverpacketisreachingtheswitch?-Istheswitchreplyingwithanofferpacket?-Anypacketcapturestakenattheinterfaceends?
5、Firewallfilter:CLIcommands:showinterfacesfiltersshowfirewallshowfirewallfiltershowfirewalllogshowpolicyconditionsLogs:/var/log/messagesTraceoptions:None
6、HighCPU:CLIcommands:setclitimestampshowchassisrouting-engine(multiplesnapshots,atleast5)showsystemprocessesextensive(multiplesnapshotsatleast5)showsystemusersshowsystemconnectionsshowsystemstatisticsshowtaskmemorydetailshowtaskmemorysummaryshowtaskioshowtaskhistoryshowtaskstatisticsshowtaskjobshowtaskjobsshowkrtqueueshowkrtstateLogs:/var/log/messagesTraceoptions:user@router#showrouting-optionstraceoptions{filerouting-tracesize10mfiles20world-readable;flagtask;flagstate;flagtimer;}
7、ISIS:Showcommands:setcli咯悝滩镞timestampshowisisadjacencyshowisisadjacencyexte荏鱿胫协nsiveshowisisinterfaceshowisishostnameshowisisspflogshowisisstatisticsshowisisrouteshowrouteprotocolisisshowisisdatabaseshowisisdatabasedetailshowbfdsessionshowrouteforwarding-tableLogs:/var/log/messagesTraceoptions:Caveatssetprotocolsisistraceoptionsfilerip.trsetprotocolsisistraceoptionsfilesize5msetprotocolsisistraceoptionsfilefiles5setprotocolsisistraceoptionsflagallsetrouting-instancesisis-vrprotocolsisistraceoptionsfileisis.trsetrouting-instancesisis-vrprotocolsisistraceoptionsfilesize5msetrouting-instancesisis-vrprotocolsisistraceoptionsfilefiles5setrouting-instancesisis-vrprotocolsisistraceoptionsflagall
8、L3VPN:CLIcommands:showroutetableshowroutetablehiddenshowrouteforwarding-tablevpnpingx.x.x.xrouting-instancetraceroutex.x.x.xrouting-instancetelnetx.x.x.xrouting-instancepingmplsl3vpnprefixshowrouteadvertising-protocolbgpx.x.x.xshowroutereceive-protocolbgpx.x.x.xshowarpOSPFVPNcommandsshowospfinterfaceinstanceshowospfneighborinstanceshowospfdatabaseinstanceLogs:/var/log/messagesTraceoptions:None
9、NTP:CLIcommands:showntpassociationsshowntpstatusshowversionshowsystemuptimeLogs:/var/log/messagesTraceoptions:none
10、STP:CLIcommands:showconfiguration圬桦孰礅protocolsshowspanning-tree芟鲠阻缒bridgebriefshowspanning-treebridgedetailshowspanning-treestatisticsshowspanning-treeinterfaceshowethernet-switchingmac-learning-logLogs:/var/log/messagesTraceoptions:setprotocolsstptraceoptionsfilestp.trsetprotocolsstptraceoptionsfilesize5msetprotocolsstptraceoptionsfilefiles5setprotocolsstptraceoptionsflagallQuestions:-Whatkindofspanningtreeflavourisrunning?-Isthecustomerusingothervendordevicewithinthesamespanningtree?-Isthecustomerusingsamespanningtreeflavouronalltheswitches?-Anyrecentconfigurationchangesrelatedtocost,bridgepriority,stormcontrol,BPDUblock?-Isthereanyhubconnectedtoanyoftheswitches?
11、VLAN:CLIcommands:showconfigurationvlansshowvlansbriefshowvlansshowvlanssummaryshowinterfacesterse|matchinLogs:/var/log/messagesTraceoptions:noneQuestions:Didtheissuestartafteranyconfiguration/devicechange?Whatarethedevicesconnected?
12、Virtual-chassis:CLIcommands:showversi艺皱麾酪onshowconfigurationvir墉掠载牿tual-chassisshowvirtual-chassisstatusshowvirtual-chassisvc-portall-membersshowvirtual-chassismodeshowvirtual-chassisprotocolinterfaceshowvirtual-chassisprotocolstatisticsLogs:/var/log/messagesTraceoptions:setvirtual-chassistraceoptionsfilevirtual-chassis.trsetvirtual-chassistraceoptionsfilesize5msetvirtual-chassistraceoptionsfilefiles5setvirtual-chassistraceoptionsflagallQuestions:-Anytroubleshootingstepssofar?-Didtheissuebeginafteranydeviceorconfigchange?-Istheissuehappeningagainandagain?