Logic Machine Forum
Ip dropout - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Ip dropout (/showthread.php?tid=3000)



Ip dropout - Tokatubs - 20.11.2020

Having a bit of an issue with a brand new Logic Machine 5.
Have set it up and knx tp is up and running. 

The latest days it loses its ip. So i cant connect to it. 
Taking out 24v and data cabel. And reconnecting it that way it some times comes back. And stays normal for some hours. 
Then again it loses its connection. And i cant connect to it. 
Leds are blinking and everything seems normal. But cant connect on ip. 

Advanced ip scanner shows that LM is offline. Restarting described above brings it back up. Tested ip and thats not the problem. 

Running latest firmware.

Any tips on what to try, have many other LM5 and have never seen this.


RE: Ip dropout - Daniel - 20.11.2020

I would bet that device has full memory and it keeps rebooting. Factory reset would help if you have backup.


RE: Ip dropout - Tokatubs - 23.11.2020

(20.11.2020, 13:47)Daniel. Wrote: I would bet that device has full memory and it keeps rebooting. Factory reset would help if you have backup.
Device is brand new. Up and running for about a week. Memory and Cpu seems fine. Nothing in error log. 
Today again it was offline. Got the client to restart it. Now up again until next time. 


   


RE: Ip dropout - Daniel - 23.11.2020

I would monitor it over time as you see it only after reboot. Try this script
Code:
data = io.readfile('/proc/meminfo')
load = io.readfile('/proc/loadavg'):split(' ')[ 1 ]

memtotal = data:match('MemTotal:%s+(%d+)')
memavail = data:match('MemAvailable:%s+(%d+)')
memusage = math.floor((memtotal - memavail) / memtotal * 1000) / 10

log(load, memusage)



RE: Ip dropout - Tokatubs - 23.11.2020

Just run it once, and doesnt matter what type i run it as?


RE: Ip dropout - Daniel - 23.11.2020

You should run it periodically over time.


RE: Ip dropout - Tokatubs - 23.11.2020

I put it as resident script then. Seems like its giving values.


RE: Ip dropout - Daniel - 23.11.2020

Keep checking it periodically or create a trend. We want to see if it is not growing over time.


RE: Ip dropout - Tokatubs - 23.11.2020

How would i be able to create a trend from this script. I see the "number" value increasing. The rest is steady.


RE: Ip dropout - Daniel - 23.11.2020

Just write the values in log to two objects.


RE: Ip dropout - Tokatubs - 23.11.2020

I guess for you guys this is kindergarden stuff Smile

But was trying to do this, but see that i need some help.
What is the simplest way to write make this script lines.

I created 2 virtual adresses, and then tried using grp.update with the Memtotal name inserted. But then i dont see how i can send it to correct virtual adress.
And i guess the grp.update is incorrect aswell. But learning by doing i guess.
A final push in the right direction ?


RE: Ip dropout - Daniel - 23.11.2020

Create two objects with 2byte floating dpt, In my example they have names CPU and Memory

Code:
data = io.readfile('/proc/meminfo')
load = io.readfile('/proc/loadavg'):split(' ')[ 1 ]

memtotal = data:match('MemTotal:%s+(%d+)')
memavail = data:match('MemAvailable:%s+(%d+)')
memusage = math.floor((memtotal - memavail) / memtotal * 1000) / 10

log(load, memusage)

grp.update('CPU', load)

grp.update('Memory', memusage)



RE: Ip dropout - Tokatubs - 24.11.2020

Today it happened again. 2 strange times marked in picture. During this time i cant log in via IP.

   


RE: Ip dropout - Daniel - 24.11.2020

The numbers are good, Maybe you have IP conflict? Try changing the IP.


RE: Ip dropout - Tokatubs - 24.11.2020

(24.11.2020, 14:04)Daniel. Wrote: The numbers are good, Maybe you have IP conflict? Try changing the IP.
In the beginning it was set to dhcp. After issue started i put it to static. Its a technical net, so we are sure that no other has this address.


RE: Ip dropout - Daniel - 24.11.2020

I have no other ideas. It looks like hardware issue. Ask for replacement.