| View previous topic :: View next topic |
| Author |
Message |
Fernando Moreira Guest
|
Posted: Mon Sep 12, 2005 2:07 pm Post subject: TIdSnmp |
|
|
Hi.
Anyone have experience in developing SNMP applications using TIdSnmp
component ?
For more details:
I am trying obtain information from a public community in router (Cyclades
PR-1000).
Thanks.
Fernando Moreira
|
|
| Back to top |
|
 |
Brad Prendergast Guest
|
Posted: Mon Sep 12, 2005 2:30 pm Post subject: Re: TIdSnmp |
|
|
This should get you started in the right direction.
IdSNMP1.Community:= 'public';
IdSNMP1.Host:= '127.0.0.1';
IdSNMP1.Active := true;
IdSNMP1.Query.Clear;
IdSNMP1.Query.Port:=161;
idsnmp1.Query.MIBAdd('1.3.6.1.2.1.25.6.3.1.5.111',''); //enter your oid
here
IdSNMP1.Query.PDUType := PDUGetRequest; //PDUGetNextRequest for WALK
if idSNMP1.SendQuery then
for i := 0 to IdSNMP1.Reply.ValueCount - 1 do
memo1.lines.Add(Format('Value: %s',[IdSNMP1.Reply.Value[i]])
IdSNMP1.Active := false;
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brad Prendergast
"There's a fine line between genius and insanity. I have erased this
line." -- Oscar Levant (1906 - 1972)
"Fernando Moreira" <kernel_pa (AT) yahoo (DOT) com.br> wrote
| Quote: | Hi.
Anyone have experience in developing SNMP applications using TIdSnmp
component ?
For more details:
I am trying obtain information from a public community in router (Cyclades
PR-1000).
Thanks.
Fernando Moreira
|
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Mon Sep 12, 2005 7:55 pm Post subject: Re: TIdSnmp |
|
|
Fernando Moreira wrote:
| Quote: | Hi.
Anyone have experience in developing SNMP applications using TIdSnmp
component ?
|
See http://www.flogas.ie/indy/indysnmpetc.html
Ciaran
|
|
| Back to top |
|
 |
|