perl get of extend variable

Michael Di Domenico <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CABOsP2OK9LOC2PR=nrqPJmWtqwC+gdpNRpWF2Y-qrnr-P46bSQ@mail.gmail.com>
I'm attempting to retrieve snmp variables from the daemon using the
extend directive.

if i do

snmpget -v2c -c public localhost nsExtendOutput1Line.\"theone\"

I'll get my variable from the extend script, great.

However, if in my perl script i do

$snmpses->get('nsExtendOutput1Line.\"theone\"');

I get no such oid/var and no output.

If i query the numerical oid inside perl i do get the value, so i'm
sure it's a translation problem between the name and number.  and that
i'm doing something wrong.

do i have to statically define the the name->oid map in my perl
program using something?

thanks

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
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.