NetSNMP with C++

Steve Filion Leroux <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAFLrtL=3UoqKokMtB7xA9XSHWK5a+sy15asvSty6awhh-erUXA@mail.gmail.com>
Hi,

i'm trying to code a little application that can manage a switch using
NETSNMP and C++. I can't create the session!

I define my session like this :

   snmp_sess_init( &session );

   session.retries = 5;
   session.timeout = 500000;
   session.version = SNMP_VERSION_2c;
   session.community = nom_community;
   session.community_len = strlen((char*)session.community);
   session.peername = ip_address;
   sess_handle = snmp_sess_open(&session);

The value of ip address is something like 192.160.1.100

The snmp_error always telling me unreachable host. But i can ping this ip
adress. Does i miss something ?

I try to look on the wiki but since all the page have no content it's hard
to found something :)

Thanks

-- 
Steve Filion Leroux
Intégrateur/Concepteur/Gestion info/ StatGolf
www.statgolf.ca

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.