Znyx Networks bh5700 Manuale Utente

Pagina di 359
zmirror mirror_from mirror_to
After executing the following three commands, packets received on ports 0, 1 and 2 would be 
mirrored (copied and transmitted) to port 12.  This mirroring would be in addition to any Layer 3 
or Layer 2 switching.
zmirror zre0 zre12
zmirror zre1 zre12
zmirror zre2 zre12
To clear the current mirroring use the -t option.  The -e option can be used to indicate that 
packets being sent on a given port should be copied to the mirror_to port.  For example if the 
-e option is used as follows, the packets transmitted, as opposed to received, on ports 0, 1 or 2 
would be mirrored to port 12.
zmirror -e zre0 zre12
zmirror -e zre1 zre12
zmirror -e zre2 zre12
Link and LED Control
The zlc application sets the link speed and state of individual ports of the switch, or display their 
current state.  It can also set or clear the extract led or the internal fault led, or to set a port down 
or up. To force the link on port 0 down,
zlc zre1 down
To check the status of a link, 
zlc zre1 query
To check the status of all links, 
zlc zre0..23 query
Link Event Monitoring
The zlmd application is intended to run as a daemon, waiting for a configured event to occur and 
then running the program configured for that event.  The events monitored are changes in the link 
status at any of the 24 in-band ports of the switch, the start of removal of the switch from the 
backplane, or the cancellation of the removal before it actually takes place.  The program can be a 
shell script that initiates appropriate actions to respond to the event.
Ethernet Switch Blade User's Guide
release  3.2.2j
page 137