RFC 1215
Convention for defining traps for use with the SNMP
A Convention for Defining Traps for use with the SNMP π
Okay bestie, this is RFC 1215 π¦. It's from March 1991, edited by M. Rose (the Editor) at Performance Systems International. It's an informational one, so it doesn't specify any standard. The title block doesn't list anything it obsoletes or updates β¨.
Status of this Memo π
Okay so this memo gives a straightforward way to define traps used with the SNMP πΈ. Real talk though: traps are kinda controversial in the Internet-standard network management world, so this one is being shared for information purposes. If you're a network management person who uses traps, you're encouraged to check it out. If you don't use traps? You can safely ignore it, no shade π«Ά.
Like I said, it's info for the Internet community, not a standard. It does not specify any standard. Distribution of this memo is unlimited π .
Table of Contents π
1. Historical Perspective ................................ 1
2. Defining Traps ........................................ 2
2.1 Mapping of the TRAP-TYPE macro ....................... 3
2.1.1 Mapping of the ENTERPRISE clause ................... 3
2.1.2 Mapping of the VARIABLES clause .................... 4
2.1.3 Mapping of the DESCRIPTION clause .................. 4
2.1.4 Mapping of the REFERENCE clause .................... 4
2.1.5 Mapping of the TRAP-TYPE value ..................... 4
2.2 Usage Examples ....................................... 5
2.2.1 Enterprise-specific Trap ........................... 5
2.2.2 Generic-Traps for use with the SNMP ................ 5
3. Acknowledgements ...................................... 7
4. References ............................................ 9
5. Security Considerations................................ 9
6. Author's Address....................................... 9
1. Historical Perspective β¨
Okay, history time π. As reported in RFC 1052, IAB Recommendations for the Development of Internet Network Management Standards [1], the plan for network managing TCP/IP-based internets was a two-prong strategy π. In the short-term, the Simple Network Management Protocol (SNMP), defined in RFC 1067, was going to be used to manage nodes in the Internet community. In the long-term, the OSI network management framework was supposed to be examined. Two documents were made to define the management information: RFC 1065, which defined the Structure of Management Information (SMI), and RFC 1066, which defined the Management Information Base (MIB). Both were designed to be compatible with both the SNMP and the OSI network management framework.
This strategy was honestly a huge win in the short-term π. Internet-based network management tech got fielded by both the research and commercial communities within a few months. As a result, portions of the Internet community became network manageable in a timely fashion.
Then, as reported in RFC 1109, Report of the Second Ad Hoc Network Management Review Group [2], the requirements of the SNMP and the OSI frameworks turned out to be more different than anticipated π. So the requirement for compatibility between the SMI/MIB and both frameworks got suspended. That let the operational framework based on SNMP respond to new operational needs in the Internet community by producing MIB-II π .
In May of 1990, the core documents got elevated to "Standard Protocols" with "Recommended" status πΈ. The Internet-standard network management framework now consists of: Structure and Identification of Management Information for TCP/IP-based internets, RFC 1155 [3], which describes how managed objects contained in the MIB are defined; Management Information Base for Network Management of TCP/IP-based internets, which describes the managed objects contained in the MIB, RFC 1156 [4]; and the Simple Network Management Protocol, RFC 1157 [5], which defines the protocol used to manage these objects π¦.
2. Defining Traps π₯
So the Internet-standard SMI doesn't give you a way to define traps π. That's because it had to be protocol-independent at first. Instead, SNMP defines a few standardized traps and gives management enterprises a way to transmit enterprise-specific traps.
But with the introduction of experimental MIBs, some of which need to define experiment-specific traps, a convenient way of defining traps is desirable π§. The TRAP-TYPE macro is suggested for this purpose:
IMPORTS
ObjectName
FROM RFC1155-SMI;
TRAP-TYPE MACRO ::=
BEGIN
TYPE NOTATION ::= "ENTERPRISE" value
(enterprise OBJECT IDENTIFIER)
VarPart
DescrPart
ReferPart
VALUE NOTATION ::= value (VALUE INTEGER)
VarPart ::=
"VARIABLES" "{" VarTypes "}"
| empty
VarTypes ::=
VarType | VarTypes "," VarType
VarType ::=
value (vartype ObjectName)
DescrPart ::=
"DESCRIPTION" value (description DisplayString)
| empty
ReferPart ::=
"REFERENCE" value (reference DisplayString)
| empty
END
Okay but it MUST be emphasized, bestie: the use of traps is STRONGLY discouraged in the Internet-standard Network Management Framework π. The TRAP-TYPE macro is meant to allow concise definitions of existing traps, not to spur the definition of new traps.
2.1. Mapping of the TRAP-TYPE macro π¦
Just so you know, expanding the TRAP-TYPE macro is something that conceptually happens during implementation, not during run-time β¨.
2.1.1. Mapping of the ENTERPRISE clause π
The ENTERPRISE clause MUST be present π«Ά. It defines the management enterprise under whose registration authority this trap is defined (for a discussion on delegation of registration authority, see the SMI [3]). This value is placed inside the enterprise field of the SNMP Trap-PDU.
By convention, if the value of the ENTERPRISE clause is
snmp OBJECT IDENTIFIER ::= { mib-2 11 }
as defined in MIB-II [7], then instead of using this value, the value of sysObjectID is placed in the enterprise field of the SNMP Trap-PDU. This gives you a simple way to use the TRAP-TYPE macro to represent the existing standard SNMP traps. It is not intended to provide a means to define additional standard SNMP traps π ββοΈ.
2.1.2. Mapping of the VARIABLES clause πΈ
The VARIABLES clause, which need not be present, defines the ordered sequence of MIB objects which are contained within every instance of the trap type. Each variable is placed, in order, inside the variable-bindings field of the SNMP Trap-PDU. Note that at the option of the agent, additional variables MAY follow in the variable-bindings field π.
However, if the value of the ENTERPRISE clause is
snmp OBJECT IDENTIFIER ::= { mib-2 11 }
as defined in MIB-II [7], then the introduction of additional variables MUST NOT result in the serialized SNMP Message being larger than 484 octets π«.
2.1.3. Mapping of the DESCRIPTION clause π
The DESCRIPTION clause, which need not be present, contains a textual definition of the trap type. Note that in order to conform to the ASN.1 syntax, the entire value of this clause MUST be enclosed in double quotation marks, although the value MAY be multi-line π.
Further, note that if the MIB module does not contain a textual description of the trap elsewhere, then the DESCRIPTION clause MUST be present π.
2.1.4. Mapping of the REFERENCE clause π
The REFERENCE clause, which need not be present, contains a textual cross-reference to a trap, event, or alarm, defined in some other MIB module. This is useful when de-osifying a MIB produced by some other organization π§.
2.1.5. Mapping of the TRAP-TYPE value π
The value of an invocation of the TRAP-TYPE macro is the (integer) number which is uniquely assigned to the trap by the registration authority indicated by the ENTERPRISE clause. This value is placed inside the specific-trap field of the SNMP Trap-PDU, and the generic-trap field is set to "enterpriseSpecific(6)" π.
By convention, if the value of the ENTERPRISE clause is
snmp OBJECT IDENTIFIER ::= { mib-2 11 }
as defined in MIB-II [7], then the value of an invocation of the TRAP-TYPE macro is placed inside the generic-trap field of the SNMP Trap-PDU, and the specific-trap field is set to 0. This gives you a simple way to use the TRAP-TYPE macro to represent the existing standard SNMP traps. It is not intended to provide a means to define additional standard SNMP traps π¦.
2.2.2. Generic-Traps for use with the SNMP β¨
Okay so let's look at how the standard SNMP traps get defined π These are the big generic ones everyone needs, and they're giving very clear definitions π
coldStart TRAP-TYPE
ENTERPRISE snmp
DESCRIPTION
"A coldStart trap signifies that the sending
protocol entity is reinitializing itself such
that the agent's configuration or the rotocol
entity implementation may be altered."
::= 0
warmStart TRAP-TYPE
ENTERPRISE snmp
DESCRIPTION
"A warmStart trap signifies that the sending
protocol entity is reinitializing itself such
that neither the agent configuration nor the
protocol entity implementation is altered."
::= 1
linkDown TRAP-TYPE
ENTERPRISE snmp
VARIABLES { ifIndex }
DESCRIPTION
"A linkDown trap signifies that the sending
protocol entity recognizes a failure in one of
the communication links represented in the
agent's configuration."
::= 2
linkUp TRAP-TYPE
ENTERPRISE snmp
VARIABLES { ifIndex }
DESCRIPTION
"A linkUp trap signifies that the sending
protocol entity recognizes that one of the
communication links represented in the agent's
configuration has come up."
::= 3
authenticationFailure TRAP-TYPE
ENTERPRISE snmp
DESCRIPTION
"An authenticationFailure trap signifies that
the sending protocol entity is the addressee
of a protocol message that is not properly
authenticated. While implementations of the
SNMP must be capable of generating this trap,
they must also be capable of suppressing the
emission of such traps via an implementation-
specific mechanism."
::= 4
egpNeighborLoss TRAP-TYPE
ENTERPRISE snmp
VARIABLES { egpNeighAddr }
DESCRIPTION
"An egpNeighborLoss trap signifies that an EGP
neighbor for whom the sending protocol entity
was an EGP peer has been marked down and the
peer relationship no longer obtains."
::= 5
Here's the vibe for each one π
- coldStart (
::= 0): the sending protocol entity is reinitializing itself, so the agent's configuration or the protocol entity implementation may be altered π - warmStart (
::= 1): also a reinitialization, but neither the agent configuration nor the protocol entity implementation is altered πΈ - linkDown (
::= 2): the sender notices a failure in one of the communication links in the agent's configuration. It carriesifIndexπ - linkUp (
::= 3): the sender notices one of those links has come back up. It also carriesifIndexπ - authenticationFailure (
::= 4): the sender is the addressee of a protocol message that isn't properly authenticated. Implementations must be capable of generating this trap, and they must also be capable of suppressing it through an implementation-specific mechanism π - egpNeighborLoss (
::= 5): an EGP neighbor the sender was peering with has been marked down, and the peer relationship no longer holds. It carriesegpNeighAddrπ§
The authenticationFailure one is the spicy one, bestie. It's not just "make it happen," it's "you must be able to generate it AND you must be able to turn it off." Both things, periodt π
3. Acknowledgements π«Ά
This document was produced by the SNMP Working Group, and the whole squad showed up π
- Anne Ambler, Spider
- Karl Auerbach, Sun
- Fred Baker, ACC
- Ken Brinkerhoff
- Ron Broersma, NOSC
- Jack Brown, US Army
- Theodore Brunner, Bellcore
- Jeffrey Buffum, HP
- John Burress, Wellfleet
- Jeffrey D. Case, University of Tennessee at Knoxville
- Chris Chiptasso, Spartacus
- Paul Ciarfella, DEC
- Bob Collet
- John Cook, Chipcom
- Tracy Cox, Bellcore
- James R. Davin, MIT-LCS
- Eric Decker, cisco
- Kurt Dobbins, Cabletron
- Nadya El-Afandi, Network Systems
- Gary Ellis, HP
- Fred Engle
- Mike Erlinger
- Mark S. Fedor, PSI
- Richard Fox, Synoptics
- Karen Frisa, CMU
- Chris Gunner, DEC
- Fred Harris, University of Tennessee at Knoxville
- Ken Hibbard, Xylogics
- Ole Jacobsen, Interop
- Ken Jones
- Satish Joshi, Synoptics
- Frank Kastenholz, Racal-Interlan
- Shimshon Kaufman, Spartacus
- Ken Key, University of Tennessee at Knoxville
- Jim Kinder, Fibercom
- Alex Koifman, BBN
- Christopher Kolb, PSI
- Cheryl Krupczak, NCR
- Paul Langille, DEC
- Peter Lin, Vitalink
- John Lunny, TWG
- Carl Malamud
- Randy Mayhew, University of Tennessee at Knoxville
- Keith McCloghrie, Hughes LAN Systems
- Donna McMaster, David Systems
- Lynn Monsanto, Sun
- Dave Perkins, 3COM
- Jim Reinstedler, Ungerman Bass
- Anil Rijsinghani, DEC
- Kathy Rinehart, Arnold AFB
- Kary Robertson
- Marshall T. Rose, PSI (chair)
- L. Michael Sabo, NCSC
- Jon Saperia, DEC
- Greg Satz, cisco
- Martin Schoffstall, PSI
- John Seligson
- Steve Sherry, Xyplex
- Fei Shu, NEC
- Sam Sjogren, TGV
- Mark Sleeper, Sparta
- Lance Sprung
- Mike St.Johns
- Bob Stewart, Xyplex
- Emil Sturniold
- Kaj Tesink, Bellcore
- Dean Throop, Data General
- Bill Townsend, Xylogics
- Maurice Turcotte, Racal-Milgo
- Kannan Varadhou
- Sudhanshu Verma, HP
- Bill Versteeg, Network Research Corporation
- Warren Vik, Interactive Systems
- David Waitzman, BBN
- Steve Waldbusser, CMU
- Dan Wintringhan
- David Wood
- Wengyik Yeong, PSI
- Jeff Young, Cray Research
4. References π
- [1] Cerf, V., "IAB Recommendations for the Development of Internet Network Management Standards", RFC 1052, NRI, April 1988.
- [2] Cerf, V., "Report of the Second Ad Hoc Network Management Review Group", RFC 1109, NRI, August 1989.
- [3] Rose M., and K. McCloghrie, "Structure and Identification of Management Information for TCP/IP-based internets", RFC 1155, Performance Systems International, Hughes LAN Systems, May 1990.
- [4] McCloghrie K., and M. Rose, "Management Information Base for Network Management of TCP/IP-based internets", RFC 1156, Hughes LAN Systems, Performance Systems International, May 1990.
- [5] Case, J., Fedor, M., Schoffstall, M., and J. Davin, "Simple Network Management Protocol", RFC 1157, SNMP Research, Performance Systems International, Performance Systems International, MIT Laboratory for Computer Science, May 1990.
- [6] Information processing systems - Open Systems Interconnection - Specification of Abstract Syntax Notation One (ASN.1), International Organization for Standardization International Standard 8824, December 1987.
- [7] Rose M., Editor, "Management Information Base for Network Management of TCP/IP-based internets: MIB-II", RFC 1213, Performance Systems International, March 1991.
5. Security Considerations π
Security issues are not discussed in this memo. π Yes, that's the whole section, bestie. Dramatic? Absolutely. Iconic? Also yes.
6. Author's Address π
Marshall T. Rose, the author behind all of this, lives at:
Marshall T. Rose
Performance Systems International
5201 Great America Parkway
Suite 3106
Santa Clara, CA 95054
Phone: +1 408 562 6222
EMail: mrose@psi.com
X.500: rose, psi, us
π¦ where this page comes from
- ietf: rfc1215 1991-03
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms