brnunes / android-snmp Goto Github PK
View Code? Open in Web Editor NEWAndroid SMNP Agent and Manager
Android SMNP Agent and Manager
Howto i can start application on startup device?
` private class SendTrap extends AsyncTask<Void, Void, Void> {
protected Void doInBackground(Void... params) {
PDUv1 pdu = new PDUv1();
pdu.setType(PDU.V1TRAP);
pdu.setGenericTrap(PDUv1.COLDSTART);
pdu.add(new VariableBinding(new OID(new int[]{ 1,3,6,1}),new Integer32(1995)));//1, 3, 6, 1, 2, 1, 1, 2
// Specify receiver
Address targetAddress = new UdpAddress("192.168.0.6/161");
CommunityTarget target = new CommunityTarget();
target.setCommunity(new OctetString("public"));
target.setVersion(SnmpConstants.version1);
target.setAddress(targetAddress);
target.setRetries(2);
target.setTimeout(1500);
try {
snmp.trap(pdu, target);
Log.i(TAG, "doInBackground: !!!!!!!!!!!!!!!!!!");
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
}
`
This is I use the Trap right?
Any chance you'd be able to update the agent to provide stats on free storage?
How to use manager App? Please provide manager app code for android studio.
Hello
I am trying to open the "agent" project in Android Studio and I'm struggling with this error.
I have downgraded the gradle version to 3.0.1 as recommended by Android Studio, also updated the buildToolsVersion, minSdkVersion and minSdkVersion, cleaned the project, rebuilt the project, restarted Android Studio a couple of times and even rebooted but no luck.
Any ideas?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.