zreg

NAME

zreg - Read and write registers and tables on the OpenArchitect switch switching hardware.

SYNOPSIS

zreg [-p <ppa>] [-w] [-i <index>] [-t <index>] [-k] [-h <hostname>] [-d <level>] [-r 10] <reg>

DESCRIPTION

zreg allows a user to read and write direct and indirect registers and tables on the resident switch chip. zreg is commonly used for debug, or for prototyping when creating applications that control the OpenArchitect switch. It is also useful when put into shell scripts for displaying hardware status or statistics. Although the -toption allows tables to be displayed, one might find the formatted output of the table functions more useful. See zal.

OPTIONS

-p <ppa> Specify the Physical Point of Attachment (PPA). Each OpenArchitect switch that is controlled by the CPU on which zreg is running is a unique PPA. If there is only one OpenArchitect switch, as would be the case when zreg is running on the embedded processor the PPA would be 0. The default PPA is 0.

-w Causes zreg to write to the register or table. Data to be written is read from standard input.

-i <index> Causes zreg to access at the indexed register specified by <reg>. See OPERANDS for usage of <reg> with indexed registers. The <index> parameter is used to determine which entry i

-t <index> Causes zreg to access the memory specified by <reg>. The <index> parameter is used as the index into the specified table. Only content addressable memories are accessed using the – t option. All other tables and memories are accessed with the –i option.

-k Causes zreg to access the memory specified by <reg>. The entry accessed is determined using the data from standard input as the search key. Enter 0 for fields that are not part of the search key.

-h <hostname> Specify the <hostname> to configure. By default zreg configures the OpenArchitect switch that is locally

Ethernet Switch Blade User's Guide

release 3.2.2j

page 322

Page 322
Image 322
Znyx Networks bh5700 manual Zreg