During the rollout of a new monitoring strategy, a Linux administrator creates a custom MIB module called FOO-APP-MIB so that an in-house application can be polled by SNMP. After copying FOO-APP-MIB.txt to /usr/share/snmp/mibs/, the administrator runs:
snmptranslate -IR -Tp | grep -i foo
but nothing is returned. The file passes a syntax check and resides in the default MIB directory. Which action will MOST likely allow the net-snmp utilities to recognize the module without having to specify -m or -M each time?
Set the MIBS environment variable to +FOO-APP-MIB (or add mibs +FOO-APP-MIB to snmp.conf) so the library preloads the module.
Rebuild and install the Linux kernel with SNMP MIB loader support, then reboot the server.
Add /usr/share/snmp/mibs to the mibdirs directive in snmp.conf and restart snmpd.
Run mib2c -c FOO-APP-MIB to compile the MIB into a binary database before using snmptranslate.
Net-SNMP only autoloads a limited, built-in list of standard MIB modules. Additional modules are loaded only when they are explicitly requested with command-line options, through the MIBS environment variable, or via the mibs directive in snmp.conf. Setting the variable to "+FOO-APP-MIB" (or adding mibs +FOO-APP-MIB to /etc/snmp/snmp.conf) appends the custom module to the default list so every Net-SNMP command automatically parses it. Changing mibdirs would merely add search paths-FOO-APP-MIB is already in a searched directory. mib2c generates agent code and does not compile MIBs for the client utilities, and the Linux kernel plays no role in how user-space SNMP tools read MIB files.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a MIB file in SNMP?
Open an interactive chat with Bash
What does the `MIBS` environment variable do in Net-SNMP?
Open an interactive chat with Bash
What is the difference between `mibs` and `mibdirs` in snmp.conf?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access