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.

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

http://www.topology.org/comms/snmp.html

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

http://www.net-snmp.org/

Man page is:

http://www.net-snmp.org/docs/man/snmpd.html

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:

http://www.net-snmp.org/docs/man/snmpd.conf.html
0
 
guruyayaCommented:
Try this network tool, I belive it can use snmp

http://www.dest-unreach.org/socat/
0
 
cjl7freelance for hireCommented:
Hmmm,

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...

//jonas
0
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.
0
 
KurtVonAuthor Commented:
That looks like what I was trying to find.  Thanks.
0
 
pjedmondCommented:
A pleasure:)
0
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.