On 09/03/07, nishant singh <[EMAIL PROTECTED]> wrote: > I have to get device information(Like its name and location) > using SNMP in c++ environment(In windows)... > Plz can anybody send me some sample codes in C++ regarding > how to create SNMP packets,send and How to get the information..
Please see the file 'apps/snmpstatus.c' That's probably the closest to your requirement. It retrieves the system description and various other information rather than the name and location. But the basic idea is the same. You'll just have to request different OIDs. Note that this is C code rather than C++, since the Net-SNMP project is a C-based library, etc. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
