Page 1 of 1

Monitoring Ethernet connection status

Posted: Mon Oct 12, 2020 10:33 am
by marco.deepak
Hi all,

I have a question for you.

Is there any way or any stack that can help me check the connection status specific to my ethernet port?.

The aim is to create a "LED" symbol on my screen that changes to green color when the ETH connection to my host is active and to red color when connection is down.

Any tip?

Thanks

M.

Re: Monitoring Ethernet connection status

Posted: Mon Oct 12, 2020 1:27 pm
by AxWald
Hi,

you may try one of these:

Code: Select all

put shell("ipconfig /all")
put shell("ipconfig")
Both give different results depending on your network status.

Have fun!

Re: Monitoring Ethernet connection status

Posted: Mon Oct 12, 2020 4:48 pm
by marco.deepak
Thank for the tip!.

I managed by using the following:

Code: Select all

put shell("netsh interface show interface")
Works like a charm