On Wed, Jun 21, 2017 at 6:28 AM, Guru Prasad <gp22onl...@gmail.com> wrote:
> Hi All,
>
> Using netsnmp-5.7.3 in a debian machine.
> I am trying to run snmpget on the network's broadcast address so as to get
> all
> the snmp agents in my network. But i could not get the response of the
> snmp agents at once. It gives the information of one snmp agent at a time
>
> snmpget -v2c -c public <192.168.1.25> 1.3.6.1.2.1.1.1.0
>
> Actually i have two snmp agents in my network.
> But getting only one agent's info at a time
>
> SNMPv2-MIB::sysDescr.0 = STRING: Linux Debian-64 bit
>
> Running the above snmpget command after few seconds gives
>
> SNMPv2-MIB::sysDescr.0 = STRING: Linux Ubuntu-32 bit
>
> But what i expect is
> snmpget -v2c -c public <192.168.1.25> 1.3.6.1.2.1.1.1.0 should give the
> following output
>
> SNMPv2-MIB::sysDescr.0 = STRING: Linux Debian-64 bit (192.168.1.10)
> SNMPv2-MIB::sysDescr.0 = STRING: Linux Ubuntu-32 bit (192.168.1.15)
>
> Why snmpget is not giving the output of all snmp agents at once?
>
snmpget is written to communicate with a single agent at once, and uses an
API that sends a single request and waits for a single reply. The handling
of responses to a broadcast request would have to be handled differently,
waiting to gather responses from multiple agents.
The feature request for this different program is here:
https://sourceforge.net/p/net-snmp/feature-requests/18/
An alternative that teaches snmpget about ranges to query is here:
https://sourceforge.net/p/net-snmp/patches/505/
Bill
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users