This is an Android version of SNMP based on opensource NET-SNMP project at http://www.net-snmp.org.
Here are quick start steps to use the snmp library in your android application:
1. create your application in the Eclipse
2. unzip the tar file which contains libsnmpsdkjni.so for armeabi, armeabi-v7a, mips and x86 platforms as well as snmpsdk.jar
3. copy those folders and snmpsdk.jar file to libs folder under your Android project folder.
4. load the library in onCreate() via function call System.loadLibrary("snmpsdkjni");
5. use the snmpGet API to get the value for scalar or columnar OID. For instance,
String val = SnmpAPIs.snmpGet(SnmpTypes.snmpVersion.Version_2c.getValue(), "192.168.1.7", "public", "1.3.6.1.2.1.1.3.0");
It only supports Get, more yet to come soon.
If you need MIB parser, here is the Android SDK at https://sourceforge.net/projects/smiandroidsdklibrary
You can download my app at https://play.google.com/store/apps/details?id=snmpmanager.feng.gao
Downloads:
0 This Week
Android