From: "Nicolás Brailovsky" Date: 2009-10-02T04:04:41+09:00 Subject: Re: Problems with SNMP --0016365ee5ae2b2c390474e43eea Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2009/10/1 Rocir Santiago > When I run the code that I sent, the output is: > > __ > 1 Ethernet Port on unit 1, port 1 4470 89926 >Exit code: 0 > __ > > At the first interation, it just exits when try to print the > ifPhysAddress information. > > All logic says it either throws an exception or finishes correctly. It may be the lib you use is not throwing when it should but I'm not familiar with the SNMP lib you're using. Where did you get the identifier "ifPhysAddress"= ? Did you define its OID somewhere? > About the switch, do you have any idea how can I "test" it? Use snmpget, snmpwalk and snmpbulk* from libnetsnmp utils. > You told me > to use snmpget but it requires an OID. I don't know how can I discover > what OID I can use. > ifPhysAddress is just a user friendly name of a numerical OID (in the form of 1.3.6.1...). Check the link I posted before, you can find a lot of OIDs there. > > I'm really new with SNMP and I just need that functionality in my app, > because of that I'mhaving some problems. > I'd recomend reading some RFCs and manuals, get used to the protocol and they way it works and then write an application using it, not otherwise. Regards --=20 Nicol=E1s Brailovsky - http://nicolasb.com.ar/ --0016365ee5ae2b2c390474e43eea--