Jump to content

Simple Windows Failover Solution


Recommended Posts

I've written a windows VBScript that will make a simple failover solution for Windows.


Basically you have 2 servers running pbxnsip with the configuration you want. When the live server goes down the backup server will take on the IP address of the live server.


On the failover server you schedule the attached vbscript to run every minute:

c:\heartbeat <live_server_ip> <live_server_mask> <live_server_gateway>





Everytime the script runs and the live server is up a windows event log will be written of success.

The instant the live server fails, the failover process will role into action:

#1-windows event log of failure will be written

#2-IP address change will be done and event log written.


Roadmap Features:

-copy data from live server to failover on ongoing basis

-automatically start the pbxnsip service


Current Requirements:

-pbxnsip running on a second server with the configuration in place

-a pbxnsip license key with MAC address of master and backup server


This is beta, sloppy code (hey, i did it in 1.5hr) and not tested very much yet. So test on a test senario and give me feedback.




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...