script to change server_ip

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

script to change server_ip

Postby mcargile » Mon Aug 20, 2007 11:17 am

We have a client that was moving their vicidial server to a colo where it has a new IP address. Rather than adding it as a new server and adjusting all the phones, remote agents and everything else to use the new ip, I wrote a script to change the server_ip of a server if it gets moved. This will keep all the previous records tied to the new ip.

Here is the issue in the bug tracker for this new feature:
http://www.eflo.net/VICIDIALmantis/view.php?id=135

You also need to change the IP in the astguiclient.conf. It is best to do this before running this script, and you have to change the DB's ip in the astguiclient.conf if that has changed as well before running this.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Wed Aug 22, 2007 9:12 am

Script already exists for this:
ADMIN_update_server_ip.pl in the bin directory
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Wed Aug 22, 2007 11:11 am

:oops:
Well that would probably have been good to know.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Thu Sep 06, 2007 9:11 am

It might be a good idea to make the IP address of an established server not an editable text box and instead make a link to a page that allows you to change it by calling the existing script.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Fri Sep 07, 2007 7:31 pm

might be a good idea, but this is the first I've heard of that being an issue.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Development

Who is online

Users browsing this forum: No registered users and 16 guests