FAQ-如何根据接口索引值去找对应接口

发布时间:  2017-03-20 浏览次数:  591 下载次数:  0
问题描述
如何根据接口索引值去找对应接口?

如下:

Mar 14 2017 13:02:57
GDJK-SC-HW7703-02 %%01IFNET/4/BWRATE_OUT_RESUME(l)[0]:Interface output flow bandwidth usage was restored to the log threshold. (Interface=14,BandWidthUsage=90, LogThreshold=90)

Mar 14 2017 12:51:42 GDJK-SC-HW7703-02%%01IFNET/4/BWRATE_OUT_RISING(l)[1]:Interface output flow bandwidth usage
exceeded the log threshold. (Interface=14, BandWidthUsage=90, LogThreshold=90)

interface=14      //14 为接口索引值,并未接口编号,此时无法通过日志中的索引号找到具体接口名称。
解决方案
在设备诊断视图中通过display ifnet index-map命令查看索引号与接口名称对应关系

[S7700]diagnose     //进入诊断视图
Enter diagnosis view, return user view with Ctrl+Z.
Info: The diagnosis view is used to debug system hardware and software. Misuse of certain commands in this view may affect system performance. Therefore, use these commands with the guidance of Huawei engineers.
[S7700-diagnose]display ifnet index-map

Slot 0/0, Interface Number 78
Index           Interface Name        
1               InLoopBack0           
2               NULL0                 
3               Console0/0/0/0        
4               Ethernet0/0/0/0       
5               Console0/0/0/1        
6               XGigabitEthernet1/1/0/0
7               XGigabitEthernet1/1/0/1
8               XGigabitEthernet1/1/0/2
9               XGigabitEthernet1/1/0/3
10              GigabitEthernet1/1/1/0
11              GigabitEthernet1/1/1/1
12              GigabitEthernet1/1/1/2
13              GigabitEthernet1/1/1/3
14              GigabitEthernet1/1/1/4
15              GigabitEthernet1/1/1/5 

注:S交换机框式设备都适用

END