I know one can build an snmp client using net snmp. Does anyone know an open source snmp manager library in C? or maybe my understanding is not correct. The net snmp library can also be used to build a snmp manager? I need to build a snmp manager to test my snmp client app.
Thanks.
If all you're interested in is testing, I'd suggest simply using some simple command line tools for sending queries to your agent. The Net-SNMP engine you mentioned would work well, and has many online tutorials for how to send queries to your app. See the Net-SNMP tutorials on the subject.
Related
I have a Mininet network and have connected it to an ODL controller. I want to add flows in the controller (and not through Mininet) to be able to get pings and monitor traffic in the network.
What I've seen online, suggested that I connect to the GUI of the controller and create flows there, but I want to know if I can implement/modify flows in the controller itself. I want to run an ODL script without using the GUI. Any help will be much appreciated (links, suggestions etc.).
(I am using ODL 16.02)
Can't find any solutions.
I am also new to ODL. It seems the ODL GUI is no longer supported and the only way to add flows is through RESTCONF. In order to do this, you will need an API testing software. You can use curl and I have seen that Postman is very popular, but there are other alternatives.
This link shows a video where they demonstrate how to configure flows using Postman. I wish there were more information for beginners about how to configure flows and features, since I am also having problems understanding how to use ODL.
How can I receive traps using C or C++ and net-snmp module. I need sample code but the examples at http://www.net-snmp.org/ use syscalls but not API methods.
The net-snmp site does have comprehensive coding tutorials.
Look at http://www.net-snmp.org/wiki/index.php/Tutorials#Coding_Tutorials
EDIT:
Also see source code for snmptrapd as a guide for how to receive traps.
I am doing internship in a company. I have been asked to find a way to implement snmp agents in one of their systems using java. I tried to find a free MIB compiler for java but failed. Hence I am trying to do that using SNMP4J-agentX library (because they specifically said they need master and sub agents). I have never worked with it before so I am having difficulty trying to implement it. There is a sample master agent and sub agent in the library package. I dont understand how i can modify it to include variables from my own mib file. Or if anyone have a simpler sample master agent or sub agent code, it would be very helpful if you can share it. I am only a little familiar with the internal working of an agent. So please if anyone can help please do so from a relatively basic level.
Many thanx in advance.
Adding your own MIB objects (so called ManagedObjects) to your SNMP agent with SNMP4J-AgentX works in the same way as for SNMP4J-Agent. The only exception from this are AgentX shared tables, but these are advanced concepts you generally do not need when you start using AgentX/SNMP.
Thus, I recommend reading the SNMP4J-Agent-Instrumentation-Guide.pdf to learn how MIB objects are registered and instrumentated based on your requirements.
I apologize that this question comes from the uninformed, huddled masses: I've been away from net-snmp for three years and I've missed all of the developments.
I have to deliver a bilingual v2c/v3 snmpd for use in an embedded Linux system.
I expect to use the superb net-snmp sources. What is the right approach to marshalling these sources, where "right" == straightforward, uncomplicated, vanilla, and "it just works"?
Thanks so much, everybody. And I apologize again for my out-of-dateness.
Edit: Why do I need this input? I have a lot of experience with snmp v2c in general; some experience with net-snmp; and little experience with snmp v3. Because I'm new to v3, I'm looking for a cookbook approach from someone who's done it so I can avoid the many undocumented pitfalls and hurdles that my experience tells me lie in the path of anyone building an agent from net-snmp sources.
First, Net-SNMP is already tri-lingual under the hood. If you configure it to accept v1, v2c and v3 it'll happily accept and respond to all 3 protocol versions without changing a thing.
Second, to get snmpv1/2c working, all you need in your snmpd.conf file is:
rocommunity COMMUNITYNAME
Where, COMMUNITYNAME is the super-secret insecure community/password you want to use.
For SNMPv3, I'm assuming you want to use SNMPv3 with USM. I suggest you start by reading the Net-SNMP tutorial on Securing SNMP traffic and go from there.
Note also, you can run snmpconf -g basic_setup to get more help with the above as well as with other options.
Just curious, if you were to build an instant message client for the Mac what existing API or service would you use to handle the transfer of messages from one user to another? I am looking for something that can be used in conjunction with objective-c and is compatible with other popular messaging services such as MSN, Yahoo, Aim, gtalk, etc. I don't want to host the service, but rather connect to existing services and use their "pipes".
Thanks
There are many Instant messenger protocols out there.
There is a good bet you could find a Java API for which protocol you would like to use like the XMPP Java API.
Or
for C or C++ you could use the libpurple library.
Your question lacks a lot of informations, so it's rather hard to answer. Please add some details on your requirements. What protocols do you need, what functionality, what development language do you use?
As a start:
Adium has been released under the GPL, thus you can use the code in your own projects as long as the license fits your needs.
http://trac.adium.im/
Another option, if you don't want to implement multiple networks but prefer to use a single protocol where the server provides gateways to other networks you can also check out Jabber/XMPP libraries that are available for the mac.
http://www.google.de/search?q=jabber+library+mac&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a