1、1. 查看配置命令:sh run 作用:查看路由器的配置 2. 查看路由表 sh ip route 作用查看路由器的路由表,如下 WANGHUA_DANDONGLU#sh ip route Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management D - Redirect, E - IRMP, EX - IRMP external, o - SNSP, B - BGP Gateway of last resort is 0.0.0.0 to ne
2、twork 0.0.0.0 S 0.0.0.0/0 [1/78125] is directly connected, 1138:18:02, serial0/0 C 21.38.249.4/30 is directly connected, 1138:18:02, serial0/0 C 21.38.250.32/28 is directly connected, 1138:18:36, fastethernet0 C 21.38.250.56/30 is directly connected, 1138:18:37, loopback0 C 22.38.25
3、0.32/28 is directly connected, 1138:18:36, fastethernet0 C 22.38.250.56/30 is directly connected, 1138:18:37, loopback1 C 127.0.0.0/8 is directly connected, 1138:18:46, lo0 C 21.38.249.5/32 is directly connected, 1138:18:02, serial0/0 3. 简明接口信息查询 sh ip interface brif 作用:查看各个接口的状态,这里可以看到接口
4、的对应的ip,以及接口状态,up表示接口在使用并且链路正常。 LNFS2_WN_AR_01#sh ip interface brief Interface IP-Address Status Description gigaethernet0 21.0.225.10 UP LINK TO RG5750 lo0 127.0.0.1 UP gigaethernet2
5、 unassigned DOWN gigaethernet3 unassigned DOWN switchethernet5/0 21.0.227.21 UP switchethernet5/2 21.0.227.25 UP serial4/0 21.0.224.34 DOWN TO ShenYang seria
6、l4/1 21.0.229.45 DOWN qingyuan serial4/2 21.0.229.49 DOWN to Xinbin serial4/3 unassigned DOWN null0 unassigned UP 4. 查看内存使用情况:sh memory,会出现很多信息,重点查看总使用率如下总使用率为20.32%
7、 STATISTICS ---------- Used bytes Free bytes Total bytes Used percent ---------- ---------- ----------- ------------ 54544868 213885452 268430320 20.32% 5. 查看cpu使用率分为三步,第一打开监控cpu命令:spy cpu。第二步查看cpu情
8、况命令:sh cpu。第三步,查看完毕后关闭监控:no spy cpu。如下cpu空闲为100% tDcacheUpd 0026a1e8 5ee99a0 250 0% ( 0) 0% ( 0) tTunnel 00397a48 55695d0 250 0% ( 0) 0% ( 0) tCGTask 00737b90 373e6f0 251 0% ( 0) 0% ( 0) KERNEL
9、 0% ( 0) 0% ( 0) INTERRUPT 0% ( 0) 0% ( 0) IDLE 100% ( 185) 100% ( 185) TOTAL 100% ( 185) 100% ( 185) 6. 查看路由器版本信息,同时该命令可以查询到路由器运行的时间如
10、下,该路由器版本为6.1.25(REL)(integrity),已经运行的时间为1 week 4 days LNFS2_WN_AR_01# sh version MyPower (R) Operating System Software MP2824 system image file (flash0: /flash/rp9-i-6.1.25(REL).bin), version 6.1.25(REL)(integrity), Compiled on Nov 14 2008, 19:38:09 Copyright (C) 1999 Maipu (
11、Sichuan) Communication Technology Co., Ltd. All Rights Reserved. MP2824 Version Information System ID : 00017ab776cd Hardware Model : RM3B-MPU204-4GE with 256 MBytes DDR SDRAM, 64 MBytes flash Hardware Version : 030(Hotswap Supported) MPU CPLD
12、 Version : 002 Monitor Version : 1.13 Software Version : 6.1.25(REL)(integrity) Software Image File : flash0: /flash/rp9-i-6.1.25(REL).bin Compiled : Nov 14 2008, 19:38:09 System Uptime is 1 week 4 days 7. 查看系统日志sh log buff,可以查看路由器记录的日志信息
13、 8. 查看设备主控信息sh system mpu MSTP_LiaoNing#sh system mpu System Card Information(Mpu 0 - ONLINE) /主控卡0在线 ---------------------------------------------------------------- Type: MPU_RM7A_MPU408_4GE /主控卡型号 Status: Start Ok
14、 /板卡正常运行
Last-Alarm: 0000
Card-Port-Num: 0
Card-SubSlot-Num: 2
Power-INTF-Status: 001f
Power-Card-Status: On
Serial No.: 8882094280300063
Card-Name: 15、ULL>
Hardware-Information:
HW-State: 0000
PCB-Version: H03
CPLD-Version: 002
Software-Information:
Monitor-Version: 1.33
Software-Version: 16、6.2.47(integrity)
Power-RT-Infomation:
Voltage-In: 10.71 V
Temperature-Information:
Temperature-State:
Temperature = 33.
Last-Alarm = 0.
CPU-On-Card-Information: 17、< 1 CPUs>
CPU-Idx: 00
Status: 0000
Core-Num: 0004
Core-State:
Core-Idx-00
Core-Status: 0000
Core-Utilization: 0%
18、 Core-Idx-01
Core-Status: 0000
Core-Utilization: 0%
Core-Idx-02
Core-Status: 0000
Core-Utilization: 0%
19、 Core-Idx-03
Core-Status: 0000
Core-Utilization: 0%
Temperature:
Temperature-State:
Temperature = 60.
La 20、st-Alarm = 0.
MEM-On-Card-Information: <1 MEMs>
MEM-Idx: 00
MEM-State:
BytesFree = 419923360 bytes
BytesAlloc = 114966064 bytes
BlocksFree = 21、 515 blocks
BlocksAlloc = 3085 blocks
MaxBlockSizeFree = 155189248 bytes
DISK-On-Card-Information: <3 DISKs>
DISK-Idx: 00
Type: Flash
Status: Online
22、 Last-Alarm: 0000
DISK-State:
SizeTotal = 67108864 bytes
SizeFree = 37109760 bytes
DISK-Idx: 01
Type: Unknown
Status: Of 23、fline
Last-Alarm: 0000
DISK-Idx: 02
Type: Unknown
Status: Offline
Last-Alarm: 0000
CMM-Information:
Hardware-Type: 0000
24、 Monitor-Version: 1.0.9
Software-Version: 1.1.56
----------------------------------------------------------------
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Mpu 0/0 - ONLINE)
----------------------------------------------------------- 25、
Type: LGU_RM7A_MPU408_4GE_DC
Status: Start Ok
Last-Alarm: 0000
Card-Port-Num: 1
Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
---------------------------------------- 26、
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Mpu 0/1 - ONLINE)
----------------------------------------------------------------
Type: LGU_RM7A_MPU408_4GE_GE
Status: Start Ok
Last- 27、Alarm: 0000
Card-Port-Num: 4
Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
----------------------------------------------------------------
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Mpu 1 - ONL 28、INE)
----------------------------------------------------------------
Type: MPU_RM7A_MPU408_4GE
Status: Start Ok
Last-Alarm: 0000
Card-Port-Num: 0
Card-SubSlot-Num: 2
Power-INTF-Status: 001f
Pow 29、er-Card-Status: On
Serial No.: 8882094170700003
Card-Name: 30、ion: 002
Software-Information:
Monitor-Version: 1.33
Software-Version: 6.2.47(integrity)
Power-RT-Infomation:
Voltage-In: 10.49 V
Temperature-Information:
Temperature-State:
31、 Temperature = 33.
Last-Alarm = 0.
CPU-On-Card-Information: < 1 CPUs>
CPU-Idx: 00
Status: 0000
Core-Num: 0004
Core-State:
32、 Core-Idx-00
Core-Status: 0000
Core-Utilization: 0%
Core-Idx-01
Core-Status: 0000
Core-Utilization: 0%
Cor 33、e-Idx-02
Core-Status: 0000
Core-Utilization: 0%
Core-Idx-03
Core-Status: 0000
Core-Utilization: 0%
Temperature:
34、 Temperature-State:
Temperature = 42.
Last-Alarm = 0.
MEM-On-Card-Information: <1 MEMs>
MEM-Idx: 00
MEM-State:
BytesFree = 35、 424347620 bytes
BytesAlloc = 110541804 bytes
BlocksFree = 13 blocks
BlocksAlloc = 2443 blocks
MaxBlockSizeFree = 236978176 bytes
DISK-On-Card-Informatio 36、n: <3 DISKs>
DISK-Idx: 00
Type: Flash
Status: Online
Last-Alarm: 0000
DISK-State:
SizeTotal = 67108864 bytes
SizeF 37、ree = 37160960 bytes
DISK-Idx: 01
Type: Unknown
Status: Offline
Last-Alarm: 0000
DISK-Idx: 02
Type: Unknown
Status: Offline
38、 Last-Alarm: 0000
CMM-Information:
Hardware-Type: 0000
Monitor-Version: 1.0.9
Software-Version: 1.1.56
----------------------------------------------------------------
STATISTICS: 1 39、IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Mpu 1/0 - ONLINE)
----------------------------------------------------------------
Type: LGU_RM7A_MPU408_4GE_DC
Status: Start Ok
Last-Alarm: 0000
Card-Port-Num: 1
40、 Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
----------------------------------------------------------------
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Mpu 1/1 - ONLINE)
---------------------------------------- 41、
Type: LGU_RM7A_MPU408_4GE_GE
Status: Start Ok
Last-Alarm: 0000
Card-Port-Num: 4
Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
--------------------- 42、
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
9 查看设备业务板卡信息sh syste lpu,类似于上面查看主控信息的命令,这里可以看到包括主控的所有板卡信息
MSTP_LiaoNing#sh system lpu
MSTP_LiaoNing#sh system lpu
System Card Information(Lpu 0 - OFFLINE)
------------------------------------------ 43、
STATISTICS: 0 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Lpu 1 - OFFLINE)
----------------------------------------------------------------
STATISTICS: 0 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Lpu 2 - ONLINE)
--------------- 44、
Type: LPU_RM7B_8E1H
Status: Start Ok
Last-Alarm: 0000
Card-Port-Num: 8
Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
45、 Serial No.: 9671094673000031
Card-Name: 8E1
Description: 46、tion:
Voltage-In: 12.05 V
FPGA-On-Card-Information: <2 FPGAs>
FPGA-Idx: 00
Status: Online
Info-Struct:
id = 0000
type = 0000
47、 state = 00000000
version = 001
FPGA-Idx: 01
Status: Online
Info-Struct:
id = 0001
type = 0000
48、 state = 00000000
version = 001
CMM-Information:
Hardware-Type: 0000
Monitor-Version: 1.0.9
Software-Version: 1.1.56
---------------------------------------------------------------- 49、
STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR
System Card Information(Lpu 3 - ONLINE)
----------------------------------------------------------------
Type: LPU_RM7B_4GET4GEFH
Status: Start Ok
Last-Alarm: 0000
Card 50、Port-Num: 8
Card-SubSlot-Num: 0
Power-INTF-Status: 0000
Power-Card-Status: On
Serial No.: 8966094281500021
Card-Name: 4GT4GF
Description:






