Ich habe ein einfaches Beispiel um eine Hardware mit SNMPv2 mit snmpsend von Synapse abzufragen.
Das funktioniert soweit auch ganz gut.
Code: Alles auswählen
uses
[...], snmpsend;
procedure TForm1.Button3Click(Sender: TObject);
var response : String;
SNMPResult : Boolean;
oid : string;
begin
repeat
oid:=OIDLabeledEdit.Text;
SNMPResult := SNMPGetNext(oid, CommunityLabeledEdit.Text, IPLabeledEdit.Text, response);
memo1.Lines.Add(response);
until not SNMPResult;
end;
Wenn ich die Hilfe ansehe (http://synapse.ararat.cz/doc/help/snmpsend.html) dann müßte es irgendwie funktionieren,
da verschiedene Konstanten und Variablen für SNMPv3 vorhanden sind.
Im Quelltext von snmpsend.pas werde ich auch nicht schlauer. Dort heißt es z.B.:
Code: Alles auswählen
{:For SNMPv3. Specify Authorization mode. (specify used hash for
authorization)}
property AuthMode: TV3Auth read FAuthMode write FAuthMode;
{:For SNMPv3. Specify Privacy mode.}
property PrivMode: TV3Priv read FPrivMode write FPrivMode;
{:SNMPv3 authorization username}
property UserName: AnsiString read FUserName write FUserName;
{:SNMPv3 authorization password}
property Password: AnsiString read FPassword write FPassword;
{:For SNMPv3. Computed Athorization key from @link(password).}
property AuthKey: AnsiString read FAuthKey write FAuthKey;
{:SNMPv3 privacy password}
property PrivPassword: AnsiString read FPrivPassword write FPrivPassword;
{:For SNMPv3. Computed Privacy key from @link(PrivPassword).}
property PrivKey: AnsiString read FPrivKey write FPrivKey;
Gruß
Michael