Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Keep Alive

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 3 Posters 971 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JKnottJ
      JKnott @biggreydog
      last edited by

      @biggreydog

      You don't. You run it from the command prompt, though you may be able to have it start automatically on boot up.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      B 1 Reply Last reply Reply Quote 0
      • B
        biggreydog @JKnott
        last edited by

        @jknott Thanks! I see now there is a Shellcmd Configuration package that can be installed and used to run it. Will see how it goes.

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @biggreydog
          last edited by

          @biggreydog

          That may do it. Also, that script is set for 50 seconds per cycle. You can adjust that as needed.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          B 1 Reply Last reply Reply Quote 0
          • B
            biggreydog @JKnott
            last edited by

            @jknott Well the command works but it didn't keep the device connected. Not sure what other commands I can use since pinging it every minute didn't work.

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @biggreydog
              last edited by

              @biggreydog

              Do you know what's required to keep is alive? If all else fails, you can use my script to test for failure and send a wake on LAN frame.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              B 1 Reply Last reply Reply Quote 0
              • B
                biggreydog @JKnott
                last edited by

                @jknott No its a timeclock and the company provides no instruction. Already contact them and they know its an issue that they have not corrected...... https://www.icontime.com. I added your ping script through the GUI shell package. Not sure how to send wake on LAN frame.

                B 1 Reply Last reply Reply Quote 0
                • B
                  biggreydog @biggreydog
                  last edited by

                  @biggreydog alright I added the cron package and added a WOL command every hour on the hour.. not let's see this thing work now!

                  JKnottJ 1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    You could probably just run fetch against it to establish a connection periodically. Assuming it has an http interface.

                    You might find WoL does nothing. Until it's actually gone off at least.

                    Steve

                    B 1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @biggreydog
                      last edited by

                      @biggreydog

                      There's no point in running WoL until it fails to respond to my script.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      1 Reply Last reply Reply Quote 0
                      • B
                        biggreydog @stephenw10
                        last edited by

                        @stephenw10 It has an http interface. I'm not familiar with fetch. What command would I use?

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Just pull a page from it, so maybe:

                          fetch http://<timeclock_IP>/index.html > /dev/null
                          

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.