Re: snmpd&/dev/null error

Xiang Li <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 么卤盲碌么拢卢芒赂枚
> 篓鹿媒禄煤玫潞炉媒枚碌陆碌拢禄路鲁毛赂碌录拢卢禄禄拢禄
>
> 陆录拢禄64宦好32宦堵悸幻÷趁睹芒赂枚芒拢禄
>
> /dev/null碌颅录么c
>
> cid:[email protected]
>
> 1.颅录碌snmpd盲录镁
>
> cid:[email protected]
>
> 3.赂snmpd录镁
>
> cid:[email protected]
>
> 4.赂潞贸么snmpd路镁(貌庐掳snmpd路镁甭猜⒚禄么露炉拢卢霉stoppingfailed碌)
>
> cid:[email protected]
>
> 5. 芒麓么snmpd路镁甭裁好煤碌戮拢卢虏垄禄卤篓麓铆
>
> cid:[email protected]
>
> 6. 么snmpd路镁甭好趁录镁么麓c 卤盲鲁s
>
> cid:[email protected]
>
> 7. 鹿媒禄禄谩露霉拢卢卢陆芒篓linux得sshll 眉陆帽路篓鹿拢卢虏垄鲁枚no
> such device /dev/null 碌卤篓麓铆
>
> cid:[email protected]
>
> 麓么snmp卤篓麓铆
>
> [root@squid ~]# service snmpd restart
>
> 拢鹿snmpd拢潞/etc/init.d/functions: line 273: /dev/null: 禄赂枚猫卤赂禄貌碌路
>
> /etc/init.d/functions: line 278: /dev/null: 禄 赂枚猫卤赂禄貌碌路
>
> [搂掳]
>
> 么露炉snmpd拢潞/bin/bash: /dev/null: 禄赂枚猫卤赂禄貌碌路
>
> [路露篓]
>
> 么得鲁卤篓麓铆拢潞
>
> reboot.png
>
> 陆芒戮枚掳矛路篓 rm 篓Crf /dev/null
>
> Mknod 篓Cm 666 c 1 3
>
> 毛禄拢卢snmpd -Lsd 篓CLf /var/log/snmpd.log /dev/null 篓Cp
> /var/run/snmpd.pid 篓Ca茂
>
> Lsd 毛Lf露录盲鲁枚戮拢卢好济赂枚snmpd.log禄谩 陆芦/dev/null 么卤盲碌么拢卢芒赂枚
> 篓鹿媒禄煤玫潞炉媒枚碌陆碌拢禄路鲁毛赂碌录拢卢禄禄拢禄
>
> ======================================================
>
> Zhang li
>
> Tel:13564143692
>
>
> ------------------------------------------------------------------------------
> 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

-- 
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.