Template:FAQ:Agent 05

From Net-SNMP Wiki
Revision as of 19:41, 22 October 2006 by Dts12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Deleting the text file for a MIB does not affect the agent, other than to prevent it from recognising textual names instead of raw OIDs in the config files. There are three options to prevent the agent returning information from a particular MIB:

  • re-run configure to exclude the given MIB module, rebuild, and reinstall:
       ./configure --with-out-mib-module=host   ....
       make
       make install
  • use access control to exclude the mib from the view used to query the agent:
       com2sec public  default public
       
group public v1 public group public v2c public
view ourmib included system view ourmib included printmib view ourmib excluded host view ourmib included privatemib
access public "" any noauth exact ourmib none none
  • disable the MIB at runtime
    First you need to figure out which MIB modules are being loaded by getting the agent to report them as they are initialised:
         snmpd -Dmib_init -H

Then turn off the ones you don't want:

         snmpd -I -hr_system,hr_storage,hr_device,hr_other,....