shell命令的使用.doc

上传人:土8路 文档编号:10127256 上传时间:2021-04-21 格式:DOC 页数:26 大小:3.44MB
返回 下载 相关 举报
shell命令的使用.doc_第1页
第1页 / 共26页
shell命令的使用.doc_第2页
第2页 / 共26页
shell命令的使用.doc_第3页
第3页 / 共26页
shell命令的使用.doc_第4页
第4页 / 共26页
shell命令的使用.doc_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《shell命令的使用.doc》由会员分享,可在线阅读,更多相关《shell命令的使用.doc(26页珍藏版)》请在三一文库上搜索。

1、Shell命令的使用Table of contents 目录Table of contents 目录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.5Filtering252.5.6Spann

2、ing Tree Group Management252.6错误检测命令252.6.1Text252.6.2CONFig263REFERENCE DOCUMENTS 参考文献261 shell简介shell即BCM Diagnostic Shell是一个普通的命令行解释器(CLI),它可以提供对嵌入了BCM交换芯片的嵌入式平台的一种精确控制作用。shell支持所有Broadcom交换芯片,并提供了对所有寄存器,内存和最高层API的直接访问功能。此外,由于shell支持交互和非交互两种模式,所以它可以嵌入到客户的设计中,以提供额外诊断服务。Shell命令可被分为六大类:1. 帮助命令:?,?,h

3、elp2. 系统基本信息获取命令:Version,show3. 常用检测命令:端口类: PORT,COMBO 收发包类: TX, PacketWatcher 程序调试类: Debug,DebugMod 4. 检测芯片的命令:寄存器的访问: Getreg,EditReg 等 内存访问:Dump, Write 等 中断管理:INTR5. 高级配置命令: VLAN, L2, L3 等 6. 错误检测命令: Test ,CONFig,等 2 Shell的使用以DCN DS45XX项目为例来说明shell的使用。2.1 帮助命令BCM.0 help /输入help命令得到shell中所有可用的命令共20

4、1条Help: Type help command for detailed command usageHelp: Upper case letters signify minimal matchCommands common to all modes: ? Display list of commands ASSert Assert BackGround Execute a command in the background. BCM Set shell mode to BCM. BCMX Set shell mode to BCMX. break place to hang a break

5、point CASE Execute command based on string match CD Change current working directory cint Enter the C interpreter CONFig Configure Management interface CONSole Control console options CoPy Copy a file CPUDB Update the CPU database CTEcho Send an echo request using CPUTRANS CTInstall Set up transport

6、 pointers in CPU transports CTSetup Modify the CPUTRANS setup DATE Set or display current date DBDump Dump the current StackTask CPUDB DBParse Parse a line of CPUDB dumped code DeBug Enable/Disable debug output DeBugMod Enable/Disable debug output per module DELAY Put CLI task in a busy-wait loop fo

7、r some amount of time DEVice Device add/remove DISPatch BCM Dispatch control. Echo Echo command line EDline Edit file using ancient line editor EXIT Exit the current shell (and possibly reset) EXPR Evaluate infix expression FLASHINIT Initialize on board flash as a file system FLASHSYNC Sync up on bo

8、ard flash with file system FOR Execute a series of commands in a loop Help Print this list OR usage for a specific command HISTory List command history IF Conditionally execute commands JOBS List current background jobs KILL Terminate a background job LOCal Create/Delete a variable in the local scop

9、e LOG Enable/Disable logging and set log file LOOP Execute a series of commands in a loop LS List current directory MKDIR Make a directory MODE Set shell mode MORe Copy a file to the console MoVe Rename a file on a file system NOEcho Ignore command line Pause Pause command processing and wait for in

10、put PRINTENV Display current variable list RCCache Save contents of an rc file in memory RCLoad Load commands from a file REBOOT Reboot the processor RM Remove a file from a file system RMDIR Remove a directory RPC Control BCM API RPC daemon. SAVE Write data to a file SET Set various configuration o

11、ptions SETENV Create/Delete a variable in the global scope SHell Invoke a system dependent shell SLeep Suspend the CLI task for specified amount of time TIME Time the execution of one or more commands Version Print version and build informationCommands for current mode: ADC Show MAX127 A/D Conversio

