SNMP from shell scripts

Is there a Linux library that allows SNMP requests to call a shell script?  I know it is possible to call a shell script on an SNMP set, but I'm looking for a simple way to gather information from a shell script, even if it's just wrapping the script output in an SNMP response.

LVL 11
Who is Participating?
Here has a superb list of SNMB things that are linux based:

In particular, you want the snmpd element of net-snmp:

Man page is:

It sounds as if you wish to create custom scripts. You will need to specify these modules in the configuration file for them to be recognised. The following page gives details of the types of extensions that can be done. It appears to be fairly comprehensive:
Try this network tool, I belive it can use snmp
cjl7freelance for hireCommented:

You can always use snmp from within your script...

snmpwalk is what you use to do that...

Cant remember syntax right now, let me know if you want it...

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

KurtVonAuthor Commented:
I don't need a shell script for accessing SNMP.  What I need is a shell script to respond to SNMP requests.  In other words, when an SNMP request comes in I'd like the server to activate a shell script that generates the values SNMP will return to the client.

Basically I'm trying to pass off writing the service to someone else with very limited programing experience.
KurtVonAuthor Commented:
That looks like what I was trying to find.  Thanks.
A pleasure:)
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.