🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2910

IdSNMP - get ifPhysAddress

#2910
From: Alexander V. Fatykhov
Date: Tue, 10 Jan 2006 06:44
32 lines
1790 bytes
Hello, All! 


I can't get Physical adress of interface: 


  SNMP->Community = "..."; 
  SNMP->Host = "..."; 
  SNMP->Query->Clear(); 
  SNMP->Query->PDUType = PDUGetRequest; 
  SNMP->Query->MIBAdd("1.3.6.1.2.1.2.2.1.6.1",""); 
  SNMP->SendQuery(); 


  for ( int i = 0; i < SNMP->Reply->ValueCount; i++) 
    Memo1->Lines->Add(": " + SNMP->Reply->ValueOID[i] + " {" + 
                             SNMP->Reply->ValueType[i] + "} = " + 
                             SNMP->Reply->Value[i]); 


and I get nothing! (  1.3.6.1.2.1.2.2.1.6.1 {4} =  ) 


but if to see tcpdump output between server and client, there is response: 
12:42:02.916990 IP client.3167 > server.161:  GetRequest(27) 
.1.3.6.1.2.1.2.2.1.6.1[objVal!=NULL]"" 
12:42:02.918527 IP server.161 > client.3167:  GetResponse(33) 
.1.3.6.1.2.1.2.2.1.6.1=00_30_4f_09_23_09 


p.s.  BCB6.0 Indy10 
Technical Details
Message-ID: <43c365c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fb1930b5576e1e44,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alexander V. Fatykhov" <alex@ise-spb.org>
Sender: "Alexander V. Fatykhov" <alex@ise-spb.org>
Reply-To: "Alexander V. Fatykhov" <alex@ise-spb.org>
Subject: IdSNMP - get ifPhysAddress
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 84.204.57.164     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43c365c6$1@newsgroups.borland.com>
Date: 9 Jan 2006 23:44:06 -0700
X-Trace: newsgroups.borland.com 1136879046 207.105.83.66 (9 Jan 2006 23:44:06 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail