#include "nsISupports.idl" #include "snmpvar.idl" #include "nsIRDFResource.idl" interface mkISnmpPdu; [scriptable, uuid(AAC9180B-98AD-4cb5-A95C-CF6641BE395A)] interface mkISnmpPdu : nsISupports { // pdu types values used for the type field const short GET = 1; const short GET_NEXT = 2; const short GET_BULK = 3; const short SET = 4; const short TRAP = 5; const short INFORM = 6; const short RESPONSE = 7; const short REPORT = 8; // var error values used for the errorType field /* * in SNMPv1, SNMPsec, SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs */ const short SNMP_ERR_NOERROR = 0; /* XXX Used only for PDUs? */ const short SNMP_ERR_TOOBIG = 1; const short SNMP_ERR_NOSUCHNAME = 2; const short SNMP_ERR_BADVALUE = 3; const short SNMP_ERR_READONLY = 4; const short SNMP_ERR_GENERR = 5; /* * in SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs */ const short SNMP_ERR_NOACCESS = 6; const short SNMP_ERR_WRONGTYPE = 7; const short SNMP_ERR_WRONGLENGTH = 8; const short SNMP_ERR_WRONGENCODING = 9; const short SNMP_ERR_WRONGVALUE = 10; const short SNMP_ERR_NOCREATION = 11; const short SNMP_ERR_INCONSISTENTVALUE = 12; const short SNMP_ERR_RESOURCEUNAVAILABLE = 13; const short SNMP_ERR_COMMITFAILED = 14; const short SNMP_ERR_UNDOFAILED = 15; const short SNMP_ERR_AUTHORIZATIONERROR = 16; const short SNMP_ERR_NOTWRITABLE = 17; /* * in SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs */ const short SNMP_ERR_INCONSISTENTNAME = 18; // attribute short version; attribute short type; mkISnmpVar getVar(in short index); mkISnmpVar addVar(in mkISnmpVar var); mkISnmpVar addNullVar(in ACString oid); // attribute ACString Ip; // attribute ACString community; attribute short erroredVarNumber; attribute short errorType; attribute short numberOfNonRepeaters; attribute short numberOfRepeats; readonly attribute short numberOfVars; readonly attribute unsigned long sourceUpTime; };