Here is my code:

 

procedure TForm1.Button2Click(Sender: TObject);

var

  s:AnSistring;

  OID: string;

begin

  s := '';

  OID := '1.3.6.1.2.1.1.1.0';

 

  if SNMPSet(OID, 'public', '127.0.0.1', '18', ASN1_OCTSTR) then

    if SNMPGet(OID, 'public', '127.0.0.1', s) then

      Label8.Caption := s

End;

 

I have set the Community rights to be "READ WRITE" and nothing is set to
the OID. 

Did I do anything wrong?

 

How can I write a value to an OID?

 

Thanks!

Shawn 

 

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to