Re: problem with snmpbulkget
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On 14 July 2010 12:47, Martin Townsend <[email protected]> wrote:
> I was hoping to use GETBULK to retrieve various battery measurements from a
> rectifier block using a getbulk message so that the measurements are read as
> close together as possible. As it turns out the rectifier block doesn't
> seem to respond to GETBULK commands even though it's supposed to support
> version 2C of the SNMP spec. Just to make sure I understand, if GETBULK
> worked I would have to use
>
> snmpbulkget -v2c -Cn2 -Cr0 -c public 192.168.1.11 batteryVoltage batteryCurrent
>
> to get the voltage and current for instance 0
If you are setting the number of repetitions to 0, then this is
exactly equivalent
to a GETNEXT request.
Why not simply use
snmpgetnext -c public 192.168.1.11 batteryVoltage batteryCurrent
to retrieve the first pair of values?
(Which would work with both SNMPv1 or SNMPv2c).
Or if you know the index values that you are interested in,
snmpget -c public 192.168.1.11 batteryVoltage.0 batteryCurrent.0
The whole point of BULKGET is to retrieve *multiple* rows with a
single command (using a non-zero value for -Cr)
Dave
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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