RE: How to send an SNMP broadcast?

"Ron Rader" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C88FF64CFD06EE4B91C5B89CD48379FE0DE1B1@dellserver.cipheroptics.com>
> From: Reinhold Kainhofer [mailto:[email protected]]

> get a permission denied, even as root:
> 
> root@einstein:~# snmpget -v 2c -c public 255.255.255.255
1.3.6.1.2.1.1.1.0
> \
>      1.3.6.1.2.1.1.2.0 1.3.6.1.2.1.2.2.1.6.1
> snmpget: Failure in sendto (Permission denied)

  This probably has nothing at all to do with net-snmp, but has
everything to do with the socket library in the system you're trying to
use to broadcast UDP packets.  It is fairly common to deny access to the
universal broadcast address, even when running as root.

  An alternative you might try is to derive your individual IP network
broadcast address and see if that works.  This can be determined
programmatically if need be, if you're running a Linux system try the
"ifconfig" command.

  Given your working example of 10.0.0.5, if using a subnet mask of
255.255.255.0, try the snmpget command to 10.0.0.255.

  Ron



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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.