Snmp applications, Port mirroring – Znyx Networks bh5700 User Manual

Page 136

Advertising
background image

IMPORTANT: For NET-SNMP agents, these objects (sysLocation.0,
sysContact.0 and sysName.0) ordinarily are read-write. However, specifying the
value for one of these objects by giving the appropriate token in snmpd.conf makes the
corresponding object read-only, and attempts to set the value of the object will result in a
notWritable error 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 (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 can be only a
single mirror_to port, but there can be multiple mirror_from ports. The zmirror
command overwrites the mirror_to port. The zmirror command accumulates the
mirror_from ports. Note, there are performance issues when trying to mirror more bandwidth
than is available on the mirror_to port. Use the zmirror command in the following way:

Ethernet Switch Blade User's Guide

release 3.2.2j

page 136

Advertising