コンテンツにスキップ

show pfc サブコマンド

概要

show pfcPFC counter と PFC priority mapping を表示する CLI グループ。show pfcwd は同じ領域の watchdog 表示 wrapper で、pfcwd show ... に委譲する1

コマンド一覧

コマンド 用途
show pfc counters [options] PFC counters を表示
show pfc priority [options] PFC priority 設定を表示
show pfc asymmetric [options] asymmetric PFC 設定を表示
show pfcwd config [-d true|false] PFC watchdog config を表示
show pfcwd stats [-d true|false] PFC watchdog stats を表示

詳細

show pfc 配下の command は pfcstat / pfc 系 utility を実行する wrapper として定義される。interface alias mode の場合は必要に応じて alias を SONiC port 名へ変換してから外部コマンドへ渡す。

show pfcwd configpfcwd show config -d <display>show pfcwd statspfcwd show stats -d <display> を実行する。display は multi-ASIC 共通 option の表示制御値2

注意

  • config interface pfc ... は設定系で、show pfc は表示系。
  • PFC watchdog の永続化や counter の詳細は pfcwd 実装側に依存する。

関連リファレンス

  • (関連リンクなし)

引用元

実行例

典型的な使い方

# 例 1: PFC 状態と統計
show pfc counters

よくある引数の組み合わせ

show pfc priority
show pfc asymmetric

期待される出力 (抜粋)

       Port    PFC0    PFC1    PFC2    PFC3    PFC4    PFC5    PFC6    PFC7
-----------  ------  ------  ------  ------  ------  ------  ------  ------
  Ethernet0       0       0       0    1234       0       0       0       0

データフロー (自動生成)

flowchart LR
  CLI["show pfc"]
  SRC0[("COUNTERS_DB<br/>COUNTERS:Ethernet*")]
  V0["pfcstat / pfcwd show"]
  SRC0 --> V0 --> CLI

凡例

show 系 (データソース → ラッパスクリプト → CLI) のミニ図。CONFIG_DB は経由しない。

関連 Topics

運用ヒント

典型的な利用シーン

  • PFC counters / asymmetric PFC 状態の確認。
  • 輻輳発生時の priority 別 PAUSE フレーム数監視。

よくある落とし穴

  • PFC を有効にしていないキューにも counter は出るが、値はゼロのまま誤解される。
  • asymmetric PFC は機種依存。show pfc asymmetric で対応有無を確認。

関連する show / debug

show pfc counters
show pfc priority
show pfcwd stats

関連 CLI コマンド