• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 513
  • Last Modified:

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.
0
KurtVon
Asked:
KurtVon
1 Solution
 
guruyayaCommented:
Try this network tool, I belive it can use snmp

http://www.dest-unreach.org/socat/
0
 
cjl7Commented:
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
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now