Options, Examples – Znyx Networks bh5700 User Manual

Page 298

Advertising
background image

Several options are available which enable the user to display only selected entries. Additionally,
there is an option that clears user-specified entries in the table.

OPTIONS

-i <index> Displays the entry at the <index> position in the
table. Valid for all tables. Cannot be combined with -m, -P or -v

.

-m <mac_address>
Displays entries whose MAC address field matches <mac_address>.

Only valid for tables that have a MAC address field. Cannot be
combined with -i, -P, or -v.

-a

Displays the entire table.

-v <vlan_id>

Displays entries whose VLAN ID field matches

<vlan_id>. Only valid for tables that have a VLAN ID field.
Cannot be combined with -i, -m, or -P.

-P <port> Displays the entries whose port field matches <port>.

Only valid for tables that have a PORT ID field. Cannot be
combined with -i, -m, or -v.

-h <host_name>

Specifies which hostname to connect. By default,

zgr connects to the locally connected OpenArchitect switch (that
is, the one that is on the local PCI bus).

-d <level>

Sets the level of debugging output required by

zgr. The default level is one (1). Setting the debug level higher
produces more output. Four (4) is currently the maximum output

level.

EXAMPLES

The following example searches for and displays an entry in the zl2 table with the specified MAC
address:

zl2 -m 00:c0:95:45:00:00

If there is an entry in the ZL2 table with the MAC address, 00:c0:95:45:00:00, all the fields of
that entry will be displayed.

The following command deletes the above entry:

zl2 -c -m 00:c0:95:45:00:00

The following command displays all entries of the zl2 table:

Ethernet Switch Blade User's Guide

release 3.2.2j

page 298

Advertising