# Dynamic host IP in "snmp subtree" node?

**URL:** <https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652>\
**Category:** General\
**Created:** [13 June 2024 06:39 UTC](https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652 "2024-06-13T06:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattbue](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mattbue](https://discourse.nodered.org/u/mattbue)\
**Post date:** [13 June 2024 06:39 UTC](https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652/1 "2024-06-13T06:39:30Z")

</div>

Hi,  
I have multiple "snmp subtree" nodes reading data from a network switch.  
This means if the IP address I have to edit several nodes.  
Is it possible to set the IP address e.g. in a variable which I can use within the "snmp subtree" node in the field "Host"?

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 June 2024 06:47 UTC](https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652/2 "2024-06-13T06:47:37Z")

</div>

Read the built

> [@mattbue](#):
>
> Is it possible to set the IP address e.g. in a variable which I can use within the "snmp subtree" node in the field "Host"

Did you read the built in help?

It says you can send this in `msg.host`

---

<div class="post-metadata">

**Author:** ![mattbue](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mattbue](https://discourse.nodered.org/u/mattbue)\
**Post date:** [13 June 2024 06:50 UTC](https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652/3 "2024-06-13T06:50:32Z")

</div>

Oh, shame on me 🥴  
Thank you!

---

<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:** [11 September 2024 06:51 UTC](https://discourse.nodered.org/t/dynamic-host-ip-in-snmp-subtree-node/88652/4 "2024-09-11T06:51:30Z")

</div>

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