12、ns AGE Set ESW hardware age timer Attach Attach SOC device(s) Auth Port-based network access control BaseBoard Configure baseboard system parameters. BIST Run on-chip memory built-in self tests BPDU Manage BPDU addresses BTiMeout Set BIST operation timeout in microseconds CABLEdiag Run Cable Diagnot

13、ics CACHE Turn on/off software caching of tables CellDataTest External packet buffer tuning routine CellHDR Dump cell header given CBPHEADER index CHecK Check a sorted memory table CLEAR Clear a memory table or counters CLOCKS Set core clock frequency. COLOR Manage packet color COMBO Control combina

14、tion copper/fiber ports COS Manage classes of service CounTeR Enable/disable counter collection CustomSTAT Enable/disable counter collection DAC Set DAC register DELete Delete entry by key from a sorted table DETach Detach SOC device(s) DMA DMA Facilities Interface DmaRomTest Simple test of the SOC

15、DMA ROM API DMIRror Manage directed port mirroring DMux Configure DMUX on a port DSCP Map Diffserv Code Points DTAG Double Tagging Dump Dump an address space or registers EditReg Edit each field of SOC internal register EGRess Manage source-based egress enabling EthernetAV Set/Display the Ethernet A

16、V characteristics EXTernalTuning External memory automatic tuning EXTernalTuning2 External memory automatic tuning 2 EXTernalTuningSum External memory automatic tuning (summary) FieldProcessor Manage Field Processor Filter Create/Destroy CPU filter entries Getreg Get register GPORT Get a GPORT id H2

17、HIGIG Convert hex words to higig info H2HIGIG2 Convert hex words to higig2 info HASH Get or set hardware hash modes HClksel Set I2C HClk (MUX for clock-chip-selects) HeaderMode Get or set packet tx header mode I2C Inter-Integrated Circuit (I2C) Bus commands IBDump Display packets pending in the Ingr

18、ess Buffer INIT Initialize SOC and S/W Insert Insert into a sorted table INTR Enable, disable, show interrupts IPFIX IPFIX IPG Set default IPG values for ports IPMC Manage IPMC (IP Multicast) addresses L2 Manage L2 (MAC) addresses L2MODE Change ARL handling mode L3 Manage L3 (IP) addresses LCDMSG Pr

19、int message on Matrix Orbital LCD display (via I2C) LED Control/Load LED processor LINKscan Configure/Display link scanning LISTmem List the entry format for a given table Listreg List register fields LOOKup Look up a table entry MCAST Manage multicast table MemSCAN Turn on/off software memory error

20、 scanning MemWatch Turn on/off memory snooping MIM Manage XGS4 Mac-in-MAC MIRror Manage port mirroring MmuConFiG Configure MMU mode MODify Modify table entry by field names ModMap MODID Remapping Modreg Read/modify/write register MPLS Manage XGS4 MPLS MPLSER Manage XGS3 MPLS MTiMeout Set MIIM operat

21、ion timeout in usec MultiCast Manage multicast operation MUXsel Set I2C LPT state (MUX for clock-chip-selects) NVram Manipulate Nonvolatile memory OAM Manage OAM groups and endpoints PacketWatcher Monitor ports for packets PBMP Convert port bitmap string to hex PCIE R/W PCIE core registers PHY Set/D

22、isplay phy characteristics / POE Configure PowerOverEthernet controllers. POESel Set I2C POE (MUX for poe-chip-selects) POP Pop an entry from a FIFO PORT Set/Display port characteristics PortRate Set/Display port rate metering characteristics PortSampRate Set/Display sflow port sampling rate PortSta

23、t Display port status in table PPDclk Show PPD clock delay PROBE Probe for available SOC units PUSH Push an entry onto a FIFO PVlan Port VLAN settings QDR Read/write over QDR interface RATE Manage packet rate controls RateBw Set/Display port bandwidth rate metering characteristics RegCMp Test a regi

24、ster value REMove Delete entry by index from a sorted table RXCfg Configure RX settings RXInit Call bcm_rx_init RXMon Register an RX handler to dump received packets SCHan Send raw S-Channel message, get response SEArch Search a table for a byte pattern Setreg Set register SHOW Show information on a

25、 subsystem SOC Print internal Driver control information SRAM External DDR2_SRAM test control STACKMode Set/get the stack mode StackPortCb Manage Stack Port Callbacks StackPortGet Get stacking characteristics of a port StackPortSet Set stacking characteristics of a port STG Manage spanning tree grou

26、ps STiMeout Set S-Channel timeout in microseconds STKMode Hardware Stacking Mode Control StkTask Stack task control SwitchControl General switch control SYnth Show synthesizer frequency SystemSnake Cycle packets through selected system TCAM TCAM control TEMPerature Show environmental conditions Test

27、Clear Clear run statisistics for a test TestList List loaded tests and status TestMode Set global test run modes TestParameters Set test Parameters TestRun Run a specific or selected tests TestSelect Select tests for running TRUNK Manage port aggregation TrunkPool Trunk pool table configuration TX T

28、ransmit one or more packets TXCount Print current TX statistics TXSTArt Transmit one or more packets in background TXSTOp Terminate a previous txstart command VLAN Manage virtual LANs WARMBOOT Optionally boot warm WLAN Manage XGS4 WLAN Write Write entry(s) into a table XAUI Run XAUI BERT on specifie

29、d port pair XClocks Configure clocks for PCI, SDRAM, Core clock XPoe Communication with PD63000 PowerOverEthernet MCU. XQDump Display packets pending in the XQ XQErr Inject bit errors into packets pending in XQ2.2 系统基本信息获取命令2.2.1 版本命令BCM.0 Version Broadcom Command Monitor: Copyright (c) 1998-2010 Br

30、oadcom CorporationRelease: sdk-xgs-robo-5.9.2 built 20110614 (Tue Jun 14 17:34:14 2011)From pengzhangsmc-pc:/home/pengzhang/work/sdk/sdk-xgs-robo-5.9.2Platform: KEYSTONEOS: Unix (Posix)ROBO Chips: BCM5324_A0, BCM5324_A1, BCM5396_A0, BCM5389_A0, BCM5398_A0, BCM5397_A0, BCM5348_A0, BCM5347_A0, BCM5395

31、_A0, BCM53242_A0, BCM53262_A0, BCM53115_A0, BCM53118_A0, BCM53280_A0, BCM53280_B0, BCM53101_A0, BCM53125_A0, BCM53128_A0Chips: BCM5690_A0, BCM5670_A0, BCM5673_A0, BCM5674_A0, BCM5665_A0, BCM5665_B0, BCM5650_C0, BCM5695_A0, BCM5675_A0, BCM56601_A0, BCM56601_B0, BCM56601_C0, BCM56602_A0, BCM56602_B0,

32、BCM56602_C0, BCM56504_A0, BCM56504_B0, BCM56304_B0, BCM56314_A0, BCM56102_A0, BCM56112_A0, BCM56800_A0, BCM56218_A0, BCM56514_A0, BCM56624_A0, BCM56624_B0, BCM56680_A0, BCM56680_B0, BCM56224_A0, BCM56224_B0, BCM56820_A0, BCM56725_A0, BCM53314_A0, BCM53324_A0, BCM56634_A0, BCM56634_B0, BCM56524_A0, B

33、CM56524_B0, BCM56685_A0, BCM56685_B0, BCM56334_A0, BCM56334_B0, BCM56840_A0, BCM56840_B0, BCM56142_A0,PHYs: BCM5218, BCM5220/21, BCM5226, BCM5228, BCM5238, BCM5248, BCM5324/FE, BCM5348/FE, BCM53242/FE, BCM53262/FE, BCM53101/FE, BCM53280/FE, BCM5400, BCM5401, BCM5402, BCM5404, BCM5424/34, BCM5411, BCM5461, BCM5464, BCM5466, BCM5478, BCM5488, BCM5482, BCM5481, BCM5461, BCM5464, BCM5466, BCM5478, BCM5488, BCM54980, BCM54980, BCM54980, BCM54980, BCM53314, BCM5398, BCM

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1