Appendix C. Net-SNMP ToolsThis appendix provides brief summaries of the command-line tools included in Version 4.2 of the Net-SNMP package (available from http://net-snmp.sourceforge.net).Rather than trying to describe all the options to all the commands, we've focused on those that are most important and useful. We have also pointed out a few cases in which the behavior of the commands differs from the behavior that's described in the manual pages. Unfortunately, there are many discrepancies. The current situation is obviously far from ideal, but hopefully either the documentation or the commands will be fixed in some later release.
C.1. Net-SNMP and MIB FilesBy default, Net-SNMP reads the MIB files in the directory /usr/local/share/snmp/mibs. When you install Net-SNMP it populates this directory with a few dozen MIB files, including the UCD MIB (Net-SNMP used to be called UCD-SNMP) and RFC 1213 MIB (MIB-II). Net-SNMP uses the MIB files to translate between numeric object IDs and their textual representations. The MIB files also give the tools access to information about each object (its syntax, the type of access allowed, its description, etc.). Adding a vendor-specific MIB file to Net-SNMP is as simple as placing it in the mibs directory and setting the environment variable $MIBS to ALL, as discussed in the next section.
Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|