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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guruyayaCommented:
Try this network tool, I belive it can use snmp

http://www.dest-unreach.org/socat/
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
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.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KurtVonAuthor Commented:
That looks like what I was trying to find.  Thanks.
pjedmondCommented:
A pleasure:)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.