AM100-A系列通用调试命令手册_第1页
AM100-A系列通用调试命令手册_第2页
AM100-A系列通用调试命令手册_第3页
AM100-A系列通用调试命令手册_第4页
AM100-A系列通用调试命令手册_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、AM100-A系列通用调试命令手册(内部手册,注意保密)AM100-A项目部2002/8/271. 适用范围大唐高鸿公司AM100-A系列相关研发人员、公司内部售后服务工程师。2. 通用测试命令通用测试命令均在目录managementtest下。2.1 server(loadserver)Ø 适用版本:a8,a16,a16pro各版本Ø Telnet: 不可用Ø 功能:在线升级版本GH_AM100A:ManagementTest> loadservernow you can load the new program.在目标机上执行loadserver命令,当

2、输出显示以上提示信息后,启动loadclient将新版本程序(.bin文件)传送到目标机。如果程序传送成功,将依次输出显示以下信息:the file is received successfully,now begin to erase the flash, please wait.erasing the flash ok, now begin to write the flash, please wait.writing flash ok, now begin to test the flash.testing the flash ok, now you can reset the syst

3、em.此时可执行reset命令进行软复位,目标机重启后即运行升级后的新版本程序。2.2 resetØ 适用版本:a8,a16,a16pro各版本Ø Telnet: 不可用Ø 功能:复位设备GH_AM100A:ManagementTest> reset执行该命令后,设备重新启动。2.3 bk(backup)Ø 适用版本:a8,a16,a16pro各版本Ø Telnet: 不可用Ø 功能:擦除flash中存储的数据GH_AM100A:ManagementTest> bkRenew Flash: Input the Block

4、No.(0:all block; 116: single block): 0Operation Mode: (0: Erase Flash Only; 1: Erase Flash and Backup Data): 0执行bk命令,控制台显示以上提示信息时,均输入选项0,即可擦除flash中存储的业务数据。2.4 eraseuserØ 适用版本:a8110及以上版本,a16,a16pro各版本Ø Telnet: 可用Ø 功能:擦除flash中存储的用户数据GH_AM100A:ManagementTest> eraseuser该命令用于解决设备启动后用户无法

5、登录的故障。若设备启动时从flash中恢复的用户数据出错,可能造成用任何用户均无法登录的情况。此时可使用gh_am100a用户登录,口令为gh100,登录成功后到ManagementTest目录下运行eraseruser命令,对存储用户数据的flash区域进行擦除,擦除成功后执行reset命令,设备重启以后就可以用root用户命令进行登录了。但此时以前添加或修改的用户信息已丢失,应使用用户管理目录下的命令重新添加用户信息,然后这些信息就能够存储在flash中了。2.5 versionØ 适用版本:a8,a16,a16pro各版本Ø Telnet: 可用Ø 功能:查

6、看本设备的软件版本GH_AM100A:ManagementTest> versionTemp Version: AM100-A8_V1.1.0.200208201700以上输出信息包括软件的临时版本号及版本生成的时间,本例中软件版本为AM100-A8_V1.1.0,生成时间为2002年8月20日17时0分。2.6 setdislevelØ 适用版本:a8、a16、a16pro各个版本Ø Telnet: 不可用Ø 功能:设置打印级别说明:缺省打印级别为0,可以选择更高的打印级别(1-6),看到更多的调试信息。GH_AM100A:ManagementTest&g

7、t; setdislevelPlease enter Level: 2 打印级别设为2,级别设得越高,看到的调试信息越多0001112222.7 dismac(management/test)Ø 适用版本:a8v110,a16,a16proØ Telnet: 可用显示本机的MAC地址。GH_AM100A:ManagementTest> dismac00.4b.6d.ef.8b.71The command has been completed successfully!3. 与数据流转发相关的测试命令3.1 ipstat (management/test)Ø

8、适用版本:a8v110,a16,a16proØ Telnet: 可用GH_AM100A:ManagementTest> ipstat 1 : Get buffer usage information ! -ip模块buffer使用统计. 2 : Get PNA buffer configuration information ! -pna模块内存配置 3 : Get ip traffic statistics ! -ip流统计. 0 : Quit !Please select what you want to modify0: 1IPRIP:Following is buffe

9、r usage information: p2IBDGets :30439 p2IBDFrees :30388 p2IBDHeadGets :60812 p2IBDHeadFrees :60812 P2_MALLOC_SUCCESS_NUM 60836 P2_MALLOC_FAIL_NUM 0 P2_FREE_NUM 60821 OWNER: malloc_stat free_stat OWNER_IBD_HEADER 60812 60812 -该项应保持申请和释放一 致,如果长时间有差别,则 ip模块内存有问题. OWNER_ACC_LIST 0 0 OWNER_ACC_ENT 0 0 OW

