Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I have to develop an SNMP agent for an Ethernet switch. It seems modifying net-snmp is not a trivial task.
No, it isn't
Quote:
I failed to get any help in the user mail list of net-snmp. Is there a good alternative for net-snmp ? If not, can you tell where can I get support ?
Since you tell us absolutely NOTHING about the version/distro of Linux, what you've done/tried, problem(s) you're having, hardware, etc., how can we possibly give you an answer?? You've been here ten years now...you should be well familiar with the LQ Rules and Question Guidelines.
Provide details, tell us what your actual GOAL(s) are, what you've done, questions you've asked, etc., and we can try to help. But what you've posted is impossible to answer.
Have you visited the Net-SNMP page and also tried their downloads page where they have their source? There's also a documentation section.
SNMP is very old, there are at least three versions, v1, v2, and v3. There is tons of documentation on the web about the protocol. You can either find source to start with, or get the specification and write your own code from scratch.
While this is not trivial, you seemed to have understood this when you started your question.
What concerns me about your question is that you ask how to get support and there is support here, you ask if there are alternatives to the package Net-SNMP, you then have experimented with some utilities and you're next asking about structures and arrays common to the SNMP protocol as if you have no understanding about how it works.
Therefore I suggest you familiarize yourself with what SNMP is, what a MIB is and a MIB table, as well as OIDs, and understand how to manage a device using SNMP.
You ask if there are alternatives. I don't know if you mean to ask if there are device and network management alternatives to using SNMP or if there are alternatives to the product Net-SNMP, therefore you need to clarify that question.
When you cite that you have failed to get help from their mailing list, I suspect it is for similar reasons, where you have a number of questions which are related to the topic, but not well organized.
Please take the time to review the protocol specifications in more detail and review the source code to help yourself organize your questions more clearly.
There's plenty of documentation about snmpv1/2/3 out there, and therefore you can create an agent project by designing it and writing the code. I'd suggest you search the web for snmp agent code, however it sounds as if you already have. I do agree that it is a large task, and therefore not one I would undertake without giving it some study and serious consideration. The way I would proceed is to derive a functional spec for the snmp agent, and then proceed with more detailed design for a software architecture, confirm it would satisfy the functional requirements, verify that I had not missed any requirements, and then begin implementing and testing it. I'd probably break the effort down into functional blocks to test and verify each step so that I could be efficient as well as incremental in how I constructed the architecture.
That's about the best suggestions I can offer towards your project.
The variables ifSpecific_len, ifSpecific are not declared.
What do those variables mean ?
According to the IF-MIB.txt definition:
Code:
ifSpecific OBJECT-TYPE
SYNTAX OBJECT IDENTIFIER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"A reference to MIB definitions specific to the
particular media being used to realize the
interface. For example, if the interface is
realized by an ethernet, then the value of this
object refers to a document defining objects
specific to ethernet. If this information is not
present, its value should be set to the OBJECT
IDENTIFIER { 0 0 }, which is a syntatically valid
object identifier, and any conformant
implementation of ASN.1 and BER must be able to
generate and recognize this value."
::= { ifEntry 22 }
Same question for ifOutQLen.
Code:
ifOutQLen OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS deprecated
DESCRIPTION
"The length of the output packet queue (in packets)."
::= { ifEntry 21 }
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.