H3C设备运维常用查询命令

查看版本及SN、MAC等信息
display version  
H3C设备运维常用查询命令
display device manuinfo
H3C设备运维常用查询命令
查看物理端口信息
display interface brief
H3C设备运维常用查询命令
查看用户信息
display users
H3C设备运维常用查询命令
查看CPU、内存、风扇、电源使用情况
H3C设备运维常用查询命令
查看逻辑层(三层)接口信息
查看逻辑层(三层)接口信息
查看端口信息
display interface GigabitEthernet x/x/x
查看端口简要配置信息
display interface brief
display brief interface
查看端口配置
display current-configuration interface GigabitEthernet x/x/x
查看当前的配置
display this
查看所有配置
display current-configuration
查看光模块类型
GigabitEthernet5/0/24 transceiver information:
Transceiver Type : 1000_BASE_LX_SFP
Connector Type : LC
Wavelength(nm) : 1310
Transfer Distance(km) : 10(9um)
Digital Diagnostic Monitoring : YES
Vendor Name : H3C
Ordering Name : SFP-GE-LX10-SM1310
查看光功率衰减大小
dis transceiver diagnosis interface GigabitEthernet X/X/X
GigabitEthernetX/X/X transceiver diagnostic information:
Current diagnostic parameters:
Temp( Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
48 3.24 16.75 -8.54 -6.58
Ping命令使用
      -a 指定源地址例:<H3C>ping -a 2.2.2.2 1.1.1.1 源地址目的地址
      -c 指定发送报文的次数  例:<H3C>ping -c 2 1.1.1.1  //ping两次
      -h 指定报文的TTL值,1~255,默认为255
      -m 指定发送报文的时间间隔,1~65535,默认200毫秒                         
      -r 记录路由,默认是不记录路由的
      -s 指定所发送报文的长度,默认为56字节,20~8100
      -t 指定超时时间,默认200毫秒,1~65535
ping -c 100 172.19.254.91  ping 100个包到192.19.254.91
MAC及接口相关查询
display mac-address vlan 1 查看vlan 1 下的客户端MAC地址
display arp | include 192.168.22.199 查看IP对应的MAC地址
display arp | include 00d8-61ec-35e0 查看MAC对应的IP地址
arp max-learning-num 0 关闭vlan接口下MAC地址学习功能
display lldp  neighbor-information list 交换机互连端口和设备
查看接口下IP及MAC地址
[门诊大楼1楼-vlan30]display arp interface g1/0/2
  Type: S-Static   D-Dynamic   O-Openflow   R-Rule   M-Multiport  I-Invalid
IP address      MAC address    VLAN/VSI name Interface                Aging Type
192.168.22.102  6cb3-114b-7852 1             GE1/0/2                  1148  D
display arp interface g1/0/2
1,[MER8300]display arp 192.168.20.177
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address MAC address VLAN/VSI name Interface/Link ID Aging Type
192.168.20.177 5405-db00-f0d4 20 GE2/0 20 D

2,[MER8300]display lldp neighbor-information list
Chassis ID : * — — Nearest nontpmr bridge neighbor
# — — Nearest customer bridge neighbor
Default — — Nearest bridge neighbor
Local Interface Chassis ID Port ID System Name
GE0/3 00e2-6962-e4f3 eth0 iKuai-X86
GE2/0 a8c9-8ae6-4c21 GigabitEthernet1/0/23 门诊大楼1楼
GE2/1 鍒涗笘绾綉缁滃伐绋?d85e-d324-a100 –

3,[门诊大楼1楼-GigabitEthernet1/0/3]display mac-address 5405-db00-f0d4
MAC Address VLAN ID State Port/Nickname Aging
5405-db00-f0d4 20 Learned GE1/0/3 Y
查看接口工作模式
<H3C>dis int g1/0/25
GigabitEthernet1/0/28 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 586a-b1be-30dd
Description: GigabitEthernet1/0/25 Interface
Loopback is not set
Media type is optical fiber, Port hardware type is No connector // optical fiber代表接口工作模式为光口,twisted pair代表接口未电口
H3C设备运维常用查询命令
查看告警信息:

display transceiver alarm interface ten-GigabitEthernet 1/0/25


查看光模块序列号:

display transceiver manuinfo interface ten-GigabitEthernet 1/0/25

 查看型号等信息:

display transceiver interface ten-GigabitEthernet 1/0/25    

 
查看光模块收发光功率:

display transceiver diagnosis interface ten-GigabitEthernet 1/0/25
  • 查看是否环路
display mac-address mac-move
https://www.h3c.com/cn/d_202212/1739370_30005_0.htm#_Toc117868112

4 评论

  1. 1,[MER8300]display arp 192.168.20.177
    Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
    IP address MAC address VLAN/VSI name Interface/Link ID Aging Type
    192.168.20.177 5405-db00-f0d4 20 GE2/0 20 D

    2,[MER8300]display lldp neighbor-information list
    Chassis ID : * — — Nearest nontpmr bridge neighbor
    # — — Nearest customer bridge neighbor
    Default — — Nearest bridge neighbor
    Local Interface Chassis ID Port ID System Name
    GE0/3 00e2-6962-e4f3 eth0 iKuai-X86
    GE2/0 a8c9-8ae6-4c21 GigabitEthernet1/0/23 门诊大楼1楼
    GE2/1 鍒涗笘绾綉缁滃伐绋?d85e-d324-a100 –

    3,[门诊大楼1楼-GigabitEthernet1/0/3]display mac-address 5405-db00-f0d4
    MAC Address VLAN ID State Port/Nickname Aging
    5405-db00-f0d4 20 Learned GE1/0/3 Y

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注