10、NER_RMAP_LIST 0 0 OWNER_RMAP_ENT 0 0 OWNER_IPMC_CACHE 0 0 OWNER_IPMC_SG 0 0 OWNER_ROUTE 1 0 OWNER_RIP_NODE 1 0 OWNER_NODE 1 0 OWNER_CIRCUIT 2 0 OWNER_RIP_CIRC 2 0 OWNER_RIP_NEIGH 0 0 OWNER_ARP 17 9 OWNER_REASM 0 0 OWNER_IGMP 0 0 OWNER_STA_ROUTE 0 0 OWNER_SA 0 0 OWNER_PMTU 0 0 OWNER_S_ROUTE 0 0 OWNER

11、_TIMER 0 0 OWNER_TRAP 0 0 OWNER_OTHER 0 0选择3显示ip层(三层路由)包统计。Please select what you want to modify0: 3IPRIP:Following is packet statistics about IP Forwarding: The total num of packet into iptk :70526 -进入ip转发模块的总的包数. Packet from ethernet :50451 -以太网进入ip的包数 Packet from ipoa :20073 -ipoa进入的包数 Packet fro

12、m ppp :0 -ppp进入的包数 Packet from fr :0 -fr进入的包数 Packet from pna :2 -pna(telnet,snmp等送到ip模块) 进入的包数 The total num of packet from iptk :70575 -ip模块发往其他模块的总的包数 Packet send to ethernet :50477 -ip模块发往以太网的包数 Packet send to PPP :0 -ip模块发往ppp的包数 Packet send to ipoa :20098 -ip模块发往ipoa的包数 Packet send to fr :0 -i

13、p模块发往fr的包数 Packet send to pna :0 -ip模块发往pna的包数(去往 telnet,snmp的包) Whether clear netflow statistics ? (y/n)3.2 setlp(management/test)Ø 适用版本:a8v110,a16,a16proØ Telnet: 可用GH_AM100A:ManagementTest> setlp Set the print level in lan_driver,please input: 3111-222-333The command has been complet

14、ed successfully!该命令用来设置以太网驱动中的打印级别.设置为0,不打印.设置为3,打印如下:GH_AM100A:ManagementTest> ping 192.216.224.110 Pinging 192.216.224.110 with 32 bytes of data: >>>>> only phase2 Iptkrx receive IP or ARP packet. . >>>>> only phase2 Iptkrx receive IP or ARP packet. . Reply from 19

15、2.216.224.110, bytes=32 >>>>> only phase2 Iptkrx receive IP or ARP packet. . Reply from 192.216.224.110, bytes=32 >>>>> only phase2 Iptkrx receive IP or ARP packet. . Reply from 192.216.224.110, bytes=32 >>>>> only phase2 Iptkrx receive IP or ARP packet.

16、. Reply from 192.216.224.110, bytes=32The command has been completed successfully!其中: >>>>> only phase2 表示以太网驱动确实收到包并转交到ip模块.否则,可以断定包没有到ip模块.3.3 ipconfØ 适用版本:a8v110,a16,a16proØ Telnet: 不可用 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1 : Get all

17、static route ! 2 : Get all route ! = = = = = = = = = = 3 : Display PNA ni parameter ! 4 : Display PNA route ! = = = = = = = = = = 5 : Add static route ! 6 : Delete static route ! = = = = = = = = = = 7 : Change circuit ipaddr and ipmask !8 : Display arp table! = = = = = = = = = =10 Quit ! _ _ _ _ _ _

18、 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Please select what you want to modify10: 选择8可以显示am100的arp表。在以太口ip地址ping不通时可以通过该命令察看是否学习到对方的mac地址。Please select what you want to modify10: 8ae_type definition: ARP_UNKNOWN :0 ARP_STAT :1 ARP_DYN :2 ARP_LOC :4 ARP_BCAST :0x10 ARP_PTPT :0x2

19、0 ARP_RTR :0x40sn_type definition: SN_UNKNOWN :0 SN_LAN :1 SN_PTPT :2ae_type= 0x 14 addr= 2. 2. 2. 0. cid= 4 sn_type= 1 mac=ff.ff.ff.ff.ff.ff.ae_type= 0x 14 addr=192.216. 5. 0. cid= 1 sn_type= 1 mac=ff.ff.ff.ff.ff.ff.ae_type= 0x 4 addr= 2. 2. 2. 1. cid= 4 sn_type= 2 mac= 2. 2. 2. 1.ae_type= 0x 2 add

