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

    Carp newb dumb question

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    2 Posts 2 Posters 1.9k 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.
    • R
      radar
      last edited by

      Hi,

      I am looking to "manually" force a failover via a script using either wget or telnet from a windows box that has management monitoring software (Legato AAM) that when there is an alarm it could invoke it.

      Initially I am looking at somehow using ssh or wget to invoke an ifconfig command, or can someone point me in a better or different direction?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Q
        qdk
        last edited by

        ->Diagnostics -> Command Prompt
        Or the actual php script 'exec.php'

        unfortunately "exec.php?txtcommand=ifconfig" doesnt work because the GUI only looks for POST and not GETs, so you have to wrap your request in a POST, but thats fairly easy to do in a small script, even on a wintendo. (remember that you need to auth to pfsense too)

        You could also make a ssh-keypair without password, so you can always throw commands directly at pfsense through ssh.

        ./Thomas

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