test interface
- モード
- 特権EXECモード
- カテゴリー
- インターフェース / 一般設定
構文
# test interface {IFRANGE|all} [time {<1-60>|cont} | second <1-3600>] [fixed]
# no test interface {IFRANGE|all}
コマンド説明
指定したインターフェースに対してテストパケットの送信を開始する。no形式で実行した場合はテストパケットの送信を停止する。
パラメーター
IFRANGE- ポートリスト。ハイフン、カンマを使った複数指定が可能
all- すべてのポートを指定する
time {<1-60>|cont}- テストの継続時間
<1-60>- 継続時間(分)
cont- 本コマンドをno形式で実行するまでテストを継続する
second <1-3600>- テストの継続時間(秒)
fixed- Specifies that the test module should run at fixed speed, rather than scanning through speed settings while running the traffic test.
使用例
To test the switch ports in VLAN 1, install loopbacks in the ports, and enter the following commands:awplus(config)# service test awplus(config)# no spanning-tree rstp enable bridge-forward awplus(config)# interface vlan1 awplus(config-if)# shutdown awplus(config-if)# end awplus# test interface all
To see the output, use the commands:
awplus# show test awplus# show test count
To start the test on all interfaces for 1 minute use the command:
awplus# test interface all time 1
To start the test on ports 1 to 12 for XEM 1 (port1.1.1 through port1.1.12) use the command:
awplus# test interface port1.1.1-port1.1.12
To stop testing ports 1 to 12 for XEM 1 (port1.1.1 through port1.1.12) use the command:
awplus# no test interface port1.1.1-port1.1.12
To start the test on all interfaces for 1 minute at a fixed speed use the command:
awplus# test interface all time 1 fixed