mattlandis Posted December 1, 2009 Report Share Posted December 1, 2009 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> example: c:\heartbeat 192.168.1.10 255.255.255.0 192.168.1.1 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. Matt heartbeat.zip Quote Link to comment Share on other sites More sharing options...
pbxuser911 Posted December 2, 2009 Report Share Posted December 2, 2009 nice work matt!!!! Quote Link to comment Share on other sites More sharing options...
mattlandis Posted December 2, 2009 Author Report Share Posted December 2, 2009 nice work matt!!!! Thanks. Did you get a chance to test it? Give me any feedback you want. Matt Quote Link to comment Share on other sites More sharing options...
pbxuser911 Posted December 2, 2009 Report Share Posted December 2, 2009 Not operating on WIN but its nice to see a win failover example for other windows users..... Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted December 3, 2009 Report Share Posted December 3, 2009 Did anyone had the change to try out Microsoft Hyper-V for failover? I saw an advertizement that stuff like Microsoft Exchange can failover pretty quickly and I think this should also work for the pbxnsip PBX. Quote Link to comment Share on other sites More sharing options...
mattlandis Posted December 3, 2009 Author Report Share Posted December 3, 2009 No, I didn't test hyper-v although I should. I think that could work too. I guess i was trying for total failure of any pc/node the next one will take over. matt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.