resending because message was rejected because message size.

--deleted screen-shots---

Fortunately the list administrator did not delete your message as spam
because most of list members would not be able to read Chinese:)
If you look at the SYNOPSIS of snmpd:
snmpd [OPTIONS] [LISTENING ADDRESSES]

The "-Lf" option is only supposed to be followed by a single file. If
you use "snmpd -Lsd �CLf /var/log/snmpd.log /dev/null" then my guess is
that snmpd thinks the [OPTIONS] part has ended after "-Lf
/var/log/snmpd.log" and consider whatever follows as [Listening
Address]. In your case the listening address would be "/dev/null". Since
the Unix domain is assumed if the first character of the
<LISTENING-address> is '/', and you were running snmpd as root so it can
do anything, including changing /dev/null from character device into an
unix domain socket.

Thanks
Xiang

>
>
> On 6/2/2011 11:21 PM, 张莉|li.zhang wrote:
>>
>> 请问一下,snmpd -Lsd �CLf /var/log/snmpd.log /dev/null �Cp
>> /var/run/snmpd.pid �Ca里
>>
>> Lsd 与Lf都是输出日志,为何加了个snmpd.log会 将/dev/null 属性变掉,这
>> 个是通过哪种机制哪条函数做到的呢;烦请指导,谢谢;
>>
>> 再次重启snmp报以下错
>>
>
> -- 
> Xiang Li
> http://www.champnms.com

-- 
Xiang Li
http://www.champnms.com

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
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

Reply via email to