pass

"Gavin Spearhead" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

I'm trying to pass a request from one SNMP server (1) through a shell
script to another SNMP server (2). The purpose is for the BASH
shell-script to be able to do some filtering.

I've configured the SNMP(1)  running on UDP 1161 with

pass .1.3.6.1.4.1 /my/script

The script does a snmpget or snmpgetnext with the provided OID to the SNMP(2)
SNMP(2) is a normal server running on UDP 161 and runs fine.

So I expect to receive the answers from SNMP(2) through the script.
What actually happens is that the script gets run only for a subset of
all queries (but they all match the OID .1.3.6.1.4.1) and the output
of the script is ignored. So I suspect the SNMP(1) returns it's own
value before the script can return the value. Is this the case? And
how can I fix it so that SNMP(1) does never return all values? Or is
there some other problem?

Gavin

-- 
Spearhead.... Marching Onward!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.