Special Tags for Reading and Creating Traps
- Last UpdatedDec 17, 2021
- 2 minute read
The table below shows the tag address and the field of the tag object assigned to the tag.
|
Tag Address |
Field of trap object assigned to Tag |
|
T0 |
Enterprise (device sending the trap), for example .1.3.6.1.4.1.311.1.1.3.1.1 |
|
T1 |
IP address; for example 223.125.1.17 |
|
T2 |
Generic type. Available options are: 0 - cold start 1 - warm start 2 - link down 3 - link up 4 - authentication unsuccessful 5 - egpNeighbor loss 6 - enterprise-specific trap |
|
T3 |
Specific type (i.e., a user-defined trap in the enterprise MIB). For example, 3. |
|
T4 |
Time stamp; for example, 6336403. |
|
T5 |
Accesses the OID for the SNMP VarBind which holds the selected subfield of the current trap. The variable 'SubfieldNumber' (see below) determines which subfield is accessed; e.g., .1.3.6.1.2.1.1.5.0 Note that T5 contains a value. It can be a dummy value if the SNMP variable doesn't exist. This value is only of use if your MIB contains access to the trap variable. |
|
T6 |
Accesses the data in subfields of the current trap. The variable 'SubfieldNumber' determines which subfield is accessed. When writing, you have to provide a value and a type. The type has to be "INTEGER", "COUNTER", "GAUGE", "TIMETICK", "ADDRESS", or "STRING". Strings should be less than 80 characters long. |
|
TF |
Trap forwarding IP address and community name. When writing, the trap community name parameter is optional; for example, 196.168.1.34 trap. |
|
TN (TrapNext) |
Read - Returns the number of traps in the queue. Write - Deletes the current trap from the queue. The next trap in the queue becomes the current trap. |
|
TNVB |
Read - Returns the number of VarBinds in the VarBindList of the current trap. Write - Update SubfieldNumber. |
|
SubfieldNumber |
This is not a real tag: it is a software variable. SubfieldNumber can be updated by writing to TNVB. SubfieldNumber is set to zero whenever TN is written. |