Looking for an automated method to install and configure SNMP on servers

automated-installsnmpwindows-server-2003windows-server-2008

I have an enviornment with 30 Windows servers (Server 2003 and a few 2008 systems).

We are now looking at monitoring solutions, but the first item that we need to accompilish is getting SNMP installed, and configured of each server.

I'm hoping that there is a method that will allow us to do this remotely and centrally managed, so if we later change the community string or servers to send traps to then this could be an easy change.

Do you have any suggestions on how I might be able to go about this process? Is there a GPO that I can apply to accomplish this?

Thanks.

Best Answer

For Windows Server 2008, you can use OCSETUP.EXE. See more at: http://support.microsoft.com/kb/936209

For Windows Server 2003, you can use SYSOCMGR. Put the following lines into a file (I'm calling mine "snmp.txt"):

[Components]
netoc = on
[NetOptionalComponents]
SNMP = 1

Then, call SYSOCMGR as an Administrator (or as SYSTEM-- this absolutely does work from an AD startup script):

SYSOCMGR /i:%SystemRoot%\inf\sysoc.inf /u:snmp.txt

(This assumes you're calling SYSOCMGR from the same directory as snmp.txt.)

I've done this all the time w/ Windows XP, and it worked fine in a VM that I just tested w/ W2K3. Be sure the Windows source files are accessible in the location SYSOCMGR looks by default or the install will hang asking for them.

Edit: Reversed /u and /i in command line example. I am an idiot!