メインコンテンツへスキップ

ONTAP 9.2〜9.9 システムでパケットトレース(tcpdump)を取得する方法

Views:
2,513
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
nas
Last Updated:

環境

ONTAP 9.2~9.9

概要

ONTAP 9.2から9.9までのシステムでパケットトレース(tcpdump)をキャプチャする手順。

手順

 

警告

  • 可能な限り常に単一のクライアントIPでパケットトレースをフィルタリングします
    • 複数のクライアントが影響を受けている場合は、トラブルシューティングの対象として1を選択します
  • 最小値が4096のシステムでは、-bufferフラグを使用して、トレースがパケットをフィルタリングしないようにします
  • ネットワークポートで受信されているCRCエラーをキャプチャするためにこの手順に従わないでください。

 

::> network tcpdump start -node <node> -port <port/ifgrp/vlan> -address <client-ip/lif-ip/etc.> -buffer-size 2097151

注:  

  • -node-portは必須です
  • このコマンドのノードまたはポートにワイルドカードは使用できません
  • ifgrp(例:a0a)にVLAN(例:a0a-117)がある場合、a0aを指定するとネイティブVLAN(タグなし)トラフィックのみがキャプチャされます
  • -addressオプションでは トレースをフィルタリングするIPアドレスを1つだけ指定できます。
  • -protocol-portオプションを使用すると、TCPトラフィックとUDPトラフィックの両方について、トレースを1つのポートでフィルタリングできます。
  • ローリングトレース:

::> network tcpdump start -node cl1-n1 -port e0b -file-size 512 -rolling-traces 4 -address 10.1.1.2 -protocol-port 445

注:

  • このトレースは、それぞれ512 MBのサイズのトレースファイルを最大4つロールアップします(最も古いファイルが最初に削除されます)。
  • 選択したポートでトレースを行い、IPアドレス10.1.1.2およびTCP/UDPポート445をフィルタリングします。
     
  • 実行中のパケットトレースを表示するには(network tcpdump show (netapp.com)):

::> network tcpdump show

 ::> tcpdump stop -node <node> -port [*|<port>]

  • すべてのトレースを停止するには:

::> tcpdump stop *

::> network tcpdump trace show

注: ONTAPはトレースファイルを /mroot/etc/log/packet_tracesに保存します

::> network tcpdump trace delete -node <node> -trace-file *

  • Webブラウザ経由でパケットトレースを取得:
    • http(s)://<CLUSTER_MGMT_IP>/spi/<NODE_NAME>/etc/log/packet_traces/

注: clustered Data ONTAPのクレデンシャルが必要ですSPIにアクセスするには

スペースに関する考慮事項

  • 大きなトレースを収集する場合は、df -hコマンドを使用して、ノードのルートボリュームに十分なスペースがあることを確認します。
    • パケットトレースを開始する前に、合計トレースサイズ(ファイルサイズ×トレース数)の2倍以上が利用可能である必要があります。
  • デフォルトでは、トレースファイルがスナップショットコピーに追加されるため、vol0(root volume)がすぐにいっぱいになり、停止が発生する可能性があります
    • スナップショットでキャプチャされたトレースファイルがルートボリュームのスペースを消費しないようにするには:
      • トレースを収集しているノードのnodeshellからノードのrootボリュームで自動Snapshotを無効にします

::> run -node <node> -command "vol options vol0 nosnap on" 

::> run -node <node> -command "snap list vol0"

::> run -node <node> -command "snap delete vol0 <snap name>"

  • パケットトレースの収集が完了したら、ルートボリュームのSnapshotが元々有効になっていた場合は再度有効にします
    • Snapshotを無効にしたノードのnodeshellから

::> run -node <node> -command "vol options vol0 nosnap off"

追加情報

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.