SNMP Foundations and Concepts
8-12
Express5800/
ftServer
: System Administrator’s Guide for the Linux Operating System
N O T E
The
Express Builder
installation automatically creates the
SRA-ftLinux-MIB file in the
/opt/ft/mibs
directory,
while Net-SNMP creates its MIBs in the
/usr/share/snmp/mibs
directory.
MIBs can be stored in a variety of locations, but running SNMP agents must still be
directed to the location of a MIB the first time it is to be used, if the MIB is added after
the agents have already started. If the MIB was not in the path when the SNMP
services were started (and SRA-ftLinux-MIB exported), the following example shows
how to identify the SRA-ftLinux-MIB file to the SNMP tools:
#
snmpget -m SRA-ftLinux-MIB -v 2c -c public myhost.com
ftcBdState.1
SRA-ftLinux-MIB::ftcBdState.1 = INTEGER: duplex(21)
As you begin to develop your own MIB (or MIBs) for your management requirements,
you can save a lot of work by adopting defined variables from other MIBs. A large
number of MIBs are defined by the IETF and are available as plain text files. You should
use standardized MIBs where they define objects to avoid non-standard
implementation of networked objects.
Do not alter standard MIBs. If you need additional object definitions, you can add
another MIB or create your own. The MIB-defined objects can be queried and data
recovered that provides a basis for SNMP agent operations. You can create scripts that
the SNMP agent or a subagent executes according to MIB definitions.
Some Objects Defined by Standard MIBs
For a practical implementation of SNMP, a number of objects simply must be defined.
Some of these are introduced here.