Re: snmp questions
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGaT-sWH9wwu+CqVDD6uu+KWd2f2EyLnHh+9K8O+oYi_eg@mail.gmail.com> |
On 10 August 2011 19:31, Pete Snmp <[email protected]> wrote: > 1) what is the use of getbulk ? as per the books, instead of many getnext we > can use getbulk and can minimize data traffic. Exactly. > but whats the best example for using getbulk? Any particular table? No - it should work with any table. In fact, it's not restricted to tables - getBulk will return the next N items from *any* starting point, regardless of whether these are scalar objects or elements of a table (or a mixture of the two). The canonical use of GetBulk would be something like ifTable, where you can determine the number of rows in the table before you start. That then allows you to retrieve the whole table in a single request Something like: GET ifNumber.0 (returns N) GETBULK maxreps=N ifDescr ifSpeed would retrieve the specified information for *all* network interfaces, in (effectively) a single request. > 2) regarding standard MIB implementation, how do we compile this. I heard we > provide the RFC as input to compiler !! Sorry - I don't understand the question. If you're asking about how to implement a given MIB, there is more information about this in the FAQ > And how is this compilation different to private MIB? There is essentially no difference between a "standard" MIB and a private one. It's purely a matter of whereabouts in the overall OID tree the information is located (and the political hoops you have to jump through in order to get the MIB approved!) > 3) whats the difference between Notification/inform and trap? Notification is a general term, covering both informs and traps. Traps are unacknowledged - you send the request, but won't receive anything back (so can never be sure whether the trap was actually received). Informs will trigger a Response PDU, to acknowledge receipt of the notification. But note that in general parlance, the terms "notification" and "trap" are often both used in the generic sense. > 4) is there anything in SNMP which addresses storing the data ? Mean to say > data archiving ! No. SNMP is purely concerned with how to represent and manipulate management information over the wire. How this is handled by either the agent or the management application is "implementation specific". You can store this as binary data, printable text or scrawled on the living room wall in coloured crayon - the protocol doesn't care. All that SNMP is bothered about is that you play nicely with the other children.... > 5) This is regarding data types like gauge , counters . I see these are the > data types provided by SNMP/ASN/SMI, but > implementation should be based on the data type behavior. is it > correct. Or there will be internal check for the ranges in the agent for > these? What the agent does internally is up to you and/or the agent implementors > 6) what is the use of BITS type in SNMP? > 7) how is enumaration type useful in snmp? Please see a book on SNMP - I don't have the time to try and regurgitate general information that can easily be found elsewhere. You might just as well ask "what is the use of integer values" or "what is the use of strings". Have a look at examples of such types, and think about how you might use such objects. > 8) if i want to define my own data type in SNMP how can i do that. Is > textual convention used for this purpose? Yes - that would be the normal approach. Dave PS: As with all of the other members of the Net-SNMP team, any support for this software is offered in my spare time. None of us are paid to answer questions on this list. If I don't respond for a day or two, this is usually because other (paid!) work or personal time is taking priority. Please do *not* nag for an answer if no-one gets back to you immediately. It's not appreciated, and tends to be counterproductive in the long run. Thanks ------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users