Tag added ... > -----Original Message----- > From: TPCpiclist@mklab.ph.rhul.ac.uk > [mailto:TPCpiclist@mklab.ph.rhul.ac.uk] > Sent: 03 December 2014 16:10 > To: piclist@mit.edu > Cc: tpcpiclist@mklab.ph.rhul.ac.uk > Subject: Problem using Unix net-snmp tools with snmpv3_nvm_mpfs demo > on PIC32 ESK board (part no. DM320004) >=20 > Dear All, > I am attempting to create a device running an SNMP agent. As a > start I have built the snmpv3_nvm_mpfs demo app under MPLAB Harmony > and can access its web and SNMP interfaces. With the device connected to= a > dual boot PC, under Windows 7 I can properly interrogate the SNMP agent > using the iReasoning browser recommenced by Microchip in the MPLAB > Harmony documentation. In particular I can read the push-button status a= nd > turn the board's LEDs on and off. >=20 > Under Linux, using the snmpwalk, snmpget & snmpset command line tools > there are problems. Snmpwalk returns only a small fraction of the agent'= s > name-space, eg. >=20 > root@RM:/home/tom# snmpwalk -On -c public -v 1 mechpboard_e > .1.3.6.1.2.1.1.1.0 =3D STRING: Microchip Harmony > .1.3.6.1.2.1.1.2.0 =3D OID: .1.3.6.1.4.1.17095.1 > .1.3.6.1.2.1.1.3.0 =3D Timeticks: (60130) 0:10:01.30 > .1.3.6.1.2.1.1.4.0 =3D STRING: admin > .1.3.6.1.2.1.1.5.0 =3D STRING: Microchip > .1.3.6.1.2.1.1.6.0 =3D STRING: office > .1.3.6.1.2.1.1.7.0 =3D INTEGER: 7 >=20 > Specifying the OID reported by the iReasoning browser running under > Windows for one of the board's LEDs with snmpset; or a push-button using > snmpget always fails. >=20 > I also tried the net-snmp toolkit's tkmib browser which loops with an err= or > and again does not find the agent's LED or push-button hardware. >=20 > I have copied the mchip.mib and snmp.mib MIB files into (at different > times) both /usr/share/snmp/mibs/ and ~/.snmp/mibs but without effect. >=20 > Similarly specifying SNMP v1 or v2c on the command line makes no > difference. >=20 > I really don't want to be tied to Windows for development and more > importantly I need the device to work with the Unix or any other SNMP > client. Can anyone explain what might be wrong or supply working example= s > of net-snmp commands to access the board's push-button/LEDs? Please let > me know if I've omitted anything pertinent. >=20 > Many thanks > Tom Crane >=20 >=20 > Linux system details: > Distro: Slackware current > Architecture: i686 > Kernel: 3.14.12 > IDE: MPLAB IDE v2.20 > MPLAB Harmony framework: v1.00 > PIC Compiler: XC32 (v1.33) [free download] >=20 > -- > Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hil= l, > Egham, Surrey, TW20 0EX, England. > Email: T.Crane@rhul.ac.uk > Fax: +44 (0) 1784 472794 > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Scanned by iCritical. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .