Setup SNMP with a Config Profile or Policy

Jason
Contributor II

Hi all, I have a few new Mac mini's that have been setup in a data center. I'd like to create a policy or configuration profile to do the necessary changes to get SNMP up and running on Mavericks (Server). I checked online and found a few outdated or sparse documents that mentioned the manual process:

Archived 10.1.5:
http://support.apple.com/kb/TA20884?viewlocale=en_US

For 10.5
http://manuals.info.apple.com/MANUALS/0/MA409/en_US/Command_Line_Admin_v10.5.pdf

Has anyone setup SNMP on Mavericks that can provide the current manual steps and let me know if they've been able to get a policy to deploy out?

Some things i've noticed are "/etc/hostconfig" which is referenced states that "This file is going away" when you open it up. There are no options for SNMP in Server.app. "snmpconf" is probably still the correct tool to create the configuration file.. AppleCare couldn't help with any guidance. Said I'd need an Enterprise agreement (which is in the works, but not set up yet).

Thanks

1 REPLY 1

johncwelch
New Contributor

So, rather than try to post ALL THE SNMP here, a couple of links to some things I wrote a while ago on SNMP, covering v1/2c/3 setup, and the basics of using them:

SNMPv1/2c: https://www.dropbox.com/s/nd7szqlwhsxspeo/snmp.pdf
SNMPv3: http://www.macworld.com/article/1136874/snmpv3_osx.html?page=0

They're a bit long, but they should get you started. By default, Apple puts their sample snmpd.conf file in /etc/snmp. This is probably more correct, as it's a conf file, but the traditional place for it is /usr/share/snmp. Either works.

Once that's done, (and snmpd can't be running when you set up snmpv3), the starting snmp is just standard launchctl stuff:

sudo launchctl load /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist

and you're set. v1/v2c config files can just be copied about. For v3, that probably won't work, but you should be able to automate that via scripting without a ton of trouble.