( Intermapper imported a LIVEWAVE MIB that defines these OIDs.) The trap contains the deviceUnitID, deviceName, and deviceStatus variables. LIVEWAVE-MIB::deviceName : "5 - Video Stream", With this trap, Intermapper creates the following event log entry: 03/23 11:37:34 TRAP IC3 Demo System:Video Stream ENC01 LIVEWAVE-MIB::deviceFaulted (v2c) Below are examples of accessing VarBind List entries by name and by position. If this occurs, you need to obtain their values by position. Access by name is much easier to program and understand, but there are instances where a vendor's traps contained VarBind List entries with the same name. When accessing VarBind List entries, you can access them either by name or by position. For descriptions of the formats, see Probe Variables. These variables are equivalent to their non-trapvariable counterparts. You can also use one of following to change the display to a certain format. The TRAPVARIABLE type causes the value to be displayed in the most useful format. Trap_var2, $VarbindValue2, TRAPVARIABLE, "Second value" Trap_var1, $VarbindValue1, TRAPVARIABLE, "First value" the first and second values from the Varbind List by position VarbindCountVar, $VarbindCount, TRAPVARIABLE, "Varbind Count" SnmpVersionVar, $SnmpVersion, TRAPVARIABLE, "SNMP Version" SenderAdrsVar, $SenderAddress, TRAPVARIABLE, "Sender Address" TrapOIDVar, $TrapOID, TRAPVARIABLE, "Trap OID"ĪgentAdrsVar, $AgentAddress, TRAPVARIABLE, "Agent Address" TimeStampVar, $TimeStamp, TRAPVARIABLE, "Timestamp"ĮnterpriseVar, $Enterprise, TRAPVARIABLE, "Enterprise"ĬommStringVar, $CommunityString, TRAPVARIABLE, "Community String" SpecificTrapVar, $SpecificTrap, TRAPVARIABLE, "Specific Trap" ![]() GenericTrapVar, $GenericTrap, TRAPVARIABLE, "Generic Trap" The following illustrates how several trap variables can be defined: Trap variables thatĭo not have values set by an incoming trap are left undefined.įor a full example trap file, see Example Trap File. In this example, the $InterMapperTimeStamp variable is setĮvery time a trap arrives containing the OIDġ.3.6.1.2.1.1.0 in the VarBind List. InterMapperTimeStamp, 1.3.6.1.2.1.1.0, TRAPVARIABLE, "Timestamp" The Probe Variables section of this document describes the file OID in its VarBind List, or the set the named variable to the value of a positional variable. Only way to set a named trap variable value is to receive a trap that contains the $VarbindOIDN - the OID of the N'th variable in the trap's VarBind List.$VarbindTypeN - the type of the N'th variable in the trap's VarBind List.$VarbindValueN - the value of the N'th variable in the trap's VarBind List.You can access values from the VarBind List by position using the following variables of the form: Positional Variables From the Varbind List $VarbindCount - the number of variables contained in the VarBind list.$SnmpVersion - the version of the trap.This could be different from the $AgentAddress when the sender is forwarding traps for the agent. $ SenderAddress - the IP address of the device that sent the trap.$AgentAddress - the IP address of the SNMP agent that generated the trap.$TrapOID - the value of the TrapOID field in the trap (SNMPv2c, SNMPv3).$CommunityString - the value of the CommunityString field in the trap (SNMPv1, SNMPv2c).$Enterprise - the value of the SNMPv1 enterprise field (SNMPv1).$TimeStamp - the TimeStamp field of the trap, in hundredths of a second.If the $GenericTrap value is 0-5, the $SpecificTrap is zero (0), otherwise it is a positive 32-bit value specified by the vendor (SNMPv1). $SpecificTrap - the value of the SpecificTrap field in the trap.This field can be one of the following values: $GenericTrap - the GenericTrap field in the trap (SNMPv1).In addition to the variables in the VarBind List, a probe can set variables based on the fields of the trap packet’s header. Trap variable is never polled, meaning that Intermapper never sendsĪn SNMP GetRequest or GetNextRequest to retrieve its value. If the OID exists in the trap's VarBind list, the variable is set to the value in the trap. Named Trap Variables - variables you define by associating an SNMP OID with a name.Use positional trap variables to access data from the trap's VarBind list by position in the list. ![]() Positional Trap Variables - a set of variables automatically set by Intermapper.Packet Trap Variables - a set of variables automatically set by Intermapper when a trap is received.Intermapper includes the following trap variables, only one of which can be declared in a probe: A Trap Variable is a variable defined in a custom probe file
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |