Link to home
Start Free TrialLog in
Avatar of CKabs
CKabsFlag for United States of America

asked on

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.
Avatar of Pber
Pber
Flag of Canada image

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


Avatar of CKabs

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Pber
Pber
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CKabs

ASKER

Direct questions was not answered, however the users posted answer did provide additional needed information, which resulted in a partially answered question.