Re: Sending informs from a specific ip address

Glenn McAllister <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization SOMA Networks, Inc.
Message-ID <[email protected]>
Dave Shield wrote:
> 2008/10/21 Glenn McAllister <[email protected]>:
>> Heres the problem.  The snmpd.conf file is being processed before
>> snmp.conf.  Since snmp.conf hasn't been read yet, the value for
>> clientaddr is NULL when we are processing the trapsess directives,
>> resulting in the socket binding to INADDR_ANY.
> 
> What happens if you embed the 'clientaddr' directive within the
> snmpd.conf file?
> i.e. something like
> 
>     rwuser userblah
>     agentaddress localhost:161,192.168.222.5:161
> 
>     [snmp]
>     clientaddr 192.168.222.5
> 
>     [snmpd]
>     trapsess -v 3 -u userblah .....
> 
> 
> A quick test seems to indicate that this will process the clientaddr
> directive first, as required.
> 
> Dave

And if I'd read 'man read_config' I would have seen that and saved 
myself several hours of convoluted debugging...

And that works beautifully.  Informs are coming off the box with the 
correct source address.  Thanks Dave, I appreciate the help.

-- 
Glenn McAllister     <[email protected]>      +1 416 348 1594
SOMA Networks, Inc.  http://www.somanetworks.com/  +1 416 977 1414

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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.