Is SNMP installed

Associate
Joined
6 Oct 2006
Posts
375
Location
Luton
Hi

We have windows servers with and without SNMP installed. Is there a script that I can run that will tell me if SNMP is installed or not. We have Windows 2003, Windows 2008 and windows 2008 R2.

I have tried searching for a script but I haven't really come up with anything, and I don't know how to script it myself (really need to look into learning this)...

Does anybody have any ideas.

Thanks
 
Your best bet is to run a vbscript or such that goes through a list of servers which you feed it to check this. You really need to know what to look for though.

This article http://classictriple.com/scripting-snmp-installation/ talks about installing it remotely, but it does have a line that is about checking to see if a registry key exists for it which you could probably work with.

Code:
Set ObjReg = GetObject(“winmgmts:{impersonationLevel = impersonate}!\\” _
& strComputer & “\root\default:StdRegProv“)

‘Check to see if SNMP is Installed, if not install.
If RegKeyExists(“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP”)= False Then

You'd probably need the Remote Registry service running though for this to work.
 
Back
Top Bottom