M6000常用维护命令
1. 配置命令保存
M6000#write
2. 日常告警查看
M6000#show logging alarm A notification 200108 level 6 occurred at 11:34:28 01-19-2011 sent by M6000 MPU- 0/12/0 %PIM% PIMSM RP SET is not work! PIMSM RP-SET is totaly occupied, the configured SRP/CRP 221.224.242.251 may not actually work!
3.用户在线情况查看
1)用户在线峰值查看
M6000#show subscriber peak ---------------------------------------------------------------------- subscriber type peak value peak time ---------------------------------------------------------------------- all 20001 2011/01/19 08:50:33 pppox 19999 2011/01/19 08:50:33 ipox server 1 2011/01/19 08:45:49 ipox relay 0 2011/01/19 10:53:04 host 1 2011/01/19 08:40:39 vpdn 0 2011/01/19 10:53:04 2)当前用户在线数查看
M6000#show subscriber all summary total is: 0, up is :0, down is : 0 3)PPPOE用户在线数查看
M6000#show subscriber pppox domain 1 summary total is:0, up is:0, down is:0 4)iTV用户在线数查看
M6000#show subscriber pppox domain 2 summary total is:0, up is:0, down is:0 5)其他与用户在线相关的查看
M6000#show subscriber all //查看所有在线用户的详细信息
M6000# show subscriber circuit interface gei-X/X/X/X 查看整个物理端口的用户在线数
M6000# show subscriber interface gei-X/X/X/X.X //查看某个子接口的用户在线 M6000# show subscriber user-name //根据用户账户查看 M6000# show subscriber vrf //根据vrf查看 6)查看用户在线的详细信息
M6000#show subscriber ipv4 后面跟着用户的实际ip地址,就可以看到很多详细信息
M6000#show subscriber ipv4-address 101.101.1.23 Subscriber Information ********************************************************************************
ip-address :101.101.1.23 vpn-id :0 vrf-name : sub-type :IP_HOST session-id :0 domain-id :0 mac-address :0000.0000.0000 user-name :lhj domain-name :zte cur-tcp-total :0 online-time(s):0 float-get-time: create-time :2011/01/19 11:36:07 authen-time : authen-mode : authen-status :NONE record-status :CREATED term-cause : host-det-count:0
*-------------------------------circuit infomation---------------------------* panel:0 subPanel:0 port:1 vlan-Id :55 secVlan-Id:0 vccIndex:163 vbuiIndex :164 qinqEtherType:0 protocolType:0 *-------------------------------aniPort infomation---------------------------* accNodeIdentifier: aniRack:0 aniFrame:0 aniSlot:0 aniSubSlot:0 aniPort:0 aniXpiEnable:Disable aniXpi:0 aniXci:0 *-------------------------------onuPort infomation---------------------------* onuId : onuSlot :0 onuSubSlot :0 onuPort :0 onuPortType : onuPortXpi :0 onuPortXci :0
onuAccessMethod : *-------------------------------author infomation----------------------------* Qos-Info: Qos-Class:0 aclInName: profileNameUp: subCarInfoUp-cir:0 subCarInfoUp-pir:0 subCarInfoUp-cbs:0 subCarInfoUp-pbs:0 aclOutName: profileNameDown: subCarInfoDown-cir:0 subCarInfoDown-pir:0 subCarInfoDown-cbs:0 subCarInfoDown-pbs:0 timeRangeNo:0 往下还有,此处省略
7)用户账号测试
M6000#radius-ping authentication-group 1 1234 123456 domain 1 ping radius authentication-group 1 with 1234@1 at 08:36:42 ping server 1 202.102.13.66 at 08:36:42 ping server 2 221.231.151.2 at 08:36:42 Reply from server 2 reject at 08:36:42 Reply from server 1 reject at 08:36:42
如果要查看账号认证过程信息,需要打开radius的debug,注意需要针对用户端口打开,请慎用。
M6000#radius-ping authentication-group 1 1234 M6000#terminal monitor
4.专线用户查看
M6000#show ip interface brief Interface IP-Address Mask Admin Phy Prot xgei-0/0/0/1 unassigned unassigned up down down gei-0/0/1/1 202.203.2.21 255.255.255.0 up up up
M6000# show running-config-interface gei-X/X/X/X
5.VPN用户查看
VRF的RD和RT:
M6000#show ip vrf IAD * Being deleted Name Default RD Protocols Interfaces IAD 100:7777 ipv4 gei-0/0/1/5
VRF绑定的详细情况查看:
M6000#show ip vrf detail IAD VRF IAD (VRF Id = 2); default RD 100:7777 VRF label allocation mode: per-prefix Ttl-mode:
M6000#show ip forwarding route vrf IAD IPv4 Routing Table: Dest Gw Interface 29.29.29.29/32 29.29.29.29 loopback29 103.1.1.0/24 103.1.1.1 vbui500 103.1.1.1/32 103.1.1.1 vbui500
6.查看访问控制列表
M6000-C5#show running-config ipv4-acl !
!
7.路由协议查看相关
1)isis相关
M6000#show isis adjacency
Interface System id State Lev Holds SNPA(802.2) Pri MT M6000# show ip forwarding route isis-l1 IPv4 Routing Table:
Dest Mask Gw Interface Owner Pri Metric 2)bgp相关
M6000#show bgp all summary Neighbor Ver As MsgRcvd MsgSend Up/Down State
M6000#show ip bgp summary
Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd
M6000#show bgp vpnv4 unicast summary
Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd
M6000#show ip bgp neighbor ?
A.B.C.D Neighbor to display information about //查看邻居详细信息 in In //查看bgp全局邻居收到的路由信息 out Out //查看bgp全局邻居宣告的路由信息
vpnv4-in VPNV4 in //查看bgp vpn邻居收到的路由信息 vpnv4-out VPNV4 out //查看bgp vpn邻居宣告的路由信息
M6000#show ip protocol routing Protocol routes:
Status codes: *valid, >best, i-internal, s-stale
Dest NextHop RoutePrf RouteMetric Protocol M6000#show ip forward route IPv4 Routing Table:
Dest Mask Gw Interface Owner Pri Metric
8.接口相关
1)查看端口信息
M6000#show interface xgei-0/1/0/1 xgei-0/1/0/1 is administratively down, line protocol is down Description is none
Hardware is XGigabit Ethernet, address is 0060.6060.601f Internet address is unassigned IP MTU 1500 bytes MTU 1600 bytes BW 10000000 Kbits Holdtime is 120 sec The port is optical Loopback cancel Duplex full Negotiation force ARP type ARP ARP Timeout 04:00:00 Last Clear Time : 2011-01-19 13:08:44 Last Refresh Time: 2011-01-19 14:05:30 120s input rate : 0Bps 0Pps 120s output rate: 0Bps 0Pps Intf utilization: input 0% output 0% In_ByteOK 0 In_PacketOK 0 In_Pause 0 In_SingCollision N/A In_MultCollision N/A In_LateCollision N/A In_ExceCollision N/A In_CRC_ERROR 0 In_AlignError N/A In_SymbolError 0 In_Error N/A In_Unicast 0 In_Broadcasts 0 In_Multicasts 0 In_Bytes 0 In_Packets 0 In_Undersize 0 In_Oversize 0 In_Fragments 0 In_Jabbers 0 In_64B 0 In_65_127B 0 In_128_255B 0 In_256_511B 0 In_512_1023B 0 In_1024_1518B 0 In_1519_MaxB N/A In_DropEvents 0 E_ByteOK 0 E_PacketOK 0 E_Pause 0 E_SingCollision N/A E_MultCollision N/A E_LateCollision N/A E_ExceCollision N/A E_CRC_ERROR N/A E_AlignError N/A E_SymbolError N/A E_Error N/A E_Unicast 0 E_Broadcasts 0 E_Multicasts 0 E_Bytes 0 E_Packets 0 E_Undersize N/A E_Oversize N/A E_Fragments N/A E_Jabbers N/A E_64B 0 E_65_127B 0 E_128_255B 0 E_256_511B 0 E_512_1023B 0 E_1024_1518B 0 E_1519_MaxB N/A E_DropEvents N/A
M6000# 2)查看光模块信息
M6000#show opticalinfo xgei-0/1/0/1 xgei-0/1/0/1 The opticalModule is online The transceiver type : XFP SONET Compliance Codes : no compliance Ethernet Compliance Codes : 10GBASE-SR 10GBASE-SW Transfers distance : Smf um fiber 0 (m) Ebw-50 um fiber 300 (m) 50/125 um fiber 82 (m) 62.5/125 um fiber 26 (m) copper line 0 (m) Laser Wavelength : 850 nm Measured RX input Power : N/A Measured TX output Power : -15.200 dBm Measured TX bias current : 0.000 mA Measured transceiver temperature : 27.129 C Vendor Name : FINISAR CORP. Vendor PN : FTLX8511D3 Vendor rev : 00 Vendor SN : AG2010R
9.查看BRAS相关的配置
1)地址池查看
M6000#show bras ip-pool pool pool-name iptv --------------------------------------------------------------------- pool-id :2 pool-name:iptv description : domain-name : vod
vpn-id :0 vbui-name:vbui1 ip-address :121.239.1.1 mask-address :255.255.0.0 priority :7 lock-state:FALSE pool-type:ALL status :CREATED alarm-high:70(%) alarm-low:10(%) ipoe-pri-dns : ipoe-sec-dns : pppoe-pri-dns : pppoe-sec-dns : dhcp-leasetime:0(s) address-total :20471 remote-num :0 unusable-num :0 lock-free :0 reserved-num:257 static-num :255 used-num(normal):0 free-num :19959 reserve-free :257 static-free :255
--------------------------------------------------------------------- 2)其他地址池查看命令
M6000#show bras ip-pool used-rate all 查看所有地址池的地址分配利用率情况 pool-id 根据地址池ID来查看地址池的地址分配利用率情况 pool-name 根据地址池名来查看地址池的地址分配利用率情况 vbui 根据vbui接口查看地址池的地址分配利用率情况 M6000#show bras ip-pool used-rate all --------------------------------------------------------------------- pool-id :5 pool-name:zhikongyan-1 description : domain-name :ZhiKongYan vpn-id :0 vbui-name:vbui5 ip-address :10.215.4.1 mask-address :255.255.252.0 address-total:1021 unusable-rate:0.00(%) used-rate :0.00(%) free-rate :100.00(%) 3)查看domain信息
M6000# show running-config aim
domain 1 bind authentication-template 1 bind authorization-template 3 bind accounting-template 1 alias pppoe $ domain 2 bind authentication-template 1 bind authorization-template 1 bind accounting-template 1 alias vod $ domain 3 bind authentication-template 1 bind authorization-template 2 bind accounting-template 1 alias wlan.js $ domain 4 bind authentication-template 2 bind authorization-template 2 ip vrf ITMS-VPN2905 alias itms 4)查看radius信息
M6000#show configuration radius
!
M6000#show running-config aim
!
!
bind sal 1 $ interface vbui2 pre-domain wlan.js bind sal 2 web-force authentication web-server 2 web-acl 100 $ ! vcc-configuration interface gei-0/2/0/1 bind vbui1 encapsulation ppp-over-ethernet pppox template 1 $ interface gei-0/2/0/1.1 bind vbui1 encapsulation ppp-over-ethernet pppox template 1 $ interface gei-0/2/0/1.100 bind vbui1 encapsulation ppp-over-ethernet pppox template 1 $ interface gei-0/2/0/2.10 $ interface gei-0/2/0/1.2 bind vbui2 encapsulation ip-over-ethernet ip authentication-type web $ interface gei-0/2/0/1.1000 bind vbui3 encapsulation ip-over-ethernet $ ! ! !
qinq range internal-vlan-range 1001-1998 external-vlan-range 710-710 qinq range internal-vlan-range 1144-1144 external-vlan-range 1747-1747 $ interface gei-0/2/0/1.100 pid-tag external 8100 internal 8100 encapsulation-dot1q 10 $ interface gei-0/2/0/1.3 pid-tag external 8100 internal 8100 qinq range internal-vlan-range 1999-1999 external-vlan-range 710-710 $ interface gei-0/2/0/1.4 pid-tag external 8100 internal 8100 $ interface gei-0/2/0/2.10 pid-tag external 8100 internal 8100 encapsulation-dot1q 20 $ interface gei-0/2/0/2.30 encapsulation-dot1q 30 $ interface gei-0/2/0/1.2 pid-tag external 8100 internal 8100 qinq range internal-vlan-range 1000-1000 external-vlan-range 1747-1747 $ !
7)查看地址池配置情况
M6000#show running-config am
!
$ $ ip-pool pool-name pppoe pool-id 1 access-domain pppoe pppoe-dns-server 61.177.7.1 pppoe-dns-server 221.228.255.1 second member 1 start-ip 180.107.224.2 end-ip 180.107.224.254 $ $ $ interface vbui2 ip-pool pool-name wlan pool-id 4 access-domain wlan.js dhcp-leasetime 3600 ipoe-dns-server 61.177.7.1 ipoe-dns-server 221.228.255.1 second member 1 start-ip 180.107.225.2 end-ip 180.107.225.254 $ $ $ !
10.查看CPU和内存使用率
M6000#show processor
11.查看板卡信息
M6000#show version
MPUF, shelf 0, slot 11] System BaudRate : 9,600 bps MPU-0/11/0(M): Bootrom Version : V3.02 Creation Date : 2010/05/18 14:42:19 System Nvram : 8,192 bytes System Memory : 4,096 Mbytes System Flash : 512 Mbytes Uptime is 0 day(s), 1 hour(s), 36 minute(s) ESU-0/11/0: Bootrom Version : V2.02
Creation Date : 2010/05/27 08:48:13 System Nvram : 8,192 bytes System Memory : 256 Mbytes System Flash : 32 Mbytes Uptime is 0 day(s), 1 hour(s), 32 minute(s) [PFUE_2, shelf 0, slot 1] PFU-0/1/0: Board Name : N/A Bootrom Version : V3.03 Creation Date : 2010/09/30 21:01:29 System Nvram : 8,192 bytes System Memory : 4,096 Mbytes System Flash : 16 Mbytes Uptime is 0 day(s), 1 hour(s), 33 minute(s) Interface Card 0: XGAI Interface Card 1: XGAI [PFUE_2, shelf 0, slot 3] PFU-0/3/0: Board Name : N/A Bootrom Version : V3.03 Creation Date : 2010/09/30 21:01:29 System Nvram : 8,192 bytes System Memory : 2,048 Mbytes --More--
12.查看温度、风扇和电源信息
M6000#show power Power type : DC Power module numbers: 2 Power module 0 Status : online State : work normally Voltage : 1.00 V Current : 0.00 A Power : 0.00 W Power module 1 Status : online State : work normally
Voltage : 52.08 V Current : 13.72 A Power : 714.54 W M6000#show fan M6000#show fan Group 1: online index status speed 1 work normally 2 index status speed 2 work normally 3 index status speed 3 work normally 1 index status speed 4 work normally 1 index status speed 5 work normally 1 index status speed 6 work normally 1 index status speed 7 work normally 1 index status speed 8 work normally 1 index status speed 9 work normally 1 Group 2: online index status speed 1 work normally 3 index status speed 2 work normally 4 index status speed 3 work normally 2 index status speed 4 work normally 1 index status speed 5 work normally 1 index status speed 6 work normally 1 index status speed 7 work normally 1 index status speed 8 work normally 1
index status speed 9 work normally 1 Group 3: online index status speed 1 work normally 4 index status speed 2 work normally 4 index status speed 3 work normally 4 index status speed 4 work normally 4 index status speed 5 work normally 4 index status speed 6 work normally 4 M6000#
M6000#show temperature detail 0 -------------------------------------------------- PCB : Type of board I2C : Inter integrated circuit Addr : Address of check point Status : Status of check point Minor : Slight alarm value (celsius) Major : Serious alarm value (celsius) Fatal : Fatal alarm value (celsius) Temper : Current temperature (celsius) -------------------------------------------------- [shelf 0, slot 1] PCB I2C Addr Status Minor Major Fatal Temper --------------------------------------------------- PPCM 1 4 Normal 65 75 85 44 PFUE_2 1 7 Normal 70 80 90 39 PFUE_2 1 8 Normal 70 80 90 42 PFUE_2 1 11 Normal 75 85 95 48 PFUE_2 1 12 Normal 75 85 95 51 PFUE_2 1 13 Normal 75 85 95 50 PFUE_2 1 14 Normal 75 85 95 46 PFUE_2 1 16 Normal 75 85 95 50 XGAI 1 24 Normal 65 75 85 32 XGAI 1 25 Normal 65 75 85 34
[shelf 0, slot 3] PCB I2C Addr Status Minor Major Fatal Temper --------------------------------------------------- PPCM 1 4 Normal 65 75 85 45 PFUE_2 1 7 Normal 70 80 90 47 PFUE_2 1 8 Normal 70 80 90 49 PFUE_2 1 11 Normal 75 85 95 54 PFUE_2 1 12 Normal 75 85 95 56 PFUE_2 1 13 Normal 75 85 95 57 PFUE_2 1 14 Normal 75 85 95 55 PFUE_2 1 16 Normal 75 85 95 52 GE12B 1 24 Normal 65 75 85 42 GE10A 1 25 Normal 70 80 90 34 [shelf 0, slot 8] PCB I2C Addr Status Minor Major Fatal Temper --------------------------------------------------- SSFUD1 0 56 Normal 80 90 100 50 [shelf 0, slot 11] PCB I2C Addr Status Minor Major Fatal Temper --------------------------------------------------- PPCM 1 4 Normal 75 85 95 54 MPUF 1 6 Normal 80 90 100 58 MPUF 1 17 Normal 45 55 65 36 ESUB 0 55 Normal 70 80 90 40 [shelf 0, slot 13] PCB I2C Addr Status Minor Major Fatal Temper --------------------------------------------------- PPCM 0 4 Normal 45 55 65 28