 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Carlos Javier Amézquita C Guest
|
Posted: Wed Sep 17, 2003 2:51 pm Post subject: Delphi+SNMP ? |
|
|
Hi all,
Someone knows where can i found components, examples or demos about using
SNMP ?. If the components are free and with source code will be great !!!!
Thank's a lot.
Carlos Amézquita.
|
|
| Back to top |
|
 |
guitarz1@hotmail.com Guest
|
Posted: Wed Sep 17, 2003 2:56 pm Post subject: Re: Delphi+SNMP ? |
|
|
You can use Indy's SNMP component. However, I don't think the version
of Indy included with Delphi 6 had the SNMP component. You'll need
version 9.x of Indy, which you can download at
http://www.nevrona.com/indy
It comes with source code.
Carlos Javier Amézquita C. wrote:
| Quote: |
Hi all,
Someone knows where can i found components, examples or demos about using
SNMP ?. If the components are free and with source code will be great !!!!
Thank's a lot.
Carlos Amézquita.
|
|
|
| Back to top |
|
 |
Lukas Gebauer Guest
|
Posted: Thu Sep 18, 2003 8:31 am Post subject: Re: Delphi+SNMP ? |
|
|
[email]guitarz1 (AT) hotmail (DOT) com[/email] wrote:
| Quote: | You can use Indy's SNMP component. However, I don't think the version
of Indy included with Delphi 6 had the SNMP component. You'll need
version 9.x of Indy, which you can download at
http://www.nevrona.com/indy
It comes with source code.
|
Funny... Indy's SNMP is only old and buggy adaptatation of my SNMP code!
When you need much better SNMP code, then take look to my Synapse. ;-)
--
Lukas Gebauer.
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.
|
|
| Back to top |
|
 |
Ricardo de Oliveira Salda Guest
|
Posted: Thu Jan 08, 2004 6:21 pm Post subject: Re: Delphi+SNMP ? |
|
|
"guitarz1 (AT) hotmail (DOT) com" <guitarz1 (AT) hotmail (DOT) com> wrote:
| Quote: | You can use Indy's SNMP component. However, I don't think the version
of Indy included with Delphi 6 had the SNMP component. You'll need
version 9.x of Indy, which you can download at
http://www.nevrona.com/indy
It comes with source code.
Carlos Javier Amézquita C. wrote:
Hi all,
Someone knows where can i found components, examples or demos about using
SNMP ?. If the components are free and with source code will be great !!!!
Thank's a lot.
Carlos Amézquita.
Carlos, |
Here is a little code that I´m using to get snmp values. If you have more questions send an e-mail.
Begin
IdSNMP1.Active := TRUE;
WITH IdSNMP1.Query DO
begin
Host := '192.168.200.19';
Community := 'public';
Clear;
PDUType := PDUGetRequest;
MIBAdd('1.3.6.1.2.1.2.2.1.2','');
end;
if IdSNMP1.SendQuery then
MessageDlg(INTTOSTR(IdSNMP1.Reply.ValueCount)+#13+IdSNMP1.Reply.Value[0], mtWarning, [mbOK], 0)
else
MessageDlg('Fail', mtError, [mbOK], 0);
End;
|
|
| Back to top |
|
 |
Ricardo de Oliveira Salda Guest
|
Posted: Thu Jan 08, 2004 6:24 pm Post subject: Re: Delphi+SNMP ? |
|
|
"Ricardo de Oliveira Saldanha" <rosaldanha (AT) globo (DOT) com> wrote:
| Quote: |
"guitarz1 (AT) hotmail (DOT) com" <guitarz1 (AT) hotmail (DOT) com> wrote:
You can use Indy's SNMP component. However, I don't think the version
of Indy included with Delphi 6 had the SNMP component. You'll need
version 9.x of Indy, which you can download at
http://www.nevrona.com/indy
It comes with source code.
Carlos Javier Amézquita C. wrote:
Hi all,
Someone knows where can i found components, examples or demos about using
SNMP ?. If the components are free and with source code will be great !!!!
Thank's a lot.
Carlos Amézquita.
Carlos,
Here is a little code that I´m using to get snmp values. If you have more questions send an e-mail.
Begin
IdSNMP1.Active := TRUE;
WITH IdSNMP1.Query DO
begin
Host := '192.168.200.19';
Community := 'public';
Clear;
PDUType := PDUGetRequest;
MIBAdd('1.3.6.1.2.1.2.2.1.2','');
end;
if IdSNMP1.SendQuery then
MessageDlg(INTTOSTR(IdSNMP1.Reply.ValueCount)+#13+IdSNMP1.Reply.Value[0], mtWarning, [mbOK], 0)
else
MessageDlg('Fail', mtError, [mbOK], 0);
End;
Sorry the MIB ADDRESS IS WRONG. |
THIS WILL WORK FOR THIS TEST.
MIBAdd('1.3.6.1.2.1.1.1.0','');
NOTICE THAT THE OID DON´T HAVE THE FIRST POINT.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|