passing parameters to a perl script through snmpd

Jordi Moles Blanco <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1202755667.5919.10.camel@jordipc>
Hi,

i'm sorry if i'm asking about something just impossible or really weird,
i'm a newbie. 

The thing is that i've already got this in the snmpd.conf file:

pass    .1.3.6.1.4.1.2021.255    /home/monitor/tests/extensio.pl

When for example i do this:

# snmpget -v2c -c cdpublicmon localhost .1.3.6.1.4.1.2021.255.8.1.7  
UCD-SNMP-MIB::ucdavis.255.8.1.7 = STRING: "12189"

I get the value i want, which is great. 

But next step would be to pass some var to the perl script dynamically.

I've read about the snmpset command, but i haven't seen any information
or example about how to add this to my working perl script i've already
got. 

I would like to create .1.3.6.1.4.1.2021.255.8.1.8, which needs a var
set during the execution time. Is that possible? 
I guess i could create a new OID and make the perl script read that
information, but i don't know where to start from.
I would appreciate any help on that, thank you very much.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.