20、r=192.216. 5. 1. cid= 1 sn_type= 1 mac= 0. 5.32.cf.31.e0.ae_type= 0x 1 addr= 2. 2. 2. 2. cid= 3 sn_type= 2 mac= 0. 5.ae_type= 0x 2 addr=192.216. 5.203. cid= 1 sn_type= 1 mac= 0.50.ba.ec.d8.dc.ae_type= 0x 2 addr=192.216. 5. 15. cid= 1 sn_type= 1 mac= 8. 0.20.b6.95.4a.ae_type= 0x 2 addr=192.216. 5. 81

21、. cid= 1 sn_type= 1 mac= 0.50.ba.cc.ee.32.ae_type= 0x 2 addr=192.216. 5. 83. cid= 1 sn_type= 1 mac= 0.50.ba.b3. 6.b4.ae_type= 0x 14 addr= 2. 2. 2.255. cid= 4 sn_type= 1 mac=ff.ff.ff.ff.ff.ff.ae_type= 0x 14 addr=192.216. 5.255. cid= 1 sn_type= 1 mac=ff.ff.ff.ff.ff.ff. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

22、_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _arp表中包括:1.本地接口ip地址对应的arp项。2.本地ip接口子网广播地址对应的arp项。3.本地ip接口子网0地址对应的arp项。4.以太接口上动态学习到的arp项。5.ip over atm,fr,hdlc,ppp等接口上配置的静态arp项。3.4 netstat(management/test)Ø 适用版本:a16pro,在其他版本中,仅具有流量显示功能。Ø Telnet: 不可用GH_AM100A:ManagementTest> netstat _ _ _ _ _ _ _

23、_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1 : VLAN Forward traffic statistics ! = = = = = = = = = = 2 : Display VLAN Forward module inner data structure ! 3 : Set LANX module print level ! = = = = = = = = = = 4 : Read BCM5328 register ! 5 : Write BCM5328 register ! = = = = = = = =

24、= = 6 : Set cam entry lifetime ! 7 : Display BCM5328 ARL table ! 8 : Set ethernet port VLAN pvid ! = = = = = = = = = = 9 : Reset and re-init BCM5328 chip ! 10 : Search a MAC address in ARL table ! 11 : Write a MAC address into ARL table ! = = = = = = = = = = 12 : VLAN forward Cache configuration ! 1

25、3 : VLAN configuration of BCM5328 ! 14 : STA configuration of BCM5328 ! 15 : Port-based priorty conf ! 16 : LAN 21143 statistics display ! = = = = = = = = = = 0 : Quit ! _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please select what you want to modify0:选择1,显示vlan-forward

26、(二层转发)模块的包统计。Please select what you want to modify0: 1VLAN_FORWARDING:Following is packet statistics about VLAN_FORWARD: The total num of ingress packet :50909 -进入二层转发模块的包的总数。 Packet from PPP or 1483 :0 -从1483或ppp桥端口进入的包数 Packet from Ethernet :50443 以太端口进入的包数 Packet from Network layer :466 -从ip层进入的包

27、数 Packet send to network layer :50378 二层转发模块送到ip层的包数。 Packet send to PPP or RFC1483 :0 -二层转发模块送到1483或ppp桥端口的包数 Packet send to eth driver :406 二层转发模块送到以太端口的包数 Packet source MAC failed :4 二层转发中源地址查找失败的次数 Packet source success but dest failed :61 二层转发中源成功但目的查找失败的次数 The broadcast packet with source succ

28、ess :50085 源查找成功的广播包数 The local packet with source success :399 源查找成功的目的地址为本机mac地址的包数 The unicast packet src and dest MAC success :360 源目查找均成功的单播包 The number of BPDU packet :0 bpdu包数 The number of packet copying :46 二层转发中进行了包拷贝的次数 The number of no packet copying :360 二层转发中无需包拷贝的次数 The buffer number

29、free by eth :65 The buffer number free by vlan_ni :106 The buffer number free by ppp :0 The buffer number free by rfc1483 :0 The buffer get by eth used in copy_send :46 The buffer get by vlan_ni :0 The buffer get by ppp used in copy_send :0 The buffer get by 1483 used in copy_send :0 Whether clear n

