NetApp ONTAP Network Troubleshooting: Essential CLI Commands - 夜莺博客

NetApp ONTAP Network Troubleshooting: Essential CLI Commands

When a NetApp ONTAP cluster starts dropping client traffic or failing replication, the first step is isolating the network layer — and ONTAP gives you a complete diagnostic toolkit without leaving the cluster CLI. This guide maps each command to the problem it solves: reachability checks with network ping, path tracing with network traceroute, neighbor discovery with network ndp, interface statistics via the nodeshell, and packet capture with network tcpdump. All commands are from the official ONTAP 9 documentation.

Reachability and Path Testing

Goal Command
Test reachability to IPv4 hosts network ping
Test reachability to IPv6 hosts network ping6
Trace IPv4 route to a node network traceroute
Trace IPv6 route to a node network traceroute6
Manage Neighbor Discovery Protocol network ndp

Interface and Neighbor Checks

Display packet statistics for a specific network interface (available from the nodeshell):

run -node node_name ifstat

Show neighboring devices discovered from each node and port, including remote device type and platform:

network device-discovery show

View CDP neighbors (ONTAP supports CDPv1 advertisements only):

run -node node_name cdpd show-neighbors

Packet Capture

Trace packets sent and received on a port (nodeshell command):

network tcpdump start -node node-name -port port_name

Intercluster and Intracluster Path Testing

Measure latency and throughput between intercluster or intracluster nodes:

network test -path -source-node node1 local -destination-cluster cluster2 -destination-node node2 -session-type Default,AsyncMirrorLocal,AsyncMirrorRemote,SyncMirrorRemote,RemoteDataTransfer

This is invaluable when SnapMirror transfers are slow or time out — it isolates whether the problem is the network path or the data transfer itself.

More ONTAP Content on This Site

Continue with ONTAP 9 performance commands, ONTAP network configuration best practices and ONTAP SnapMirror guide.

原文链接:https://docs.netapp.com/us-en/ontap/networking/commands_for_diagnosing_network_problems.html