SNMP

Started by "S S...@gmail.com [rabbit-semi]" November 16, 2017
i will read a value from a device through SNMP. How can I read its
value based on OID?
Thanks
Stev


href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank"> src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/>
Virus-free. href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" style="color: #4453ea;">www.avg.com
height="1">


Posted by: S Sutikno



You’ll need to learn the SNMP protocol by reading the RFCs and write an SNMP client.

You might be able to use Wireshark to get a packet capture of another program sending the GET, and then write your own code to send a similar byte stream. But you’ll need to figure out how to decode the response.

Look at the existing SNMP server code, since you might be able to use pieces of it for encoding and decoding packets.

But confirm which version of SNMP your target device uses. I think the SNMP library in Dynamic C was using SNMPv1 which is an older version of the protocol.

-Tom
> On Nov 15, 2017, at 10:58 PM, S Sutikno s...@gmail.com [rabbit-semi] wrote:
>
> i will read a value from a device through SNMP. How can I read its
> value based on OID?
> Thanks
> Stev
You will need to create a MIB file and import that file into a MIB Browser. iReasoning (www.ireasoning.com)  has a free browser you can download.
The SNMP version used by Rabbit is v1. 
On Wednesday, November 15, 2017, 10:58:51 PM PST, S Sutikno s...@gmail.com [rabbit-semi] wrote:

 
i will read a value from a device through SNMP. How can I read its
value based on OID?
Thanks
Stev


href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank"> src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/>
Virus-free. href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" style="color: #4453ea;">www.avg.com
height="1">
Does anyone have snmp clien lib? Can I buy a license?


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Nov 25, 2017 at 5:04 AM, Steve Trigero s...@yahoo.com
[rabbit-semi] wrote:

> You will need to create a MIB file and import that file into a MIB
> Browser. iReasoning (www.ireasoning.com) has a
> free browser you can download.
>
> The SNMP version used by Rabbit is v1.
>
> On Wednesday, November 15, 2017, 10:58:51 PM PST, S Sutikno
> s...@gmail.com [rabbit-semi] wrote:
> i will read a value from a device through SNMP. How can I read its
> value based on OID?
> Thanks
> Stev


>
> href="http://www.avg.com/email-signature?utm_medium> email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
> target="_blank"> > src="https://ipmcdn.avast.com/images/icons/icon-envelope-
> tick-green-avg-v1.png"
> alt="" width="46" height="29" style="width: 46px; height: 29px;"
> />
Virus-free. > href="http://www.avg.com/email-signature?utm_medium> email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
> target="_blank" style="color: #4453ea;">www.avg.com
>
> height="1">
You can buy it from Digi.com.

On ‎Sunday‎, ‎November‎ ‎26‎, ‎2017‎ ‎10‎:‎54‎:‎14‎ ‎PM, S Sutikno s...@gmail.com [rabbit-semi] wrote:

 

Does anyone have snmp clien lib? Can I buy a license?
| | Virus-free. www.avg.com |
On Sat, Nov 25, 2017 at 5:04 AM, Steve Trigero s...@yahoo.com [rabbit-semi] wrote:

 

You will need to create a MIB file and import that file into a MIB Browser. iReasoning (www.ireasoning.com)  has a free browser you can download.
The SNMP version used by Rabbit is v1. 
On Wednesday, November 15, 2017, 10:58:51 PM PST, S Sutikno s...@gmail.com [rabbit-semi] wrote:

 
i will read a value from a device through SNMP. How can I read its
value based on OID?
Thanks
Stev


href="http://www.avg.com/ email-signature?utm_medium= email&utm_source=link&utm_ campaign=sig-email&utm_ content=webmail"
target="_blank"> src="https://ipmcdn.avast.com/ images/icons/icon-envelope- tick-green-avg-v1.png"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/>
Virus-free. href="http://www.avg.com/ email-signature?utm_medium= email&utm_source=link&utm_ campaign=sig-email&utm_ content=webmail"
target="_blank" style="color: #4453ea;">www.avg.com
height="1">
Digi’s SNMP library was bundled into both Dynamic C 9.62 and Dynamic C 10.72, but I’m pretty sure it only supports SNMP server mode (responding to requests).

-Tom
> On Nov 27, 2017, at 8:17 AM, Steve Trigero s...@yahoo.com [rabbit-semi] wrote:
> You can buy it from Digi.com .
>
> On ‎Sunday‎, ‎November‎ ‎26‎, ‎2017‎ ‎10‎:‎54‎:‎14‎ ‎PM, S Sutikno s...@gmail.com [rabbit-semi] > wrote:
>
>
> Does anyone have snmp clien lib? Can I buy a license?
>
Before bundled into DC, i'm already buy. But like Tom said only server mode.
Now i need client mode.

On Mon, Nov 27, 2017 at 11:20 PM, Tom Collins t...@tomlogic.com
[rabbit-semi] wrote:

> Digi’s SNMP library was bundled into both Dynamic C 9.62 and Dynamic C
> 10.72, but I’m pretty sure it only supports SNMP server mode (responding to
> requests).
>
> -Tom
> On Nov 27, 2017, at 8:17 AM, Steve Trigero s...@yahoo.com
> [rabbit-semi] wrote:
> You can buy it from Digi.com .
>
> On ‎Sunday‎, ‎November‎ ‎26‎, ‎2017‎ ‎10‎:‎54‎:‎14‎ ‎PM, S Sutikno
> s...@gmail.com [rabbit-semi] wrote:
> Does anyone have snmp clien lib? Can I buy a license?