迈普路由器常用show命令.docx
《迈普路由器常用show命令.docx》由会员分享,可在线阅读,更多相关《迈普路由器常用show命令.docx(16页珍藏版)》请在冰豆网上搜索。
迈普路由器常用show命令
1.查看配置命令:
shrun
作用:
查看路由器的配置
2.查看路由表shiproute
作用查看路由器的路由表,如下
WANGHUA_DANDONGLU#shiproute
Codes:
C-connected,S-static,R-RIP,O-OSPF,OE-OSPFExternal,M-Management
D-Redirect,E-IRMP,EX-IRMPexternal,o-SNSP,B-BGP
Gatewayoflastresortis0.0.0.0tonetwork0.0.0.0
S0.0.0.0/0[1/78125]isdirectlyconnected,1138:
18:
02,serial0/0
C21.38.249.4/30isdirectlyconnected,1138:
18:
02,serial0/0
C21.38.250.32/28isdirectlyconnected,1138:
18:
36,fastethernet0
C21.38.250.56/30isdirectlyconnected,1138:
18:
37,loopback0
C22.38.250.32/28isdirectlyconnected,1138:
18:
36,fastethernet0
C22.38.250.56/30isdirectlyconnected,1138:
18:
37,loopback1
C127.0.0.0/8isdirectlyconnected,1138:
18:
46,lo0
C21.38.249.5/32isdirectlyconnected,1138:
18:
02,serial0/0
3.简明接口信息查询shipinterfacebrif
作用:
查看各个接口的状态,这里可以看到接口的对应的ip,以及接口状态,up表示接口在使用并且链路正常。
LNFS2_WN_AR_01#shipinterfacebrief
InterfaceIP-AddressStatusDescription
gigaethernet021.0.225.10UPLINKTORG5750
lo0127.0.0.1UP
gigaethernet2unassignedDOWN
gigaethernet3unassignedDOWN
switchethernet5/021.0.227.21UP
switchethernet5/221.0.227.25UP
serial4/021.0.224.34DOWNTOShenYang
serial4/121.0.229.45DOWNqingyuan
serial4/221.0.229.49DOWNtoXinbin
serial4/3unassignedDOWN
null0unassignedUP
4.查看内存使用情况:
shmemory,会出现很多信息,重点查看总使用率如下总使用率为20.32%
STATISTICS
----------
UsedbytesFreebytesTotalbytesUsedpercent
-------------------------------------------
5454486821388545226843032020.32%
5.查看cpu使用率分为三步,第一打开监控cpu命令:
spycpu。
第二步查看cpu情况命令:
shcpu。
第三步,查看完毕后关闭监控:
nospycpu。
如下cpu空闲为100%
tDcacheUpd0026a1e85ee99a02500%(0)0%(0)
tTunnel00397a4855695d02500%(0)0%(0)
tCGTask00737b90373e6f02510%(0)0%(0)
KERNEL0%(0)0%(0)
INTERRUPT0%(0)0%(0)
IDLE100%(185)100%(185)
TOTAL100%(185)100%(185)
6.查看路由器版本信息,同时该命令可以查询到路由器运行的时间如下,该路由器版本为6.1.25(REL)(integrity),已经运行的时间为1week4days
LNFS2_WN_AR_01#shversion
MyPower(R)OperatingSystemSoftware
MP2824systemimagefile(flash0:
/flash/rp9-i-6.1.25(REL).bin),version6.1.25(REL)(integrity),CompiledonNov142008,19:
38:
09
Copyright(C)1999Maipu(Sichuan)CommunicationTechnologyCo.,Ltd.AllRightsReserved.
MP2824VersionInformation
SystemID:
00017ab776cd
HardwareModel:
RM3B-MPU204-4GEwith256MBytesDDRSDRAM,64MBytesflash
HardwareVersion:
030(HotswapSupported)
MPUCPLDVersion:
002
MonitorVersion:
1.13
SoftwareVersion:
6.1.25(REL)(integrity)
SoftwareImageFile:
flash0:
/flash/rp9-i-6.1.25(REL).bin
Compiled:
Nov142008,19:
38:
09
SystemUptimeis1week4days
7.查看系统日志shlogbuff,可以查看路由器记录的日志信息
8.查看设备主控信息shsystemmpu
MSTP_LiaoNing#shsystemmpu
SystemCardInformation(Mpu0-ONLINE)/主控卡0在线
----------------------------------------------------------------
Type:
MPU_RM7A_MPU408_4GE/主控卡型号
Status:
StartOk/板卡正常运行
Last-Alarm:
0000
Card-Port-Num:
0
Card-SubSlot-Num:
2
Power-INTF-Status:
001f
Power-Card-Status:
On
SerialNo.:
8882094280300063
Card-Name:
Description:
Hardware-Information:
HW-State:
0000
PCB-Version:
H03
CPLD-Version:
002
Software-Information:
Monitor-Version:
1.33
Software-Version:
6.2.47(integrity)
Power-RT-Infomation:
Voltage-In:
10.71V
Temperature-Information:
Temperature-State:
Temperature=33.
Last-Alarm=0.
CPU-On-Card-Information:
<1CPUs>
CPU-Idx:
00
Status:
0000
Core-Num:
0004
Core-State:
Core-Idx-00
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-01
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-02
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-03
Core-Status:
0000
Core-Utilization:
0%
Temperature:
Temperature-State:
Temperature=60.
Last-Alarm=0.
MEM-On-Card-Information:
<1MEMs>
MEM-Idx:
00
MEM-State:
BytesFree=419923360bytes
BytesAlloc=114966064bytes
BlocksFree=515blocks
BlocksAlloc=3085blocks
MaxBlockSizeFree=155189248bytes
DISK-On-Card-Information:
<3DISKs>
DISK-Idx:
00
Type:
Flash
Status:
Online
Last-Alarm:
0000
DISK-State:
SizeTotal=67108864bytes
SizeFree=37109760bytes
DISK-Idx:
01
Type:
Unknown
Status:
Offline
Last-Alarm:
0000
DISK-Idx:
02
Type:
Unknown
Status:
Offline
Last-Alarm:
0000
CMM-Information:
Hardware-Type:
0000
Monitor-Version:
1.0.9
Software-Version:
1.1.56
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Mpu0/0-ONLINE)
----------------------------------------------------------------
Type:
LGU_RM7A_MPU408_4GE_DC
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
1
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Mpu0/1-ONLINE)
----------------------------------------------------------------
Type:
LGU_RM7A_MPU408_4GE_GE
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
4
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Mpu1-ONLINE)
----------------------------------------------------------------
Type:
MPU_RM7A_MPU408_4GE
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
0
Card-SubSlot-Num:
2
Power-INTF-Status:
001f
Power-Card-Status:
On
SerialNo.:
8882094170700003
Card-Name:
Description:
Hardware-Information:
HW-State:
0000
PCB-Version:
H03
CPLD-Version:
002
Software-Information:
Monitor-Version:
1.33
Software-Version:
6.2.47(integrity)
Power-RT-Infomation:
Voltage-In:
10.49V
Temperature-Information:
Temperature-State:
Temperature=33.
Last-Alarm=0.
CPU-On-Card-Information:
<1CPUs>
CPU-Idx:
00
Status:
0000
Core-Num:
0004
Core-State:
Core-Idx-00
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-01
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-02
Core-Status:
0000
Core-Utilization:
0%
Core-Idx-03
Core-Status:
0000
Core-Utilization:
0%
Temperature:
Temperature-State:
Temperature=42.
Last-Alarm=0.
MEM-On-Card-Information:
<1MEMs>
MEM-Idx:
00
MEM-State:
BytesFree=424347620bytes
BytesAlloc=110541804bytes
BlocksFree=13blocks
BlocksAlloc=2443blocks
MaxBlockSizeFree=236978176bytes
DISK-On-Card-Information:
<3DISKs>
DISK-Idx:
00
Type:
Flash
Status:
Online
Last-Alarm:
0000
DISK-State:
SizeTotal=67108864bytes
SizeFree=37160960bytes
DISK-Idx:
01
Type:
Unknown
Status:
Offline
Last-Alarm:
0000
DISK-Idx:
02
Type:
Unknown
Status:
Offline
Last-Alarm:
0000
CMM-Information:
Hardware-Type:
0000
Monitor-Version:
1.0.9
Software-Version:
1.1.56
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Mpu1/0-ONLINE)
----------------------------------------------------------------
Type:
LGU_RM7A_MPU408_4GE_DC
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
1
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Mpu1/1-ONLINE)
----------------------------------------------------------------
Type:
LGU_RM7A_MPU408_4GE_GE
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
4
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
9查看设备业务板卡信息shsystelpu,类似于上面查看主控信息的命令,这里可以看到包括主控的所有板卡信息
MSTP_LiaoNing#shsystemlpu
MSTP_LiaoNing#shsystemlpu
SystemCardInformation(Lpu0-OFFLINE)
----------------------------------------------------------------
STATISTICS:
0IN,0OUT,0IERR,0OERR
SystemCardInformation(Lpu1-OFFLINE)
----------------------------------------------------------------
STATISTICS:
0IN,0OUT,0IERR,0OERR
SystemCardInformation(Lpu2-ONLINE)
----------------------------------------------------------------
Type:
LPU_RM7B_8E1H
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
8
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
SerialNo.:
9671094673000031
Card-Name:
8E1
Description:
Hardware-Information:
HW-State:
0000
PCB-Version:
H03
CPLD-Version:
003
Power-RT-Infomation:
Voltage-In:
12.05V
FPGA-On-Card-Information:
<2FPGAs>
FPGA-Idx:
00
Status:
Online
Info-Struct:
id=0000
type=0000
state=00000000
version=001
FPGA-Idx:
01
Status:
Online
Info-Struct:
id=0001
type=0000
state=00000000
version=001
CMM-Information:
Hardware-Type:
0000
Monitor-Version:
1.0.9
Software-Version:
1.1.56
----------------------------------------------------------------
STATISTICS:
1IN,0OUT,0IERR,0OERR
SystemCardInformation(Lpu3-ONLINE)
----------------------------------------------------------------
Type:
LPU_RM7B_4GET4GEFH
Status:
StartOk
Last-Alarm:
0000
Card-Port-Num:
8
Card-SubSlot-Num:
0
Power-INTF-Status:
0000
Power-Card-Status:
On
SerialNo.:
8966094281500021
Card-Name:
4GT4GF
Description:
Hardware-Information:
HW-State:
0000
PCB-Version:
H01
CPLD-Version:
002
Power-RT-Infomation:
Voltage-In:
0.00V
SFP-On-Card-Information:
<4SFPs>
SFP-Idx:
00
Type:
0000
Status:
Offline
SFP-Idx:
01
Type:
0000
Status:
Offline
SFP-Idx:
02
Type:
0000
Status:
Offline
SFP-Idx:
03
Type:
0000
Status:
Offline
CMM-Information:
Hardware-Type:
0000
Monitor-Version:
1.0.9
Software-Version:
1.1.56
-----------------------------