30、etflow statistics ? (y/n)选择3可以选择性的打开或关闭二层转发模块的相关包跟踪打印功能。Please select what you want to modify0: 3 Set lanx module print level: If enable lanx module print? (y/n) :y LANX模块打印总开关,直接回车选择“Y”, 系统启动后为“Y” If enable dataflow print? (y/n) : LANX模块数据流打印开关,直接回车选择“N”, 系统启动后为“N” If enable exception print? (y/n)

31、:y LANX模块异常打印开关,直接回车选择“Y”,系统启动后为“Y” If enable interface parameter print? (y/n) : LANX模块接口参数打印开关,直接回车选择“N”,系统启动后为“N” If enable sta flow print? (y/n) : LANX模块BPDU包跟踪开关,直接回车选择“N”,系统启动后为“N”选择7可以察看LAN Switch芯片中的二层转发表。软件上的cam表的内容部分来源于该表。Please select what you want to modify0: 7The ARL table in BCM5328: ma

32、c= 050bacee7 0 port=1 Dynamic mac= 04b6def8b72 port=1 Dynamic mac= 0 216a3fa 9 port=9 Dynamic mac= 0bbccddeef0 port=1 Dynamic mac= 8 020b6954a port=1 Dynamic mac= 050baccee32 port=1 Dynamic mac= 050baecfc9a port=1 Dynamic mac= 06039 b 019 port=1 Dynamic mac= 035353557 1 port=1 Dynamic mac= 080ad72ce

33、e1 port=1 Dynamic mac= 050baecd8dc port=1 Dynamic mac= 0205b 11e7c port=1 Dynamic mac= 2 1 0 0 0 0 port=1 Dynamic mac= 0 216f475 2 port=1 Dynamic mac= 050bab3 6b4 port=1 Dynamic mac= 04b6def8b71 port=17 Dynamic /*端口17对应于cpu接口*/ mac= 0 532cf31e0 port=1 Dynamic ARL table dispaly end!选择12可以使能或者去使能二层转发的

34、cache功能,使能cache会提高二层转发性能,但是某些情况下会导致数据流不通,因此建议在拓扑简单的测试环境下使用(例如用smartbit测试背对背的转发极限)。如果选择使能cache后导致数据流不通,则去使能cache即可。Please select what you want to modify0: 12 If enable vlan forward cache(1:yes 0:no)0: 1 缺省为0。使用时选择1。测试时建议使能该项。 If enable vlan forward multi src cache(1:yes 0:no)0: 缺省为0。使用时选择1。测试时不建议使能该项

35、。 If enable cam update cache(1:yes 0:no)0: 缺省为0。使用时选择1。测试时禁止使能该项。 VLAN forward cache conf success!选择16显示LAN Driver的收发包情况,该命令在以太口ping不通时可以直接定位问题是软件还是硬件。Please select what you want to modify0: 16The statistics of LAN21143: Normal interrupt summary :50474 Abnormal interrupt summary :0 System error :0 R

36、eceived full duplex short frames :0 AUI/TP Pin :0 Receive WatchDOg Timeout :0 Transmit Jabber Time :0 Transmit Underflow :0 Receive Buffer Unavailable times :0 Receive Process Stopped :0 Normal receive interrupt :50111 正常的接收中断次数,如果该技术在累加,说明硬件收包正常。 Normal transmit interrupt :390 正常的发送中断次数 Transmit Bu

37、ffer Unavailable :0 Late collision :0Display end!对于netstat的其他命令都是调试程序时使用的内部命令,很多都是直接操作底层芯片寄存器,建议不要操作。3.5 discam(management/test)Ø 适用版本:a8v110,a16,a16proØ Telnet: a16pro可用,其他版本不可用。显示VLAN转发表的内容,即LANCAM表的内容。显示格式如下:DisplayTableContent: 3 : 0x 50bacc 0xee32 01 00 :1 序号 mac地址 端口 保留 属性:1动态,0静GH_A

38、M100A:ManagementTest> discamNow there are 17 entry in lancam:CAM:DisplayTableContent: 0 : 0x 4b6def 0x8b71fd00 :0 第0项预留给本机mac地址,如果该项丢失,则本机ip无法ping通。CAM:DisplayTableContent: 1 : 0x 2010000 0x 100 :1CAM:DisplayTableContent: 2 : 0x 216f4 0x75020100 :1CAM:DisplayTableContent: 3 : 0x 50bacc 0xee320100 :1CAM:DisplayTableContent: 4 : 0x 50bab3 0x 6b40100 :1CAM:DisplayTableContent: 5 : 0x 80ad72 0xcee10100 :1CAM:DisplayTableContent: 6

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论