• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 831
  • Last Modified:

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.
0
CKabs
Asked:
CKabs
  • 2
  • 2
1 Solution
 
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
 
PberSolutions 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
 
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now