Znyx Networks bh5700 User Manual

Page 242

Advertising
background image

default zreg configures the OpenArchitect switch that is

locally connected (i.e., the one that is on the local PCI
bus).

-r 10 Sets numeric radix for registers to 10. Default is 16.

-d <level> Set the level of debugging output produced by zreg.

The default level is 1. Setting the debug level higher
produces more output. The maximum level of output is currently

4.

OPERANDS

TBD

EXAMPLES

There are three types of accesses performed by zreg; scalar register, indexed register, and table.
For each of theses access types, values can be read or written. Content addressable memory
register access is the default. The following is an example of reading the CONFIG Register:

zreg 1

When running zreg on the embedded processor of the OpenArchitect switch, the <ppa> is
always 0, since the embedded CPU processor only controls the directly attached switch chip.

To write a value to a register the -w flag is used and the data is read from standard input. The
following example writes 0x10003c to the Aging Time Register:

echo 0x10003c | zreg -i 0 131 -w -p 0

echo 0x10003c | zreg -i 0 131 -w -p 1

echo 0x10003c | zreg -i 0 131 -w -p 2

echo 0x10003c | zreg -i 0 131 -w -p 3

If the zreg command is typed at the prompt, it waits for input from the user. You may also use
File I/O or shell scripts. The following example reads the MAC Packet Length Register for port
7:

zreg -i 7 2

SEE ALSO

zal, ztats

Ethernet Switch Blade User's Guide

release 3.2.2j

page 242

Advertising