bitfocus / companion-module-netgear-avline

MIT License
1 stars 2 forks source link

long wait #5

Open SK-RaoSel opened 1 year ago

SK-RaoSel commented 1 year ago

Hello everyone, it takes an extremely long time until the POE command arrives at the switch and is executed. In addition, sometimes not all ports are addressed if you list several in a row. is the problem known?

bryce-seifert commented 1 year ago

I have not experienced this, but would be curious to learn more.

How long would you define as "Extremely long time" seconds...minutes? And how long have you been connected to the switch (should be visible in uptime)? If you disconnect and reconnect, is it any faster?

SK-RaoSel commented 1 year ago

hi bryce,

on my system is now running companion version 3.1.0 (3.1.0+6148-beta-abace5ac).

i reboot all my switches.

With this Version the speed of the incoming command increase dramaticly. On older Version i was waiting about 4 Minutes until the POE ist starting. Now it takes around 20 Seconds.

with 20 Seconds i'am happy.

SK-RaoSel commented 1 year ago

@bryce-seifert,

unfurtunatly since the newest Beta-version the long wait turn back. I have to wait about 4 Minutes until the POE Port turns on or off. in many situation the order will not deliver to the switch and i have to restart companion

bryce-seifert commented 1 year ago

Got it, it sounds like this needs some more investigation.

Does the long wait start right when you start companion, or occur after it has been running for a bit? How long have you been connected to the switch (should be visible in uptime)? If you disconnect and reconnect, is it any faster?

SK-RaoSel commented 1 year ago

Hi @bryce-seifert,

(Test with beta 6214)

the long wait starts from the beginning.

my switches are in a big Network and usualy running 24/7. The Switch is running acctually 7 Days and 12 Hours. After i restart the switch and disable and enable the connection in companion, the order takes about 30 Secounds to enable the POE. The order i gave after start POE (to disable the POE) dont take an effect.

SK-RaoSel commented 1 year ago

Hi @bryce-seifert (Beta 6220)

I have now found that if I disconnect and reconnect in Companion, the command executes relatively quickly (5-10 Seconds). If I don't restart the connection after a command, nothing happens.

Maybe the orders are stuck somewhere?

---> Addendum

I can now definitely confirm that it is related to the companion connection. If it is restarted, the commands arrive at the switch again.

nasi87 commented 10 months ago

I have the same issue. Latest CompanionPi, trying to turn on/off PoE of a GSM4248PX. It works somehow but very unreliable and takes long time.

I have now found that if I disconnect and reconnect in Companion, the command executes relatively quickly (5-10 Seconds)

I added disconnect and connect before sending command to turn PoE on/off with some seconds delay between every command. This makes it more reliable and faster but still not satisfying. It takes much more than 30 seconds and works only 2 out of 3 times.

Some short tests sending the RestAPI commands with Postman from my computer have been reliable and took about 2-6 seconds between sending and finished execution.