SNMP TRAP Service in Windows

I am doing some diagnostics on a SNMP service we need to run to detect local printing devices. My questions are in relation to the "SNMP TRAP" service that is installed in windows. So my questions are:

1. Which versions of windows does this service come pre-installed on?
2. What is the state of the service when it is pre-installed?
3. Can a batch script be created to start the service and set it to automatic mode?

I really appreciate any input anyone has on this topic. Thank you.
LVL 1
CKabsAsked:
Who is Participating?
 
PberConnect With a Mentor Solutions ArchitectCommented:
Sorry, yet you are right.  Windows 7 (At least for Pro and Enterprise) and Server 2008 have the SNMP trap installed by default (and set to Manual).

If you had to install features from a script in Windows 7 and 2008 you don't use SYSOCMGR.EXE either.  They use OCSETUP.EXE
0
 
PberSolutions ArchitectCommented:
1. Which versions of windows does this service come pre-installed on?
From NT4 up had this service.
2. What is the state of the service when it is pre-installed?
By default this service isn't installed at all.  You need to add it with Add/Remove Windows components.
3. Can a batch script be created to start the service and set it to automatic mode?
Installing it via script is done with sysocmgr:
Sysocmgr.exe /i:%WINDIR%\inf\sysoc.inf /u:c:\unattend.txt

The unattend file would look like this:
[NetOptionalComponents]
SNMP=1

See this for reference.
http://serverfault.com/questions/17837/looking-for-an-automated-method-to-install-and-configure-snmp-on-servers

To start the service:
sc start snmptrap
or
net start snmptrap

To set to automatic:
sc config snmptrap start= auto


0
 
CKabsAuthor Commented:
That's exactly what I was looking for. However your statement that it must be installed via add/remove is incorrect for at least most versions of windows 7. The device is installed but at the manual/stopped state by default. So my direct question would be which OS's from nt4 up have this service pre installed in the manal/stopped state?
0
 
CKabsAuthor Commented:
Direct questions was not answered, however the users posted answer did provide additional needed information, which resulted in a partially answered question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.