# Reading network switch/port information for a device with static address

**URL:** <https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 16, 2021, 5:02pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136 "2021-11-16T17:02:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis.Dreier](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@Travis.Dreier](https://forum.inductiveautomation.com/u/Travis.Dreier)\
**Post date:** [November 16, 2021, 5:02pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136/1 "2021-11-16T17:02:28Z")

</div>

Is there any way to get network switch/port information for a device with a static address.  
I have a mobile piece of equipment that I would like to run with different settings depending on the location it is used.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 16, 2021, 5:07pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136/2 "2021-11-16T17:07:54Z")

</div>

Assuming your switches issue diagnostic frames, you could write a small daemon to capture them and make them available to the ignition environment. Some python3 script as a service parallel with a Vision Client or the gateway. (No way with Perspective, unfortunately.)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [November 16, 2021, 6:27pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136/3 "2021-11-16T18:27:32Z")

</div>

Depends on the switch. If it is a Stratix switch and you have a PLC you can monitor the port status in the PLC.  
If it has SNMP capability, you can get an OPC Driver from Kepware that will monitor for that and you can get that via tags.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 16, 2021, 6:47pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136/4 "2021-11-16T18:47:35Z")

</div>

> [@bschroeder](#):
>
> If it has SNMP capability

> [@SNMP function for Ignition version 8](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167):
>
> Hi all. [Here](https://github.com/gitRaiku/Snmp-Ignition-Module) you have a simple SNMP function tested with v1/v2c devices under V8 As of now the only operation available is snmp Get and can be called by using system.snmp.snmpGet(‘community’, ‘address’, port, ‘OID’) Returns value as string I was in need of a simple function for SNMP. The driver on market seems a little complicated and the free one made by BYES for V7.9 is not free anymore for V8 ( for a good reason ) So I asked my son for help, we took the function example, tweaked the cod…

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [November 16, 2021, 6:51pm UTC](https://forum.inductiveautomation.com/t/reading-network-switch-port-information-for-a-device-with-static-address/53136/5 "2021-11-16T18:51:58Z")

</div>

Or use this… I wasn’t aware that this existed. Thanks!
