Re: 答复: snmpd&/dev/null error

Xiang Li <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I think I already answered your question. But here I am willing to try
one more time.

the way you specified the command:

snmpd -Lsd 篓CLf /var/log/snmpd.log /dev/null

This causes the snmpd argument parser to take "/dev/null" as the
"listening address". Normally you would be specifying something like
192.168.2.1:161. But since you used /dev/null at that place, the parser
would treat it as an "Unix domain socket" and try to open it. While it
is trying to open it it changed its permission from character device
(you saw a'c' before) into an unix domain socket (you saw a 's' after).
In your words /dev/null "录镁么麓c 卤盲鲁s".

The snmpd argument parser assumes the listening address is an Unix
domain if the first character of the <transport-address> is '/'.

I suggest you simply remove /dev/null from your config.

Xiang



On 6/3/2011 8:47 PM, 貌|li.zhang wrote:
>
> Dear li:
>
> Thanks for your help;
>
> I already know;snmpd -Lsd 篓CLf /var/log/snmpd.log /dev/null is wrong;
> but the / dev / null attributes to change; I do not understand what is
> advanced through the command or function to / dev / null change, I
> want to know the reason; If you can not be answered here, I trouble
> you to reflect the higher engineers deep problems; for that; Thank you;
>
> Thank you
>
>
>  
> _______________________________________________
> Net-snmp-users mailing list
> [email protected] <mailto:[email protected]>
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
> -- 
> 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
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.