On 4/28/18, Keith Mendoza <ke...@icei.org> wrote: > > On Fri, Apr 27, 2018, at 9:05 PM, Venkateswarlu Konamki wrote: >> Hi Robert, >> >> Iam running snmpd on my ARM embedded device. Since memory is important so >> i >> can't load any extra mibs into it. Any further solition ? > > You have to load the MIB on the machine where you're running snmpget.
+1 for loading the MIB. If you had, you'd have probably gotten ifPhysAddress OBJECT-TYPE SYNTAX PhysAddress PhysAddress ::= TEXTUAL-CONVENTION DISPLAY-HINT "1x:" and you wouldn't be trying to print the address as a string VK> rH"3.6.1.2.1.2.2.1.6.3 = STRING: "$y* which looks like it's got a carriage return after the * Add the -Ox option to display the value as a hex string snmpget -v2c -c public -Ox localhost .1.3.6.1.2.1.2.2.1.6.3 to see if that is the case. Regards Lee >> On Sat, Apr 28, 2018 at 4:02 AM, Robert Story <rst...@freesnmp.com> >> wrote: >> >> > On Fri, 27 Apr 2018 20:08:19 +0530 Venkateswarlu wrote: >> > VK> I am facing one issue with snmp. While fecting the >> > VK> ifPhysAddress for my device interfaces, one of the mac address >> > VK> is displaying wrong data. >> > VK> >> > VK> Version : 5.7.3 >> > VK> OS: armv7l GNU/Linux >> > VK> >> > VK> One of my ineterface is having mac address of 24:79:2A:0D:72:48. >> > VK> >> > VK> While fetching the this MAC address for my interface it is >> > VK> giving wrong data. >> > VK> >> > VK> snmpget -v2c -c public localhost .1.3.6.1.2.1.2.2.1.6.3 >> > VK> >> > VK> rH"3.6.1.2.1.2.2.1.6.3 = STRING: "$y* >> > VK> >> > VK> I didn't get any clue so far. Cam someone help ? >> > >> > Try loading the MIBs, which tell snmpget how to properly display >> > the data returned by the agent. >> > >> > snmpget -m ALL -v2c -c public localhost .1.3.6.1.2.1.2.2.1.6.3 >> > >> > Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders