Events
In the remainder of this memo we present the format and definition of event messages which are unsolicited updates sent from entities to management centers.
This section needs much further work. The authors provide this section to illustrate how the trap mechanism works. However, much more research must be done into the questions of what events need to be reported, and what information they must carry with them before this section can be completed. The authors welcome any advice from the community on this subject.
Format of Event Messages
Event messages have the same format as replies; they are a sequence of objects. The only difference between a event message and a regular reply to a query is that the event message is labelled as a event in the HEMP message header and the first object in the event message is a special event leader describing the event. All objects after the event message are standard objects stored by the entity which might be useful to a monitoring center in understanding the machine state which caused the event. Each event has a certain number of objects that it must return. Additional objects may be returned by loading instructions into the eventExecution buffer of the relevant eventEntry.
The format of the event leader is shown below:
EventLeader ::= [APPLICATION 1024] IMPLICIT SEQUENCE {
eventCode INTEGER,
eventIndex INTEGER,
eventThreshold INTEGER,
eventTime TimeStamp,
eventDescr IA5STRING
}
The eventCode is a number which indicates the type of event. The eventCodes are defined below.
The eventIndex is an implementation specific value. It is considered good practice to make sure that a particular event is only generated in one place. It may be the case that certain HEMS generic events (for example, "no buffer space") may be generated by more than one place in an entity's code. To allow implementors and network managers to determine where the event is actually being generated, implementors should make sure that a distinct eventIndex is assigned to each location in the code that generates a particular event.
The eventThreshold is the value of the event threshold when the event was sent.
The eventTime indicates when the trap was generated.
The eventDescr is a text string which describes the event. This description should explain the general problem (e.g., "no buffer space") and may also, optionally, include additional information about why this particular event was generated (e.g., "could not send ICMP redirect").
Event Definitions
The remainder of this memo presents a few generic events, which are presented for illustration only. Implementors interested in supporting events should contact the authors to help work out a more comprehensive set of definitions.
The format of the event definitions is:
EVENT CODE: The event code number.
Definition: Defines the event.
Related Objects: The list of related objects which must be returned following the event header. All objects should be returned as fully qualified objects (with ASN.1 codes tracing a complete path from the root object dictionary). If no objects are specified, then no related objects are required.
Event Status: Events are either required of all conforming implementations, required if the entity supports a particular feature (e.g., TCP events) or optional.
Notes: Any additional notes about the event.
List of Events
The next few event codes are for system (as opposed to more network oriented) events.
EVENT CODE: 0
Definition: Unused
EVENT CODE: 1
Definition: The entity has rebooted.
Related Objects: An INTEGER which is the highest HEMP messageID reached by the trap system before the system crashed.
EVENT CODE: 2
Definition: The entity is about to go into test mode.
EVENT CODE: 3
Definition: The entity is about to reset.
EVENT CODE: 4
Definition: The entity is about to reboot.
EVENT CODE: 5
Definition: The entity is about to halt.
EVENT CODE: 6
Definition: The system is close to depleting its packet buffer space.
Event Status: optional
EVENT CODE: 7
Definition: The system has depleted its packet buffer space.
EVENT CODE: 8
Definition: The system has depleted a non-packet buffer space.
Note: The two trap codes above do not deal neatly with systems which have multiple buffer pools, each of which may be depleted separately, with very different effects on the entity.
The next set of event codes apply to events related to network interfaces.
EVENT CODE: 1024
Definition: The given interface has just come up.
Related Objects: The InterfaceData structure for the interface.
EVENT CODE: 1025
Definition: The given interface has just been taken down.
Related Objects: The InterfaceData structure for the interface.
EVENT CODE: 1026
Definition: The given interface has just gone into test mode.
Related Objects: The InterfaceData structure for the interface.
The next set of event codes are used to report IP-level errors.
EVENT CODE: 2048
Definition: Unable to route IP packet.
EVENT CODE: 2049
Definition: Bad IP checksum.
EVENT CODE: 2050
Definition: An IP packet with a bad header was received (for example, with a broadcast or multicast IP address as the source, or the wrong IP version number, or a header length which is too short).
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2051
Definition: Packet for unsupported IP transport protocol.
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2052
Definition: A stunted IP packet was received (smaller than the IP length says it should be).
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2053
Definition: An oversize IP packet was received (larger than the IP length says it should be).
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2054
Definition: A good IP packet was discarded (usually to free up buffer space).
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2055
Definition: An IP packet's time-to-live as expired.
Related Objects: Should return the IP header of the packet. Note that an IP header type has not yet been defined.
EVENT CODE: 2056
Definition: This IP fragment has timed out.
Related Objects: Should return the header of the fragment. Note that an IP header type has not yet been defined.