Bluehost.com Web Hosting $6.95

Re: Community string field in netsnmp-session structure getting

This is a discussion on Re: Community string field in netsnmp-session structure getting within the SNMP Users forums, part of the Networking and Network Related category; On Wed, Mar 26, 2008 at 05:57:54PM +0530, singh.srajendra@wipro.com wrote: > Hi all, > I ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-26-2008
Roy M. Silvernail
 
Posts: n/a
Default Re: Community string field in netsnmp-session structure getting

On Wed, Mar 26, 2008 at 05:57:54PM +0530, singh.srajendra@wipro.com wrote:
> Hi all,
> I am calling snmp_open(&session) in a C++ function. Before passing
> session variable to snmp_open I have initialized it properly
> with the value of peer name , version , community string. But if I print
> it inside snmp_open() I am getting NULL for community string
> field but for others ie version and peername I am getting the proper
> value. Can you please think of something which I might be doing
> incorrectly ? Thank you for your valuable time.


Did you remember to set the session.community_len member to the length
of the community string?
--
Roy M. Silvernail is roy@rant-central.com, and you're not
"A desperate disease requires a dangerous remedy."
- Guy Fawkes
http://www.rant-central.com


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216...et/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0