# Are raw SNMP GET's supported

**URL:** <https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912>\
**Category:** The Dude\
**Created:** [January 17, 2009, 3:51pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912 "2009-01-17T15:51:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewgroup](https://forum.mikrotik.com/letter_avatar/andrewgroup/32/6_449c533f586939b6e5f246632a46421f.png) [@andrewgroup](https://forum.mikrotik.com/u/andrewgroup)\
**Post date:** [January 17, 2009, 3:51pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/1 "2009-01-17T15:51:54Z")

</div>

New to MikroTik and Dude, and all is good but can’t get over my last hurdle. Can Dude support a direct SNMP Get Command?

If, not and this requires a compiled MIB imported into Dude, what tool(s) would you recommend that can create a MIB so that we can pull this data from our PBX snmp interface?

Here is a working batch file and the results it gets from the VoIP PBX software we support.

;sample batch file to get all WIKI variables  
;Call Objects Yes Calls  
;Registrations Yes Registrations  
;Messages Yes Minutes  
;Call Attempts No Calls  
;Successful Calls No Calls  
;Media CPU load Yes Value 0..100  
;Successful Emails No Emails  
;Unsuccessful Emails No Emails  
;Email Alert Flag Yes Value 0..1  
;SIP Received Packets No Packets  
;SIP Sent Packets No Packets  
;  
;  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.1  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.2  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.3  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.4  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.5  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.6  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.7  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.8  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.9  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.10  
SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.11

**The above batch file results in the following outputs**

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.1  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.1  
Value = Integer32 0

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.2  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.2  
Value = Integer32 14

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.3  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.3  
Value = Integer32 41

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.4  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.4  
Value = Integer32 28

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.5  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.5  
Value = Integer32 224

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.6  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.6  
Value = Integer32 0

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.7  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.7  
Value = Integer32 99

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.8  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.8  
Value = Integer32 0

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.9  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.9  
Value = Integer32 0

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.10  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.10  
Value = Integer32 349306

C:\SNMP\>SNMPUTIL.EXE get [pbx.yourdomain.com](http://pbx.yourdomain.com) public .1.3.6.1.4.1.25060.1.11  
Variable = .iso.org.dod.internet.private.enterprises.25060.1.11  
Value = Integer32 349387

---

<div class="post-metadata">

**Author:** ![pjulian](https://forum.mikrotik.com/letter_avatar/pjulian/32/6_449c533f586939b6e5f246632a46421f.png) [@pjulian](https://forum.mikrotik.com/u/pjulian)\
**Post date:** [January 17, 2009, 4:48pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/2 "2009-01-17T16:48:02Z")

</div>

Yes, just setup the device in The Dude, then setup SNMP parameters for it, then use tools/SNMPWalk and locate the OID for the item you want to monitor, then right click on it and select Create Probe.

Once you have created the probe, add it in the services tab of the device, then you can monitor it and graph the results if you like.

Regards  
Paul

---

<div class="post-metadata">

**Author:** ![andrewgroup](https://forum.mikrotik.com/letter_avatar/andrewgroup/32/6_449c533f586939b6e5f246632a46421f.png) [@andrewgroup](https://forum.mikrotik.com/u/andrewgroup)\
**Post date:** [January 17, 2009, 6:50pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/3 "2009-01-17T18:50:59Z")

</div>

The PBX does not support SNMPWALK - All queries must be GETS - Does this change the process?

---

<div class="post-metadata">

**Author:** ![pjulian](https://forum.mikrotik.com/letter_avatar/pjulian/32/6_449c533f586939b6e5f246632a46421f.png) [@pjulian](https://forum.mikrotik.com/u/pjulian)\
**Post date:** [January 17, 2009, 10:39pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/4 "2009-01-17T22:39:58Z")

</div>

Not if you already know the OID, just create an SNMP probe and put the OID in there  
SNMPWalk just makes the process of creating a SNMP probe easier.

Regards  
Paul

---

<div class="post-metadata">

**Author:** ![JayC](https://forum.mikrotik.com/letter_avatar/jayc/32/6_449c533f586939b6e5f246632a46421f.png) [@JayC](https://forum.mikrotik.com/u/JayC)\
**Post date:** [February 12, 2009, 11:02pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/5 "2009-02-12T23:02:35Z")

</div>

> [@pjulian](#):
>
> Not if you already know the OID, just create an SNMP probe and put the OID in there  
> SNMPWalk just makes the process of creating a SNMP probe easier.  
> Regards Paul

Thanks very much, I have been puzzling how to add SNMP polls to The Dude for a lon time now, and your hints got me over the top.

Now I am faced with a new problem, and perhaps it is my expectations of what The Dude does that is at fault.

The particular problem that I have is monitoring the power subsystems at a remote site, I have an SNMP enabled device (SiteRat) that allows me to monitor Solar Power, Wind Power, Load Power (all are current measurements taken from a shunt) and Battery voltage.

What I want to do is collect and graph the values with SNMP, and stuff the polled values into a MySQL database. I had thought that with the dude I would be alble to poll the values out by OID, and that The Dude would graph the retrieved value for me.

However now that I have it working it appears that what The Dude plots on the graph is not the value of the OID, but the time it took to service the request.

I guess my question is if it is possible to retrieve and plot OID values with The Dude, I have another package that does this for me, but I had hoped to do it with the Dude so I would not have to run two pacakges (I use the dude for other monitoring purposes on this application as well as SNMP)

Thanks in advance for any hints, pointers, or Ideas

jayr

[jayc@vegas-wireless.com](mailto:jayc@vegas-wireless.com)

---

<div class="post-metadata">

**Author:** ![adamd292](https://forum.mikrotik.com/letter_avatar/adamd292/32/6_449c533f586939b6e5f246632a46421f.png) [@adamd292](https://forum.mikrotik.com/u/adamd292)\
**Post date:** [February 12, 2009, 11:46pm UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/6 "2009-02-12T23:46:57Z")

</div>

As you’ve found **SNMP** probes can only be graphed as the time taken to retrieve their value.  
I’ve found they’re useful for:

- automatic identification of devices; and
- checking whether the SNMP daemon is running; and
- checking whether a status is ok.

If you want to collect data and graph it, you probably need a **Function** probe:  
 ![function_probe.PNG](https://data-discourse.cdn.mikrotik.com/original/2X/1/180afee80137262066dc87307ce62c67a8424852.png)  
There is a large number of these posted to the Probe Thread  
[http://forum.mikrotik.com/t/probe-thread/10321/1](http://forum.mikrotik.com/t/probe-thread/10321/1)

---

<div class="post-metadata">

**Author:** ![Razor73](https://forum.mikrotik.com/letter_avatar/razor73/32/6_449c533f586939b6e5f246632a46421f.png) [@Razor73](https://forum.mikrotik.com/u/Razor73)\
**Post date:** [April 2, 2009, 4:50am UTC](https://forum.mikrotik.com/t/are-raw-snmp-gets-supported/25912/7 "2009-04-02T04:50:50Z")

</div>

> [@adamd292](#):
>
> As you’ve found **SNMP** probes can only be graphed as the time taken to retrieve their value.  
> I’ve found they’re useful for:
> 
> - automatic identification of devices; and
> - checking whether the SNMP daemon is running; and
> - checking whether a status is ok.
> 
> If you want to collect data and graph it, you probably need a **Function** probe:  
> There is a large number of these posted to the Probe Thread  
> [http://forum.mikrotik.com/t/probe-thread/10321/1](http://forum.mikrotik.com/t/probe-thread/10321/1)

thanks for this i try it and it works thanks for this and more power.`

* * *

[IP PBX](http://www.inin.com/ProductSolutions/Pages/Enterprise-IP-Telephony.aspx/)
