SNMP Stack 5_1

uk.co.westhawk.snmp.stack
Class InformPdu

java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.co.westhawk.snmp.stack.Pdu
              |
              +--uk.co.westhawk.snmp.stack.InformPdu
Direct Known Subclasses:
InformPdu_vec, OneInformPdu

public class InformPdu
extends Pdu

This class represents the SNMP Inform Request Pdu. This request has been added in SNMPv2c, hence is not supported by SNMPv1 agents.

Inform Requests are sent between managers. It is an acknowlegded trap since the receiving end should send a Response Pdu as reply. The varbind list has the same elements as the TrapPduv2.

Note this PDU should be sent to port 162 (the default trap port) by default. You will have to create a SnmpContext with the ListeningContextFace.DEFAULT_TRAP_PORT as parameter!

For SNMPv3: The sender of an inform PDU acts as the authoritative engine.

Since:
4_12
Version:
$Revision: 3.4 $ $Date: 2006/01/17 17:33:04 $
Author:
Birgit Arkesteijn
See Also:
TrapPduv2, ListeningContextFace.DEFAULT_TRAP_PORT

Field Summary
 
Fields inherited from class uk.co.westhawk.snmp.stack.Pdu
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
 
Constructor Summary
InformPdu(SnmpContextBasisFace con)
          Constructor.
 
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isExpectingResponse, isTimedOut, new_value, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, tell_them, toString, toString, waitForSelf
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InformPdu

public InformPdu(SnmpContextBasisFace con)
Constructor.

Parameters:
con - The context (v2c or v3) of the Pdu

SNMP Stack 5_1