Thanks, Dave.
I thought about the unprintable characters, too; does it make sense that I
would get similar messages (except that they reference "memory") when using
--rwcommunity="prince" on the command line?
> What does the command
>
> sed -n 126p /etc/snmp/master/snmpd.conf | cat -vte
>
> display?
rwcommunity prince$
[In the snmpd.conf file, that line looks like: rwcommunity prince <-- no
$.]
>
> Also, how are you starting the agent?
> What's the exact command that you invoke?
>
Including the debug info, it looks like:
daemon /usr/sbin/snmpd -DALL -Lf /var/log/snmpdmaster.log $OPTIONS $IPADDR:161
where:
OPTIONS="-LS 3 d -Lf /dev/null -p /var/run/snmpdmaster -a -I smux"
and:
$IPADDR is the sole IP address over which I wish to accept SNMP requests.
Hmmm.... You may have hit on something here. I'm suspicious of that "-I
smux"; I added that months ago and I can't remember why. I think I was trying
to make it forget about all the MIBs it knows about (since I'm servicing them
another way).
- Paul
> Date: Mon, 14 Apr 2008 15:07:48 +0100
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: rwcommunity in snmpd.conf ignored by snmpd ("unknown token" in
> debug output)
> CC: [email protected]
>
> On 14/04/2008, Paul Cerqua <[EMAIL PROTECTED]> wrote:
> > The rwcommunity token is accessed twice by the snmpd master process; it
> > recognizes it the first time, but not the second time ("unknown token").
> > This is true whether or not I prefix rwcommunity with [snmpd]. Also, I
> > tried specifying the community via --rwcommunity="prince" and had the same
> > results.
>
> This is a bit of a long-shot, but it's worth checking whether there might
> be some non-printing characters in the config file, that are confusing
> the config parsing code.
>
> What does the command
>
> sed -n 126p /etc/snmp/master/snmpd.conf | cat -vte
>
> display?
>
> Also, how are you starting the agent?
> What's the exact command that you invoke?
>
> Dave
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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