Class TSNMPRec

DescriptionHierarchyFieldsMethodsProperties

Unit

snmpsend

Declaration

type TSNMPRec = class(TObject)

Description

Data object abstracts SNMP data packet

Hierarchy

TSNMPRec > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public procedure Clear;
Public function DecodeBuf(const Buffer: AnsiString): Boolean;
Public function EncodeBuf: AnsiString;
Public procedure MIBAdd(const MIB, Value: AnsiString; ValueType: Integer);
Public function MIBByIndex(Index: Integer): TSNMPMib;
Public function MIBCount: integer;
Public procedure MIBDelete(Index: Integer);
Public function MIBGet(const MIB: AnsiString): AnsiString;

Description

Public procedure Clear;

Clears all object properties to default values.

Public constructor Create;

 

Public function DecodeBuf(const Buffer: AnsiString): Boolean;

Decode SNMP packet in buffer to object properties.

Public destructor Destroy; override;

 

Public function EncodeBuf: AnsiString;

Encode obeject properties to SNMP packet.

Public procedure MIBAdd(const MIB, Value: AnsiString; ValueType: Integer);

Add entry to SNMPMibList. For queries use value as empty string, and ValueType as ASN1_NULL.

Public function MIBByIndex(Index: Integer): TSNMPMib;

Return MIB information from given row of MIB array.

Public function MIBCount: integer;

return number of entries in MIB array.

Public procedure MIBDelete(Index: Integer);

Delete entry from SNMPMibList.

Public function MIBGet(const MIB: AnsiString): AnsiString;

Search SNMPMibList list for MIB and return correspond value.

Properties

Overview

Published property AuthEngineBoots: Integer;
Published property AuthEngineID: AnsiString;
Published property AuthEngineTime: Integer;
Published property AuthEngineTimeStamp: Cardinal;
Published property AuthKey: AnsiString;
Published property AuthMode: TV3Auth;
Published property Community: AnsiString;
Published property ContextEngineID: AnsiString;
Published property ContextName: AnsiString;
Published property ErrorIndex: Integer;
Published property ErrorStatus: Integer;
Published property FlagReportable: Boolean;
Published property Flags: TV3Flags;
Published property ID: Integer;
Published property MaxRepetitions: Integer;
Published property MaxSize: Integer;
Published property NonRepeaters: Integer;
Published property OldTrapEnterprise: AnsiString;
Published property OldTrapGen: Integer;
Published property OldTrapHost: AnsiString;
Published property OldTrapSpec: Integer;
Published property OldTrapTimeTicks: Integer;
Published property Password: AnsiString;
Published property PDUType: Integer;
Published property PrivKey: AnsiString;
Public property SNMPMibList: TList;
Published property UserName: AnsiString;
Published property Version: Integer;

Description

Published property AuthEngineBoots: Integer;

value used by SNMPv3 authorisation for synchronization with SNMP agent.

Published property AuthEngineID: AnsiString;

value used by SNMPv3 authorisation for synchronization with SNMP agent.

Published property AuthEngineTime: Integer;

value used by SNMPv3 authorisation for synchronization with SNMP agent.

Published property AuthEngineTimeStamp: Cardinal;

value used by SNMPv3 authorisation for synchronization with SNMP agent.

Published property AuthKey: AnsiString;

For SNMPv3. Computed Athorization key from Password.

Published property AuthMode: TV3Auth;

For SNMPv3. Specify Authorization mode. (specify used hash for authorization)

Published 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!

Published property ContextEngineID: AnsiString;

For SNMPv3. If not specified, is used value from AuthEngineID

Published property ContextName: AnsiString;

For SNMPv3.

Published property ErrorIndex: Integer;

Point to error position in reply packet. Not usefull for users. It only good for debugging!

Published property ErrorStatus: Integer;

When packet is reply, contains error code. Supported values are defined by E* constants.

Published property FlagReportable: Boolean;

For SNMPv3.... If is True, SNMP agent must send reply (at least with some error).

Published property Flags: TV3Flags;

Specify if message is authorised or encrypted. Used only in SNMPv3, and encryption is not yet supported!

Published property ID: Integer;

Contains ID number. Not need to use.

Published property MaxRepetitions: Integer;

special value for GetBulkRequest of SNMPv2 and v3.

Published property MaxSize: Integer;

Maximum message size in bytes for SNMPv3. For sending is default 1472 bytes.

Published property NonRepeaters: Integer;

special value for GetBulkRequest of SNMPv2 and v3.

Published property OldTrapEnterprise: AnsiString;

MIB value to identify the object that sent the TRAPv1.

Published property OldTrapGen: Integer;

Generic TRAPv1 identification.

Published property OldTrapHost: AnsiString;

Address of TRAPv1 sender (IP address).

Published property OldTrapSpec: Integer;

Specific TRAPv1 identification.

Published property OldTrapTimeTicks: Integer;

Number of 1/100th of seconds since last reboot or power up. (for TRAPv1)

Published property Password: AnsiString;

SNMPv3 authorization password

Published property PDUType: Integer;

Define type of SNMP operation.

Published property PrivKey: AnsiString;

For SNMPv3. Encryption key for message encryption. Not yet used!

Public property SNMPMibList: TList;

List of TSNMPMib objects.

Published property UserName: AnsiString;

SNMPv3 authorization username

Published 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