RE: How to send an SNMP broadcast?
"Ron Rader" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <C88FF64CFD06EE4B91C5B89CD48379FE0DE1B8@dellserver.cipheroptics.com> |
> From: Reinhold Kainhofer [mailto:[email protected]] > > An alternative you might try is to derive your individual IP network > > broadcast address and see if that works. > Thanks for the hint, but that doesn't work either That's unfortunately also common. I guess that the net-snmp package isn't setting the "SO_BROADCAST" option in the underlying setsockopt() call? I just tried universal broadcast gets on a Linux and a Windows machine, but they also failed in sendto, e.g.: C:\>snmpget -v 2c -c public 192.168.1.208 system.sysName.0 SNMPv2-MIB::sysName.0 = STRING: CEP100_CEP1.6 C:\>snmpget -v 2c -c public 255.255.255.255 system.sysName.0 snmpget: Failure in sendto (Sub-id not found: (top) -> system) (No such file or directory) However, when I repeated the commands using the network broadcast address, snmpget on the Windows machine returned only the first: C:\>snmpget -v 2c -c public 192.168.63.255 system.sysName.0 SNMPv2-MIB::sysName.0 = STRING: Smoketest Terminals The network address still failed on the Linux machine, which seems to match what you're seeing. (I know for a fact there are many more SNMP agents on this network matching that community string so I'm not sure that using SNMP for device discovery is your best option.) 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