Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to execute a custom Script that is readable from SNMP service.

Let's try to explain my purpose.

  • I have a Win2008R2 server
  • I have a PowerShell Script that "echo" something and return an Integer (error code ...)
  • I'm trying to get my Script executed when a snmpwalk is launch toward my Server

Assuing I have my own OIDs, how can I do that ? Is this even possible ?

Under Unix/Linux environement, I just have to add a line in snmpd.conf.

share|improve this question
add comment

1 Answer

Extending the Windows SNMP service for custom items can be done, but it isn't done through a script and modifying one text file. You need to compile a DLL that contains the routines that need to be run, and hook into the SNMP service to register the OIDs you want to handle.

While I have extended the Linux SNMP agent, I've never done it on Windows due to the difficulty.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.