How to override the result of an GET request?
--===============0780106363==
Content-Type: multipart/alternative;
boundary="----=_Part_14471_25835083.1205462867017"
------=_Part_14471_25835083.1205462867017
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_14471_25835083.1205462867017
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I want to write an embedded Perl extension to replace the built in value of <br>.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.<br>
<br>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:<br>$ snmpget -v 1 -c system localhost .1.3.6.1.2.1.2.2.1.2.5<br>
Error in packet<br>Reason: (noSuchName) There is no such variable name in this MIB.<br>Failed object: IF-MIB::ifDescr.5<br><br>Please give me a hint on this problem, thank you<br><br>
------=_Part_14471_25835083.1205462867017--
--===============0780106363==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
[url]http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/[/url]
--===============0780106363==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-coders mailing list
[email]Net-snmp-coders@lists.sourceforge.net[/email]
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-coders[/url]
--===============0780106363==--