## Individual Diagnostic Test Elements

## brocadetest (1M) Test Options

The `brocadetest`(1M) test is used to diagnose Brocade switch devices. The `brocadetest` process also provides command line access to Brocade Silkworm switch diagnostics. `Brocadetest` supports testing on all Brocade Silkworm switches that have network access from the testing host.

`Brocadetest` runs the port diagnostic on connected switch ports. While `brocadetest` is running, the port statistics are monitored for errors.

Note -

The brocadetest(1M) uses a telnet session from which to run the diagnostics. In order for the diagnostics to run correctly, no users can have a telnet session open to the switch while the diagnostics are running. If there is a telnet session open, the brocadetest will fail, indicating that another user may be logged into the switch.

`brocadetest`(1M) Test Options table describes the test mode options for the brocadetest test.

Option | Description
--- | ---
Loop iterations | Specifies the number of iterations the port test should run, between 0 and 1,000,000.
Password | Specifies the password used by the admin user of the switch. There is no default value and this a required field.
User Defined Pattern | Specifies the default pattern, in hexadecimal format, to be used for the port test. You can also enter the hexadecimal pattern to run for the test.
Select Pattern Type | Gives the user the choice of running the one user pattern, critical patterns (10 of the most critical patterns), or all patterns (a complete list of test patterns).
Number of passes | Specifies the number of times the test will run. The default is 1.

### CLI Help Man Page

`brocadetest`(1m)