Znyx Networks bh5700 manual Examples

Models: bh5700

1 359
Download 359 pages 3.51 Kb
Page 309
Image 309

<port-list> A list of ports in the same forms supported by zconfig, e.g. zre1,zre2 or zre10..14

<program> Path to an executable program or script to be run when the event occurs. Note: An absolute path to <program> is required. The program will be called with the following parameters:

For Link Changes:

<program> <ppa> <port> {external(0)internal(1)} {off(0)on(1)}

For Hot-swap Events:

<program> <ppa> {extraction(1)insertion(2)}

NOTE: The <ppa> parameter is undefined and should be ignored.

EXAMPLES

In the following example, zlmd monitors ports 1 through 4 and runs a script called prt_change upon a link change event.

zlmd zre1..4=/usr/sbin/prt_change

Suppose port 2 were UP and you disconnected the cable, zlmd would call prt_change with the following parameters:

/usr/sbin/prt_change 0 2 0 1

where 0 is the ppa, 2 is the port, 0 is an external fault, 1 is ON.

SEE ALSO

zconfig

Ethernet Switch Blade User's Guide

release 3.2.2j

page 309

Page 309
Image 309
Znyx Networks bh5700 manual Examples