Class TSNMPRec
Unit
snmpsend
Declaration
type TSNMPRec = class(TObject)
Description
Data object abstracts SNMP data packetHierarchy
TSNMPRec > TObjectMethods
Overview
Description
 |
procedure Clear; |
Clears all object properties to default values.
 |
constructor Create; |
 |
function DecodeBuf(const Buffer: AnsiString): Boolean; |
Decode SNMP packet in buffer to object properties.
 |
destructor Destroy; override; |
 |
function EncodeBuf: AnsiString; |
Encode obeject properties to SNMP packet.
 |
procedure MIBAdd(const MIB, Value: AnsiString; ValueType: Integer); |
Add entry to SNMPMibList. For queries use value as empty string,
and ValueType as ASN1_NULL.
 |
function MIBByIndex(Index: Integer): TSNMPMib; |
Return MIB information from given row of MIB array.
 |
function MIBCount: integer; |
return number of entries in MIB array.
 |
procedure MIBDelete(Index: Integer); |
Delete entry from SNMPMibList.
 |
function MIBGet(const MIB: AnsiString): AnsiString; |
Search SNMPMibList list for MIB and return correspond value.
Properties
Overview
Description
 |
property AuthEngineBoots: Integer; |
value used by SNMPv3 authorisation for synchronization with SNMP agent.
 |
property AuthEngineID: AnsiString; |
value used by SNMPv3 authorisation for synchronization with SNMP agent.
 |
property AuthEngineTime: Integer; |
value used by SNMPv3 authorisation for synchronization with SNMP agent.
 |
property AuthEngineTimeStamp: Cardinal; |
value used by SNMPv3 authorisation for synchronization with SNMP agent.
 |
property AuthKey: AnsiString; |
For SNMPv3. Computed Athorization key from Password.
For SNMPv3. Specify Authorization mode. (specify used hash for
authorization)
 |
property Community: AnsiString; |
Community string for autorize access to SNMP server. (Case sensitive!)
Community string is not used in SNMPv3! Use UserName and
Password instead!
 |
property ContextEngineID: AnsiString; |
For SNMPv3. If not specified, is used value from AuthEngineID
 |
property ContextName: AnsiString; |
For SNMPv3.
 |
property ErrorIndex: Integer; |
Point to error position in reply packet. Not usefull for users. It only
good for debugging!
 |
property ErrorStatus: Integer; |
When packet is reply, contains error code. Supported values are defined by
E* constants.
 |
property FlagReportable: Boolean; |
For SNMPv3.... If is True, SNMP agent must send reply (at least with some
error).
Specify if message is authorised or encrypted. Used only in SNMPv3, and
encryption is not yet supported!
 |
property ID: Integer; |
Contains ID number. Not need to use.
 |
property MaxRepetitions: Integer; |
special value for GetBulkRequest of SNMPv2 and v3.
 |
property MaxSize: Integer; |
Maximum message size in bytes for SNMPv3. For sending is default 1472 bytes.
 |
property NonRepeaters: Integer; |
special value for GetBulkRequest of SNMPv2 and v3.
 |
property OldTrapEnterprise: AnsiString; |
MIB value to identify the object that sent the TRAPv1.
 |
property OldTrapGen: Integer; |
Generic TRAPv1 identification.
 |
property OldTrapHost: AnsiString; |
Address of TRAPv1 sender (IP address).
 |
property OldTrapSpec: Integer; |
Specific TRAPv1 identification.
 |
property OldTrapTimeTicks: Integer; |
Number of 1/100th of seconds since last reboot or power up. (for TRAPv1)
 |
property Password: AnsiString; |
SNMPv3 authorization password
 |
property PDUType: Integer; |
Define type of SNMP operation.
 |
property PrivKey: AnsiString; |
For SNMPv3. Encryption key for message encryption. Not yet used!
 |
property SNMPMibList: TList; |
List of TSNMPMib objects.
 |
property UserName: AnsiString; |
SNMPv3 authorization username
 |
property Version: Integer; |
Version of SNMP packet. Default value is 0 (SNMP ver. 1). You can use
value 1 for SNMPv2c or value 3 for SNMPv3.
Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:19