您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > shell命令的使用
Shell命令的使用Tableofcontents目录TABLEOFCONTENTS目录........................................................................................................................11SHELL简介................................................................................................................................22SHELL的使用............................................................................................................................22.1帮助命令...............................................................................................................................22.2系统基本信息获取命令.......................................................................................................72.2.1版本命令..........................................................................................................................72.2.2Show命令........................................................................................................................82.3常用检测命令.......................................................................................................................82.3.1端口类..............................................................................................................................82.3.2收发包类........................................................................................................................102.3.3程序调试类....................................................................................................................122.4检测芯片的命令.................................................................................................................122.4.1寄存器的访问................................................................................................................122.4.2内存的访问....................................................................................................................162.4.3中断等其他命令............................................................................................................202.5高级配置命令.....................................................................................................................212.5.1Vlan管理命令................................................................................................................212.5.2L2命令..........................................................................................................................222.5.3L3命令...........................................................................................................................232.5.4Mirroring命令................................................................................................................252.5.5Filtering...........................................................................................................................252.5.6SpanningTreeGroupManagement...............................................................................252.6错误检测命令.....................................................................................................................252.6.1Text.................................................................................................................................252.6.2CONFig............................................................................................................................263REFERENCEDOCUMENTS参考文献.......................................................................................261shell简介shell即BCMDiagnosticShell是一个普通的命令行解释器(CLI),它可以提供对嵌入了BCM交换芯片的嵌入式平台的一种精确控制作用。shell支持所有Broadcom交换芯片,并提供了对所有寄存器,内存和最高层API的直接访问功能。此外,由于shell支持交互和非交互两种模式,所以它可以嵌入到客户的设计中,以提供额外诊断服务。Shell命令可被分为六大类:1.帮助命令:??,?,help2.系统基本信息获取命令:Version,show3.常用检测命令:端口类:PORT,COMBO收发包类:TX,PacketWatcher程序调试类:Debug,DebugMod4.检测芯片的命令:寄存器的访问:Getreg,EditReg等内存访问:Dump,Write等中断管理:INTR5.高级配置命令:VLAN,L2,L3等6.错误检测命令:Test,CONFig,等2Shell的使用以DCNDS45XX项目为例来说明shell的使用。2.1帮助命令BCM.0help//输入help命令得到shell中所有可用的命令共201条Help:TypehelpcommandfordetailedcommandusageHelp:UppercaseletterssignifyminimalmatchCommandscommontoallmodes:?DisplaylistofcommandsASSertAssertBackGroundExecuteacommandinthebackground.BCMSetshellmodetoBCM.BCMXSetshellmodetoBCMX.breakplacetohangabreakpointCASEExecutecommandbasedonstringmatchCDChangecurrentworkingdirectorycintEntertheCinterpreterCONFigConfigureManagementinterfaceCONSoleControlconsoleoptionsCoPyCopyafileCPUDBUpdatetheCPUdatabaseCTEchoSendanechorequestusingCPUTRANSCTInstallSetuptransportpointersinCPUtransportsCTSetupModifytheCPUTRANSsetupDATESetordisplaycurrentdateDBDumpDumpthecurrentStackTaskCPUDBDBParseParsealineofCPUDBdumpedcodeDeBugEnable/DisabledebugoutputDeBugModEnable/DisabledebugoutputpermoduleDELAYPutCLItaskinabusy-waitloopforsomeamountoftimeDEViceDeviceadd/removeDISPatchBCMDispatchcontrol.EchoEchocommandlineEDlineEditfileusingancientlineeditorEXITExitthecurrentshell(andpossiblyreset)EXPREvaluateinfixexpressionFLASHINITInitializeonboardflashasafilesystemFLASHSYNCSyncuponboardflashwithfilesystemFORExecuteaseriesofcommandsinaloopHelpPrintthislistORusageforaspecificcommandHISToryListcomma
本文标题:shell命令的使用
链接地址:https://www.777doc.com/doc-6034336 .html