Interface Testing Commands
©2008 Allied Telesis Inc. All rights reserved.
13.4
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
test interface
This command starts a test on an interface or all interfaces or a selected range or list of
interfaces. Use the
no
form of this command to disable this function. The test duration can be
configured by specifying the time in minutes after specifying an interface or interfaces to test.
For an example of all the commands required to test switch ports, see the Examples section in
this command. To test the Eth port, set its speed to 100 by using the command
speed 100
.
■
Do not run test interface on live networks because this will degrade network performance.
Syntax
test interface {<
interface-list
>|all} [time{<1-60>|cont}]
no test interface {<
interface-list
>|all}
Mode
Privileged Exec mode
Examples
To test the switch ports in VLAN 1, install loopbacks in the ports, and enter the following
commands:
To see the output, use the commands:
Parameter
Description
no
Negate test device functionality
test
Test device functionality
interface
Test interface
<
interface-list
> The interfaces or ports to test. An interface-list can be:
■
an interface, a switch port, or a channel group (e.g., vlan2, port1.1.12, sa3,
or po4)
■
a continuous range of interfaces, ports, or channel groups separated by a
hyphen,
e.g. vlan2-vlan8 or port1.1.1-port1.1.24 or sa2-4, po1-3
■
a comma-separated list of the above,
e.g., port1.0.1,port1.1.1-1.2.24. Do not mix interface types in a list.
The specified interfaces must exist.
all
All interfaces
time
Keyword entered prior to the value for the time duration of the interface test.
<1-60>
Specifies duration of time to test the interface or interfaces in minutes
(from a minimum of 1 minute to a maximum of 60 minutes). The default is 4
minutes.
cont
Specifies continuous interface testing until cancelled with command negation.
awplus (config)#
service test
awplus (config)#
no spanning-tree rstp enable bridge-
forward
awplus (config)#
interface vlan
awplus (config-if)#
shutdown
awplus (config-if)#
end
awplus#
test interface all
awplus#
show test