当前位置:首页>微思动态 > >详情
全国热线电话 400-881-4699

在线留言

华为交换机配置业务诊断功能

发布作者:微思网络   发布时间:2024-01-15   浏览量:0

组网需求

如图1所示,DeviceA通过接口interface1连接用户,通过interface2连接日志服务器。

维护人员希望对MAC地址为00e0-fc12-3456的上线用户进行业务诊断,并将诊断信息输出到日志服务器。

图1 业务诊断配置组网图

本例中interface1代表接口10GE1/0/1,interface2代表接口10GE1/0/2。

d83566c7a18c57bcedacaa6bf59e992.png

操作步骤

配置设备名称。

<HUAWEI> system-view 
[HUAWEI] sysname DeviceA

打开业务诊断功能。

[DeviceA] trace enable

创建诊断对象且将诊断信息输出到日志服务器。

[DeviceA] trace object mac-address 00e0-fc12-3456 output syslog-server 10.10.20.2

配置诊断信息输出到日志服务器的源接口为10GE1/0/2。

[DeviceA] trace syslog source 10ge 1/0/2

检查配置结果

在设备上执行display trace information命令,查看业务诊断信息。

[DeviceA] display trace information
Trace Information:                                                              
------------------------------------------------------------                    
Trace Enable                            : Enable                                
Debug info level                        : Detail                                
Debug fill-instance                     : Off                                   
Debug quit-instance                     : Off                                   
Debug output information                : Off                                   
Syslog Source IP Address                : 10.10.20.1                               

The sum of all the instances            : 0                                     
The startID of the instance table       : -                                     
Alloc instance times                    : 32                                    
Free instance times                     : 32                                    
The sum of all the objects              : 1                                     
------------------------------------------------------------    

在设备上执行display trace instance命令,查看设备上的诊断实例。

[DeviceA] display trace instance mac-address 00e0-fc12-3456
Trace Instance:
------------------------------------------------------------
  ID             : 0
  MAC Address    : 00e0-fc12-3456
  IP Flag        : -
  Session ID     : -
  IP Address     : -
  VRF Index      : -
  CID            : -
  User Name      : -
  Interface      : -
  QinQ VLAN ID   : -
  User VLAN ID   : -
  Access Mode    : -
  Modules online : EAPoL  :0 WEBS   :0 WEB    :0 WEBMNG :0 AAA    :0
                   CM     :0 TM     :0 SAM    :0 RADIUS :0
                   DHCPS  :1 DHCPC  :0 DHCPR  :0 DHCPP  :0
                   TACACS :0 AM     :0 SAVI   :0 WLAN_AC:0
                   L2TP   :0 LNS    :0 PPP    :0 PPPOE  :0
                   PPPOLNS:0
                   AD     :0
                   LDAP   :0
 ------------------------------------------------------------
  Total 1, 1 printed




返回顶部