SNMP专题(100分)

  • 主题发起人 wrnxd168
  • 开始时间
W

wrnxd168

Unregistered / Unconfirmed
GUEST, unregistred user!
开发过SNMP的朋友请献上你们的代码,让这里成为SNMP的资料宝地
使用indy snmp 组件实现get getnext
function TForm1.GetRequest(oid:string): boolean;
begin
with idsnmp1do
begin
Community := edtCommStr.text;
Host := edtHost.Text;
active:=True;
Query.Clear;
Query.PDUType:=PDUGetRequest;
Query.MIBAdd(oid,'');
{Do not Localize}
result:= SendQuery;
active:=False;
end;
function TForm1.GetNextRequest(oid:string): boolean;
begin

with idsnmp1do
begin
Community := edtCommStr.text;
Host := edtHost.Text;
active:=True;
Query.Clear;
Query.PDUType:=PDUGetNextRequest;
Query.MIBAdd(oid,'');
{Do not Localize}
result:= SendQuery;
active:=False;
end;
end;
 

Similar threads

I
回复
0
查看
564
import
I
I
回复
0
查看
509
import
I
I
回复
0
查看
488
import
I
顶部