附录 >> 常见信息收集命令 >> |
show version ---10.x查看版本
show version detail ---- 11.x查看软件版本
show run
---查看配置
show ip interface brief ---查看接口IP
show running-config | include http port ---查看http管理端口,默认80不显视配置
show cpu
---查看CPU利用率
show memory ---查看内存利用率
show arp ---查看ARP表项
show ip route ---查看路由表
show interface ---查看接口状态
show ip fpm statistics ---查看当前的整机流表情况
show ip fpm flow | in x.x.x.x ---查看某个IP的流表
show flow-pre-mgr ip-info ---查看每个IP的会话数情况
Ruijie#show interface gigabitEthernet 0/1
Index(dec):5 (hex):5
GigabitEthernet 0/1 is UP , line protocol is UP ---接口状态
Hardware is OCTEON-SGMII GigabitEthernet, address is
001a.a93c.7a29 (bia 001a.a93c.7a29)
Interface address is: 172.18.10.113/24
ARP type: ARPA,ARP Timeout: 3600 seconds
MTU 1500
bytes, BW 10000 Kbit ---接口bandwith值
Encapsulation protocol is Ethernet-II, loopback not set
Keepalive
interval is 10 sec , set
Carrier
delay is 2 sec
RXload is
1 ,Txload is 1
Queueing
strategy: FIFO
Output queue 0/40, 0 drops;
Input queue 0/75, 0 drops
Link
Mode: Up.
Speed 100M, Duplex full, Media-Type is copper. ---接口速率及双工状态
30
seconds input rate 4266 bits/sec, 7 packets/sec
30
seconds output rate 12712 bits/sec, 19 packets/sec
1050787 packets input, 75635511 bytes, 0 no buffer, 0 dropped ---关注no buffer值是否增加
Received 860603 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort
1253117 packets output, 132757136 bytes, 0 underruns , 0 dropped
0 output errors, 0 collisions, 0 interface resets
·
show ip fpm statistics ---查看当前的整机流表情况
Ruijie#show ip fpm statistics
The capacity of the flow table:800000
Number of active flows:28
Number of the defragment contexts:0
Number of the buffers hold by FPM:0
Event count (%256):22
·
show ip fpm flow | in x.x.x.x ---查看某个IP的流表
show ip fpm flows | include 192.168.10.100
Pro
SrcAddr
DstAddr SrcPort DstPort Vrf SendBytes RecvBytes State
TCP
192.168.10.100 (218.106.145.23)
223.99.255.214
54949 80
0
9245
11855
TCP_ESTABLISHED
协议 源IP
目标IP 源端口 目标端口
发送字节 接收字节 状态
show ip fpm flows | include 131.93.38.41
TCP
131.93.38.41
218.106.145.21 (172.16.200.13) 25315
80
0 11092
92355
TCP_ESTABLISHED
·
show flow-pre-mgr ip-info ---查看每个IP的会话数情况
Ruijie#show flow-pre-mgr ip-info
IP-ADDRESS
flow-cnt
flow-limit
============================================================
172.16.5.98
646
1000
172.16.5.120
614
1000
172.16.2.111
552
1000
59.37.162.25
432
0
172.16.3.14
398
10000
flow-cnt
---用户的当前会话数
flow-limit
---给用户限制的最大会话数,0表示不限制
• show
ip fpm flow -- 10.x/11.x通用,查看流表
• show
ip fp pri 1 --
10.x/11.x通用,查看选路方式
• show
ip fp pri 12 -- 11.x版本查看选路结果
• show
ip fp module --10.x版本确定选路结果对应的私有空间ID
show ip fp pri xxx --xx为根据show ip fp module输出结果,查看选路私有空间ID为最后一列为24的第一列数值(011)进行十六进制转换得出的数字(17)(适用10.x)
• show
ip fp modules --11.x版本确定选路结果对应的私有空间ID
show ip fp pri xx --xx为根据show ip fp module输出结果,查看第一列数值对应的的数字,如选路私有空间为show
ip fp pri 10(适用11.x)