ステップ 1 |
configure terminal
Device# configure terminal
|
グローバル コンフィギュレーション モードを開始します。
|
ステップ 2 |
flow record flow_record_name
Device(config)# flow record flow-record-1
|
フロー レコード コンフィギュレーション モードを開始します。
|
ステップ 3 |
description 説明
Device(config-flow-record)# description flow-record-1
|
|
ステップ 4 |
match ipv4 version
Device (config-flow-record)# match ipv4 version
|
IPv4 ヘッダーからの IP バージョンとの一致を指定します。
|
ステップ 5 |
match ipv4 protocol
Device (config-flow-record)# match ipv4 protocol
|
|
ステップ 6 |
match application name
Device (config-flow-record)# match application name
|
アプリケーション名との一致を指定します。
(注)
|
この操作は、AVC サポートでは必須です。フローがアプリケーションと一致することが可能になるためです。
|
|
ステップ 7 |
match connection client ipv4 address
Device (config-flow-record)# match connection client ipv4 address
|
クライアント(フロー イニシエータ)の IPv4 アドレスとの一致を指定します。
|
ステップ 8 |
match connection server ipv4 address
Device (config-flow-record)# match connection server ipv4 address
|
サーバ(フロー レスポンダ)の IPv4 アドレスとの一致を指定します。
|
ステップ 9 |
match connection server transport port
Device (config-flow-record)# match connection server transport port
|
サーバのトランスポート ポートとの一致を指定します。
|
ステップ 10 |
match flow observation point
Device (config-flow-record)# match flow observation point
|
フロー観測メトリックの観測ポイント ID との一致を指定します。
|
ステップ 11 |
collect flow direction
Device (config-flow-record)# collect flow direction
|
次の手順で collect connection
initiator コマンドの initiator キーワードで指定される双方向フローの関連する側(イニシエータまたはレスポンダ)の方向(入力または出力)を収集するように指定します。initiator キーワードで指定される値に応じて、flow
direction キーワードは次の値をとります。
-
0x01 = 入力フロー
-
0x02 = 出力フロー
initiator キーワードがイニシエータに設定されている場合、フローの方向はフローのイニシエータ側から指定されます。initiator キーワードがレスポンダに設定されている場合、フローの方向はフローのレスポンダ側から指定されます。有線 AVC では、initiator キーワードは常にイニシエータに設定されています。
|
ステップ 12 |
collect connection initiator
Device (config-flow-record)# collect connection initiator
|
collect flow
direction コマンドで指定されたフローの方向に関連するフローの側(イニシエータまたはレスポンダ)を収集するように指定します。initiator キーワードは、フローの方向に関する次の情報を提供します。
有線 AVC では、initiator キーワードは常にイニシエータに設定されています。
|
ステップ 13 |
collect connection client counter packets long
Device (config-flow-record)# collect connection client counter packets long
|
クライアントが送信したパケット数を収集するように指定します。
|
ステップ 14 |
collect connection client counter bytes network
long
Device (config-flow-record)# collect connection client counter bytes network long
|
クライアントが送信したバイト数の合計を収集するように指定します。
|
ステップ 15 |
collect connection server counter packets long
Device (config-flow-record)# collect connection server counter packets long
|
サーバが送信したパケット数を収集するように指定します。
|
ステップ 16 |
collect connection server counter bytes network
long
Device (config-flow-record)# collect connection server counter bytes network long
|
サーバが送信したバイト数の合計を収集するように指定します。
|
ステップ 17 |
collect timestamp absolute first
Device (config-flow-record)# collect timestamp absolute first
|
最初のパケットがフローで確認されたときの時間をミリ秒単位で収集するように指定します。
|
ステップ 18 |
collect timestamp absolute last
Device (config-flow-record)# collect timestamp absolute last
|
最新のパケットがフローで確認されたときの時間をミリ秒単位で収集するように指定します。
|
ステップ 19 |
collect connection new-connections
Device (config-flow-record)# collect connection new-connections
|
観測された接続開始の数を収集するように指定します。
|
ステップ 20 |
end
|
特権 EXEC モードに戻ります。また、Ctrl+Z キーを押しても、グローバル コンフィギュレーション モードを終了できます。
|
ステップ 21 |
show flow
record
Device # show flow record
|
すべてのフロー レコードに関する情報を表示します。
|