> I am using the snmpsend portion of Synapse to access and read data
> from APC PowerNet PDUs.  I can get my program to connect (or so it
> seems), but I do not see any data that the program is supposed to be
> pulling from the PDU.  I was wondering if anyone had any examples of
> using the snmpsend code in Synapse to get information from a PDU?

What OID you are trying to read? Synapse supports only numbered OIDs, 
not symblic names. So, you first must know IOD numebr for 
information, what you wish to know.

Then you can start to asking by SNMP.

sample:

procedure TForm1.Button69Click(Sender: TObject);
var
  snmp: tsnmpsend;
  oid: string;
begin
  snmp:=tsnmpsend.Create;
  try
    SNMP.Query.Community:='public';
    oid := '1.3.6.1.2.1.1.1.0';
    SNMP.Query.PDUType := PDUGetRequest;
    SNMP.Query.MIBAdd(Oid, '', ASN1_NULL);
    SNMP.targetHost := 'your.server.com';
    if SNMP.DoIt then
      begin
        memo1.Lines.Add(SNMP.Reply.MIBGet(Oid));
      end;
    memo1.Lines.Add(asndump(SNMP.Buffer));
  finally
    snmp.Free;
  end;
end;



-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to