# Node-snmp error

**URL:** <https://discourse.nodered.org/t/node-snmp-error/67633>\
**Category:** General\
**Created:** [13 September 2022 03:14 UTC](https://discourse.nodered.org/t/node-snmp-error/67633 "2022-09-13T03:14:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonkers71](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonkers71/32/59714_2.png) [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Post date:** [13 September 2022 03:14 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/1 "2022-09-13T03:14:39Z")

</div>

Hi all. Trying to use node-red-node-snmp on an Opto22 groov RIO.

when if i try snmp walk node-red just restarts and if i try to get just one OID i get the following.

```auto
13‎/‎09‎/‎2022‎ ‎12‎:‎59‎:‎40‎ ‎PM[node: eebcb0f2cc29320d](https://192.168.31.85/node-red/#)msg.payload : array[1]

array[1]

0: object

oid: "1.3.6.1.4.1.39145.10.6"

type: 128

value: null

_error: "NoSuchObject: 1.3.6.1.4.1.39145.10.6"

tstr: "NoSuchObject"

```

and from console log

```auto
13 Sep 03:05:20 - [error] [snmp:22ed07bef56d7251] NoSuchObject: 1.3.6.1.4.1.39145.10.6

```

Unsure of where to try and fix this. If i use a pc and scan this OID I get an expected response.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 September 2022 07:17 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/2 "2022-09-13T07:17:04Z")

</div>

> [@jonkers71](#):
>
> if i try snmp walk node-red just restarts

If you run snmpwalk in a terminal in the device does it function correctly?

If it does then stop node-red and start it again in a terminal so that you can see the startup log. Then initiate the walk and see what occurs in the terminal. Post the full terminal output from starting node-red up to when it restarts. Copy/paste please, not screenshot.

---

<div class="post-metadata">

**Author:** ![jonkers71](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonkers71/32/59714_2.png) [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Post date:** [14 September 2022 07:54 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/3 "2022-09-14T07:54:22Z")

</div>

I have just got the ssh licence for this device so I am hoping to get some time with it tonight and try a few more things.

---

<div class="post-metadata">

**Author:** ![jonkers71](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonkers71/32/59714_2.png) [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Post date:** [14 September 2022 12:37 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/4 "2022-09-14T12:37:51Z")

</div>

Now that i have been able to get into it some more I have got a straight fetch working.

if i do snmp from terminal

```auto
admin@opto-instro:~/.node-red$ snmpwalk -v 2c -c public 192.168.40.101
SNMPv2-MIB::sysDescr.0 = STRING: ICT Distribution Panel
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.39145.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (39004) 0:06:30.04
SNMPv2-MIB::sysContact.0 = STRING: .
SNMPv2-MIB::sysName.0 = STRING: WINDER-EMERGENCY
SNMPv2-MIB::sysLocation.0 = STRING: WINDER-EMERGENCY
SNMPv2-MIB::sysServices.0 = INTEGER: 7

```

If I do snmp fetch from my flow

```auto
{"oid":"1.3.6.1.2.1.1.1.0","type":4,"value":"ICT Distribution Panel","tstr":"OctetString"}

```

If I do a walk from my flow it just crashes and i get the following from the console.

```auto
14 Sep 12:35:25 - [red] Uncaught Exception:
14 Sep 12:35:25 - [error] ReferenceError: response is not defined
at Object.feedCb (/home/dev/.node-red/node_modules/node-red-node-snmp/snmp.js:451:25)
at Session.walkCb (/home/dev/.node-red/node_modules/net-snmp/index.js:2611:11)
at Req.feedCb (/home/dev/.node-red/node_modules/net-snmp/index.js:1935:7)
at Req.Session.onSimpleGetResponse [as onResponse] (/home/dev/.node-red/node_modules/net-snmp/index.js:2178:7)
at Session.onMsg (/home/dev/.node-red/node_modules/net-snmp/index.js:2153:7)
at Socket.emit (events.js:314:20)
at UDP.onMessage [as onmessage] (dgram.js:921:8)
14 Sep 12:35:43 - [info] 

```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 September 2022 14:07 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/5 "2022-09-14T14:07:13Z")

</div>

Yes that would seem to be a bug - can you try latest version 1.0.5 ? Thanks

---

<div class="post-metadata">

**Author:** ![jonkers71](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonkers71/32/59714_2.png) [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Post date:** [14 September 2022 14:50 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/6 "2022-09-14T14:50:54Z")

</div>

Can you give instructions on how to get to 1.0.5?

I did npm install node-red-node-snmp and it took me to 1.0.3

I will try again its a pain as the network it sits on does not have internet connection.

---

<div class="post-metadata">

**Author:** ![jonkers71](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonkers71/32/59714_2.png) [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Post date:** [14 September 2022 16:38 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/7 "2022-09-14T16:38:16Z")

</div>

Managed to get 1.0.5 on.

Walk is now working. Thankyou.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 September 2022 17:05 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/8 "2022-09-14T17:05:48Z")

</div>

Thanks for bringing it to our attention

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 November 2022 17:05 UTC](https://discourse.nodered.org/t/node-snmp-error/67633/9 "2022-11-13T17:05:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
