跳转到主内容

如何使用ifstat对ONTAP 中的以太网网络端口进行故障排除

Views:
79
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
hw
Last Updated:

状态信息

问题描述

  • 本文列出了大多数网络端口的操作和故障排除工作流。但是,这不是一个全面的清单。
  • 可通过此选项将搜索范围缩小到更常用的故障排除知识库文章、并按特定类别进行细分。
  • 用于确定ONTAP中的网络端口问题的主要工具是" ifstat"命令、该命令既可用于 Data ONTAP 7-模式存储器、也可用于Data ONTAP 8.3.x或ONTAP 9集群的节点Shell。

注意:  了解CLI命令的不同shell (仅限集群管理员)

有关"ifstat"命令的详细视图,请参见 此处的手册页

名称

na_ifstat—显示网络接口的设备级统计信息。

摘要

ifstat [-z ]-a | interface_name

说明

  • ifstat命令可显示有关在指定网络接口或所有网络接口上接收和发送的数据包的统计信息。
    • 统计信息是从节点启动或计数器重置时开始累积的
  • z参数清除统计信息。
    • ifstat -z e0a 仅清除端口e0a的统计信息
    • ifstat -z -a 清除所有端口的状态
  • ifstat -a 显示所有网络接口的统计信息、包括虚拟主机和环回地址。
  • ifstat e0a  仅显示端口e0a的统计信息

HA注意事项

  • 在接管模式下、ifstat命令将显示有关本地网络接口处理的数据包以及本地网络接口代表故障节点上的网络接口处理的数据包的综合统计信息。
  • ifstat命令显示的统计信息是累积的。也就是说、交还操作不会发生原因通过ifstat命令将统计信息置零。ifstat为任何给定网络接口端口返回的计数器可能会因ONTAP或NIC硬件提供程序的版本而异。

ONTAP 9.2中四千兆位以太网控制器82580上的ifstat输出示例:

::*> system node run -node cm2520-ks6-01 -command ifstat e0a

-- interface e0a (3 hours, 45 minutes, 32 seconds) --

RECEIVE
Total frames: 0 | Total bytes: 0 | Total errors: 0
Total discards: 0 | Multi/broadcast: 0 | Non-primary u/c: 0
CRC errors: 0 | Runt frames: 0 | Fragment: 0
Long frames: 0 | Jabber: 0 | No buffer: 0
Xon:  0 | Xoff: 0 
| Jumbo: 0
Noproto: 0 | Error symbol: 0 | Illegal symbol: 0
Bus overruns: 0 | LRO segments: 0 | LRO bytes: 0
LRO6 segments: 0 | LRO6 bytes: 0 | Bad UDP cksum: 0
Bad UDP6 cksum: 0 | Bad TCP cksum: 0 | Bad TCP6 cksum: 0
Mcast v6 solicit: 0

TRANSMIT
Total frames: 0 | Total bytes: 0 | Total errors: 0
Multi/broadcast: 0 | Max collisions: 0 | Single collision: 0
Multi collisions: 0 | Late collisions: 0 | Xon:  0
Xoff: 0
 
| Jumbo: 0 | Cfg Up to Downs: 0
TSO non-TCP drop: 0 | Split hdr drop: 0 | Timeout: 0
TSO segments: 0 | TSO bytes: 0 | TSO6 segments: 0
TSO6 bytes: 0 | HW UDP cksums: 0 | HW UDP6 cksums: 0
HW TCP cksums: 0 | HW TCP6 cksums: 0 | Mcast v6 solicit: 0

DEVICE
Mcast addresses: 1 | Rx MBuf Sz: 4096

LINK INFO
Speed: 0 | Duplex: full | Flowcontrol: full
Current state: down | Up to downs: 0

 

  • 上面以红色突出显示了用于诊断ifstat输出中的网络问题的一些较常见计数器。

重要说明

这些计数器意味着什么?

  • 只有在您知道这些计数器运行的时间长度及其增量速率后、识别具有任何特定值的计数器才会特别有意义。
  • 如果计数器尚未重置(通过重新启动或执行ifstat -z)、则可能会出现大量错误、但这些错误并不表示存在重大问题。
  • 或者、我们也可以定期检查这些计数器、查看其增长速度。

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.