Re: net snmp on 64bit ubuntu snmpset failure
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGY7YiMM9L4UmcFEFim23sp7YWxAdQiLPVf-EhwsLicmzQ@mail.gmail.com> |
On 8 March 2012 01:51, Alex Hu <[email protected]> wrote: > I am trying to use net snmp for our test project. I have installed net snmp > 6.6.1.1 on my 64 bit Ubuntu machine. > > I can successfully run snmpget command... > But when I try to test its snmpset command, I keep getting WRONG LENGTH > error: > > snmpset -v 2c -c public localhost > NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 i 5 Hmmm... I thought we'd fixed the example code on the tutorial site, but it appears not. Try making the following changes: "static int nstAgentModuleObject = 1;" to "static long ....." "netsnmp_register_int_instance(....)" to "netsnmp_register_long_instance(....)" and see if that works better. Dave ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ 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