Snmp applications, Port mirroring – Znyx Networks bh5700 User Manual

Page 82

Advertising
background image

response.

The processing for link up and link down traps is now user configurable. As the default, traps
conform to RFC2863, meaning the trap contents will include:

ifIndex, ifAdminStatus and ifOperstatus

You can alter this behavior by specifying:

cisco_link_traps on

If cisco_link_traps are turned on as described then link up and link down traps will have a
cisco-like format and the trap contents will include:

ifDescr and ifType

Examine and edit /usr/share/snmp/snmpd.conf appropriately for your configuration.
Information in /usr/share/snmp/snmpd.conf is only read at startup - or when the daemon is
forced to reread its configuration. See the standard Linux man page for snmpd.conf for more
details.

SNMP Applications

The OpenArchitect switch includes the snmpget, snmpwalk, and snmpset applications you
can use these standard Linux utilities to test your SNMP agent. For example,

snmpwalk localhost –c public

walks the entire MIB of the localhost (that is, OpenArchitect switch) starting at the top of the
MIB. See the Linux Reference Man Pages for the usage of the SNMP utilities.

MIB values are decoded from their numerical representations into readable text by parsing MIBs
located in the /usr/share/snmp/mibs/ directory. If you need to add a MIB, add it to that
directory and zsync to save across reboots.

Port Mirroring

zmirror sets packet mirroring from a given set of ports to a given port. Turning on packet
mirroring causes a copy of the packet to be sent to the mirror_to port. There is only one
mirror_to port, and no limitation on mirror_from ports. Use the zmirror command in
the following way,

zmirror mirror_from mirror_to

After executing the following three commands, packets received on ports 0, 1 and 2 would be

Ethernet Switch Blade User's Guide

release 3.2.2j

page 82

Advertising