Re: octet strings in 5.4.3~dfsg-2.7
Fulko Hew <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAGuV3hMJP6Qst976kt4w3eJuDfapjvnaCiYDZbdh-wwBBss=sQ@mail.gmail.com> |
On Thu, Feb 27, 2014 at 11:09 AM, Juges, Didier <[email protected]>wrote: > I believe all integer values are signed. Not sure that would cause an > overflow though. > I just tried it on one of my MIBs and it worked: # snmpset -v1 -cprivate localhost 1.3.6.1.4.1.1978.21.1.7.7.0 x 414243444546474849 SNMPv2-SMI::enterprises.1978.21.1.7.7.0 = STRING: "ABCDEFGHI" But: a) my definitions does not use a TEXTUAL-CONVENTION b) nor do I have a STRING size limit of 8. c) I didn't specify the variable by name (thereby avoiding snmpset's reading/interpreting the MIB file). Fulko > > *From:* Joe Dougherty [mailto:[email protected]] > *Sent:* Wednesday, February 26, 2014 4:14 PM > *To:* [email protected] > *Subject:* octet strings in 5.4.3~dfsg-2.7 > > > > I have an octet string defined as: > > Uint64Type ::= TEXTUAL-CONVENTION > > DISPLAY-HINT "8x" > > STATUS current > > DESCRIPTION "64 bit unsigned integer" > > SYNTAX OCTET STRING (SIZE (8)) > > ... > > Preamble OBJECT-TYPE > > SYNTAX Uint64Type > > MAX-ACCESS read-write > > STATUS current > > DESCRIPTION "Preamble" > > ::= {configEntry 15 } > > > > Initial read looks like this: > > # snmpget -v2c -c public 192.168.60.11 MY-MIB:Preamble.1 > > MY-MIB::Preamble.1 = STRING: > > > > I try to set without success: > > # snmpset -v2c -c public 192.168.60.11 MY-MIB::Preamble.1 x > 1122334455667788 > > *** buffer overflow detected ***: snmpset terminated > > > > # snmpset -v2c -c public 192.168.60.11 MY-MIB::Preamble.1 x 112233445566778 > > MY-MIB::Preamble.1: Bad value notation (112233445566778) > > > > # snmpset -v2c -c public 192.168.60.11 MY-MIB::Preamble.1 x 11223344556677 > > MY-MIB::Preamble.1: Value out of range (Bad string length :: {(8)}) > > > > Am running under debian wheezy so would like to stay on 5.4.3 if possible. > Am i dorking this up somehow? Any guidance appreciated. > > Thanks > > Joe > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&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 > > ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&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