Author Topic: Linkstation LS-WXL - in sleep mode responds to ping  (Read 202 times)

LesG

  • Calf
  • *
  • Posts: 5
Linkstation LS-WXL - in sleep mode responds to ping
« on: January 23, 2021, 01:04:14 am »
Hello,

I use my LS-WXL in a custom sleep mode, using WOL to wake it when I need it. My automated processes (backups etc) always send a magic packet and wait for 3 minutes... regardless of the Linkstation's actual state; asleep or awake.     

Is it possible to know when it is asleep? It responds to pings whether asleep or awake. Ditto arping. I'd like to have a way of interrogating the Linkstation's state.

No problem if not possible, just something I'd like to be able to do. Thanks.

Edit: No worries, I've found out how, using netcat...

nc -zw 1 <NAS_IP> 22                    # 22 is port

that returns 0 if the device is awake
« Last Edit: January 23, 2021, 04:05:11 am by LesG »