運用コマンドレファレンス Vol.2
sFlow統計についてのコンフィグレーション設定状態と動作状況を表示します。
[入力形式]
show sflow [detail]
[入力モード]
一般ユーザモードおよび装置管理者モード
[パラメータ]
- detail
- sFlow統計情報の設定状態と動作状況の詳細情報を表示します。
[実行例]
図15-1 sFlow統計の設定状態と動作状況の表示
> show sflow Date 20XX/07/19 12:00:00 UTC sFlow service status : enable Elapsed time from the last statistics clearance : 12:00:05 sFlow agent data : sFlow service version : 4 CounterSample interval rate : 60 seconds Received sFlow samples : 37269 Dropped sFlow samples : 2093 Exported sFlow samples : 37269 Non-exported sFlow Samples : 0 sFlow collector data : Collector IP address : 192.168.1.20 UDP : 6343 Source IP address : 192.168.1.1 Send FlowSample UDP packets : 12077 Send failed packets : 0 Send CounterSample UDP packets : 621 Send failed packets : 0 Collector IP address : 192.168.1.21 UDP : 65535 Source IP address : 192.168.1.1 Send FlowSample UDP packets : 12077 Send failed packets : 0 Send CounterSample UDP packets : 621 Send failed packets : 0 sFlow sampling data : Configured rate(actual rate) : 1 per 2048 packets(1 per 2048 packets) Configured sFlow ingress ports : 1/2-4図15-2 sFlow統計の設定状態と動作状況の詳細表示
> show sflow detail Date 20XX/07/19 12:00:00 UTC sFlow service status : enable Elapsed time from the last statistics clearance : 12:00:05 sFlow agent data : sFlow service version : 4 CounterSample interval rate : 60 seconds Received sFlow samples : 37269 Dropped sFlow samples : 2093 Exported sFlow samples : 37269 Non-exported sFlow Samples : 0 sFlow collector data : Collector IP address : 192.168.1.20 UDP : 6343 Source IP address : 192.168.1.1 Send FlowSample UDP packets : 12077 Send failed packets : 0 Send CounterSample UDP packets : 621 Send failed packets : 0 Collector IP address : 192.168.1.21 UDP : 65535 Source IP address : 192.168.1.1 Send FlowSample UDP packets : 12077 Send failed packets : 0 Send CounterSample UDP packets : 621 Send failed packets : 0 sFlow sampling data : Configured rate(actual rate) : 1 per 2048 packets(1 per 2048 packets) Configured sFlow ingress ports : 1/2-4 Detail data : Max packet size : 1400 bytes Packet information type : header Max header size : 256 bytes Extended information type : router,gateway,user,url URL port number : 80,8080 Sampling mode : random-number Target ports for CounterSample : 1/2-4
[表示説明]
表15-1 sFlow統計情報表示内容
表示項目 表示内容 sFlow service status sFlow統計の現在の動作状況
(対象となるポートが指定されていない場合はdisableと表示)Elapsed time from the last statistics clearance sFlow統計が開始してからの経過時間,または最後にclear sflow statisticsコマンドが実行されてからの経過時間
hh:mm:ss:(24時間以内の場合:hh=時,mm=分,ss=秒)
D day:(24時間を超えた場合:D=日数)sFlow service version sFlowパケットのバージョン CounterSample interval rate カウンタサンプルの送信間隔(秒) Received sFlow samples 正常にサンプリングされたパケットの総数 Dropped sFlow samples 装置内部で廃棄したフローサンプルパケットの総数 Exported sFlow samples コレクタへ送信したUDPパケットに含まれるサンプルパケットの総数 Non-exported sFlow Samples 送信に失敗したUDPパケットに含まれるサンプルパケットの総数 Collector IP address コンフィグレーションで設定されたコレクタのIPアドレス UDP UDPポート番号 Source IP address コレクタへ送信時に,エージェントIPとして使用しているアドレス Send FlowSample UDP packets コレクタへ送信したフローサンプルのUDPパケット数 Send failed packets コレクタへ送信できなかったUDPパケット数 Send CounterSample UDP packets コレクタへ送信したカウンタサンプルのUDPパケット数 Configured rate コンフィグレーションで設定されたサンプリング間隔 (actual rate) 実際に動作しているサンプリング間隔 Configured sFlow ingress ports コンフィグレーションコマンドsflow forward ingressが設定された,sFlow統計を収集しているポート Max packet size sFlowパケットの最大サイズ Packet information type フローサンプルの基本データ形式 Max header size 基本データ形式でヘッダ型を使用する場合のヘッダ長の最大サイズ Extended information type フローサンプルの拡張データ形式 URL port number 拡張データ形式でURL情報を使用する場合に,HTTPパケットと判断するポート番号 Sampling mode サンプリングの方式 random-number サンプリング間隔に従った確率(乱数)での収集 Target ports for CounterSample カウンタサンプルの対象ポート
[通信への影響]
なし
[応答メッセージ]
表15-2 show sflowコマンドの応答メッセージ一覧
メッセージ 内容 The command cannot be executed in the standby system. このコマンドは待機系では実行できません。 The command cannot be executed. Try again. コマンドを実行できません。再実行してください。 The command is not authorized by the RADIUS/TACACS+ server or the configuration. このコマンドはRADIUSサーバ,TACACS+サーバ,またはコンフィグレーションで承認されていません。 The flow statistics program(flowd) is not running. フロー統計プログラムが起動していないため,コマンドが失敗しました。sFlow統計が有効になっているにもかかわらずこのメッセージが出る場合は,フロー統計プログラムの再起動を待って,コマンドを再実行してください。
[注意事項]
- パケット数や統計情報カウンタが最大値(32bitカウンタ)を超えた場合,0に戻ります。
- IPアドレスやポートがコンフィグレーションで設定されていない場合は"----"と表示します。
All Rights Reserved, Copyright(C), 2012, 2019, ALAXALA Networks, Corp.