Many WindNet SNMP facilities can be configured into VxWorks by defining the various configuration constants presented in this section.
The default location of these INCLUDE options is the EXCLUDED FACILITIES section of the configuration file $WIND_BASE/target/config/all/configAll.h. To define them, move them to the INCLUDED FACILITIES section.
|
NOTE: VxWorks is not SNMP-capable unless you reconfigure configAll.h and rebuild VxWorks as shown here. |
The constants INCLUDE_SNMPD and INCLUDE_MIB2_ALL, listed in Table 5-1, configure VxWorks for running an SNMP agent that offers all MIB- II services. These are the default services shipped with WindNet SNMPv1/v2c.
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|||||||||||||||||||
WindNet SNMPv1/v2c features MIB extensibility. If you desire a configuration other than the default, you must rebuild the SNMP agent to support only the wanted MIB groups. If you do not need all of the provided MIB-II variables, you can define a subset by including or excluding variables by group (see 5.1.2 Scalability and MIB-II Facilities).
For information about VxWorks MIB-II system interface routines, see the manual entry for mib2Lib in the VxWorks Reference Manual.
The WindNet SNMPv1/v2c agent is shipped with a default configuration that includes all MIB-II groups. (Note that this does not automatically configure VxWorks for SNMP; to use SNMPv1/v2c with VxWorks, you must define INCLUDE_MIB2_ALL in configAll.h.)
Because WindNet SNMPv1/v2c is a scalable product, you can include or exclude from the agent any of the MIB-II groups defined by the constants listed in Table 5-2.
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|||||||||||||||||||
By performing the following steps, you can specify the MIB-II services available in your agent MIB:
--EXCLUDE system
% (cd $WIND_BASE/target/src/snmpv1/agent ; make CPU=MC68020 TOOL=gnu)
% (cd $WIND_BASE/target/config/mv147 ; make TOOL=gnu)
Default values for the configuration and MIB-II system group variables listed in Table 5-3 are also provided in configAll.h.
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|||||||||||||||||||
The MIB-II system group variables defined in configAll.h initialize the MIB-II system group in the agent. Their values can be modified to customize the agent as shown below.