How to query if a network device is online

Post your questions and help other users.

Moderator: Martin

Post Reply
cjt7777
Posts: 19
Joined: 09 Aug 2016 12:50

How to query if a network device is online

Post by cjt7777 » 09 Aug 2016 13:02

Hi all,

Been using Automagic for about a week now and am totally addicted to automating everything. One flow that I have no idea on how to create is this: I want to walk into my house and have my PC WOL, which isn't difficult. The issue I'm having is how to get the WOL request to stop once the PC is on. Is there a way to 'ping' the PC and ask for its online status so that if it comes back as 'online' the flow will stop, or better yet stop the WOL request from being sent again? I've tried making the flow sleep for 23hrs but that caused an emergency stop for some reason.

Thanks in advance.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to query if a network device is online

Post by Martin » 09 Aug 2016 19:18

Hi,

You could use a condition Host Reachable to check if your PC is online and stop the loop that sends the WOL packets. I would also recommend to stop the loop after a few times even if your PC does not start. Also use flow->Menu->Options: Skip... to ensure that the flow is not started when it's already running at the moment (this could happen when the location detection does not work reliably and starts your flow multiple times).

Regards,
Martin

cjt7777
Posts: 19
Joined: 09 Aug 2016 12:50

Re: How to query if a network device is online

Post by cjt7777 » 09 Aug 2016 22:16

That's great, thanks Martin.

I've modified the flow and it seems to be working when I manually execute it. Hopefully it should work out.

Post Reply