Problem using Unix net-snmp tools with snmpv3_nvm_mpfs demo on PIC32 ESK board (part no. DM320004) [reposted with subject prefix]
TPCpiclistspam@@firstname.lastname@example.org email (remove spam text)
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 and turn the board's LEDs on and off.
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.
root@RM:/home/tom# snmpwalk -On -c public -v 1 mechpboard_e
..18.104.22.168.22.214.171.124.0 = STRING: Microchip Harmony
..126.96.36.199.188.8.131.52.0 = OID: .184.108.40.206.4.1.17095.1
..220.127.116.11.18.104.22.168.0 = Timeticks: (60130) 0:10:01.30
..22.214.171.124.126.96.36.199.0 = STRING: admin
..188.8.131.52.184.108.40.206.0 = STRING: Microchip
..220.127.116.11.18.104.22.168.0 = STRING: office
..22.214.171.124.126.96.36.199.0 = INTEGER: 7
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.
I also tried the net-snmp toolkit's tkmib browser which loops with an error and again does not find the agent's LED or push-button hardware.
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.
Similarly specifying SNMP v1 or v2c on the command line makes no difference.
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 examples of net-snmp commands to access the board's push-button/LEDs? Please let me know if I've omitted anything pertinent.
Linux system details:
Distro: Slackware current
IDE: MPLAB IDE v2.20
MPLAB Harmony framework: v1.00
PIC Compiler: XC32 (v1.33) [free download]
Apologies for the earlier subject prefix-less post.
-- Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England. Email: rhul.ac.ukT.Crane
Fax: +44 (0) 1784 472794
-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the