Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to build monitoring into an existing .NET application. I will use SNMP to send the application's status to the Windows SNMP service. I have used a .NET library to create the SNMP SET request according to the MIB that I have been provided with, and with the correct community.

My code now sends multiple 'variables' in a SET request, for example:

Id: "." (ObjectIdentifier)
Data: 42 (Integer32)

On my machine I have enabled the SNMP service, configured a community with READ/WRITE permissions, and added localhost to the list of hosts to accept requests from.

When I send the SET request I get a response, but it has error status 17 which, according to MSDN means SNMP_ERRORSTATUS_NOTWRITABLE. The response also has error index set to 8, which is the number of variables I send. If I send 7 variables, the error index is set to 7.

I think the problem is that the Windows SNMP service is preconfigured to only accept SET requests for a fixed set of MIBs.

How can I get the Windows SNMP service to 'accept' my custom MIB SET request?


I downloaded and installed the Windows Server 2003 Resource Kit and tried to 'compile' the MIB file with mibcc.exe ("SNMP MIB Compiler") but I have not been able to compile any MIB files (even the most basic ones like SNMPv2-SMI.mib).

share|improve this question
You know the SNMP service is being deprecated right? Microsoft wants everyone to switch over to using CIM. Trying to add support for a feature that will be removed soon doesn't seem like a wise idea. – Zoredache May 27 '14 at 16:50
@Zoredache No, I did not know that. – Michiel van Oosterhout May 27 '14 at 17:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.