Re: Question on SNMP TRAP MIB definition
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/4/21 dhaval sanghvi <[email protected]>: > MIB for trap(this is just an example) > // TRAP Definition > > tapeAlertTrap280 TRAP-TYPE > ENTERPRISE tapeAlert > VARIABLES { > hbaNumber, > hbaChannel > } > DESCRIPTION > "A library operation has been attempted that is invalid at this > time." That looks suspiciously like an SMIv1 definition. Please don't use SMIv1 - it was superceded by SMIv2 several years ago. Current MIB files should define notifications using NOTIFICATION-TYPE and they would be assigned an OID, just as for any other MIB object. > Now here, A trap is send with 2 varbinds. If i don't define the above > varbind as hbaNumer or hbaChannel , does it make any difference? What do you mean by "the above varbind" ? If you are talking about the value for the snmpTrapOID.0 varbind, then that would be the OID of your notification MIB object. The payload varbinds would have the same OID/value as if they were the result of a GET request. > I just want to know if we don't define the varbionds we use in traps, what > could happen? The trap recipient wouldn't have the faintest idea what you were trying to report. > Does masteragent look into varbinds and its respective oid > value and does a get on localagent ? No. > How does masteragent react to snmptrap with defined/undefined > varbinds send from localagent? It passes on whatever it's given by the subagent. If you give it garbage, then the trap recipient will receive garbage. Dave ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ 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