The override command can be added in the conf file by
your perl script.


--- Nguyen Dinh Nam wrote:

> I want to write an embedded Perl extension to
> replace the built in value of
>

..iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.*
> ==
> .1.3.6.1.2.1.2.2.1.2 with my own values, such as the
> long description of the
> interface instead of interface name.
>
> I tried to register my own handler to
> .1.3.6.1.2.1.2.2.1.2 and make a
> $request->setValue(ASN_OCTET_STR,
> $long_description); but the result is not
> correct:
> $ snmpget -v 1 -c system localhost
> .1.3.6.1.2.1.2.2.1.2.5
> Error in packet
> Reason: (noSuchName) There is no such variable name
> in this MIB.
> Failed object: IF-MIB::ifDescr.5
>
> Please give me a hint on this problem, thank you
> >

-------------------------------------------------------------------------
> 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-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
>

https://lists.sourceforge.net/lists/...et-snmp-coders
>



Dominique Bastien

Accedian Networks, Inc.
4878 Levy suite #202
Saint-Laurent
H4R 2P1

Tel: 514-331-6181 ext:602
Fax: 514-331-2220


Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/


-------------------------------------------------------------------------
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders