Zreg – Znyx Networks bh5700 User Manual
Page 322

zreg
NAME
zreg - Read and write registers and tables on the OpenArchitect switch switching hardware.
SYNOPSIS
zreg [-p
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 -t option allows tables to be displayed, one might find
the formatted output of the table functions more useful. See zal.
OPTIONS
-p
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
specified by
registers. The
i
-t
The
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
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
Specify the
zreg configures the OpenArchitect switch that is locally
Ethernet Switch Blade User's Guide
release 3.2.2j
page 322