Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Net-SNMP refresh / re-install?

How does one go about fully refreshing OSX Net-SNMP configuration, resetting it factory defaults?


Reason I ask: a number of our Xserves were upgraded from 10.6 to 10.8 to 10.9 or 10.10 and in the process appear to have their Net-SNMP executables and/or configuration corrupted - e.g. snmpd daemons crashing frequently, not reporting CPU/mem loads, etc. Tried comparing folder structures between affected and unaffected nodes and haven't gotten too far.


Appreciate any ideas!

Xserve 3,1-OTHER, OS X Yosemite (10.10.3), upgraded from 10.8 or 10.6

Posted on Jul 10, 2015 3:02 AM

Reply
2 replies

Mar 30, 2016 4:33 PM in response to Alex (DV411)

The canonical method to reset a net-snmp installation to factory defaults in Mac OS X (there's no difference between client & server in this case) is:

  • sudo launchctl unload -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
  • sudo cp /etc/snmp/snmpd.conf.default /etc/snmp/snmpd.conf
  • sudo rm /usr/share/snmpd.conf
  • sudo rm -rf /var/db/net-snmp

This resets the snmpd.conf file to the default & clears out any added users and instance data. This should be valid back to 10.6 or so, possibly earlier, but I'm not sure.

In 10.11.x Apple updated the net-snmp version from 5.6 to 5.6.2.1 which may cause some issues.

The LMSensors MIB may not be well supported on Xserve hardware in the later OS versions.

Mar 31, 2016 7:16 AM in response to Alex (DV411)

FWIW, brew has net-snmp available, if you really want to install a different version — or if you already have a parallel version installed via brew or some other means:


$ brew info net-snmp

net-snmp: stable 5.7.3 (bottled) [keg-only]

Implements SNMP v1, v2c, and v3, using IPv4 and IPv6

http://www.net-snmp.org/

Not installed

From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/net-snmp.rb

==> Dependencies

Required: openssl ✘

==> Options

--with-python

Build with python support

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.



OS X already provides this software and installing another version in

parallel can cause all kinds of trouble.

$

Net-SNMP refresh / re-install?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.