Page 1 of 1

Static IP Changed

PostPosted: Sun Jan 04, 2009 6:52 am
by kolucoms6
Recently I had to change my Static IP .

After changing the static IP in network card, dialer works but it shows me the Old Static IP in Admin Phone and also in Reports.

How to change those ?

PostPosted: Sun Jan 04, 2009 11:04 am
by newx22
download heidisql will allow you to connect with your mysql database and browse the tables.

PostPosted: Sun Jan 04, 2009 2:22 pm
by kolucoms6
I guess That Webmin will also allow me to do that

But I want to know no command to update it all instead of fiddling around with db manually ?

PostPosted: Sun Jan 04, 2009 4:49 pm
by williamconley
ADMIN_update_server_ip.pl

PostPosted: Sun Jan 04, 2009 9:08 pm
by kolucoms6
Do I have to run this command or I have to open this file and edit IP ?

PostPosted: Sun Jan 04, 2009 10:00 pm
by williamconley
Don't have the manager's manual, huh?

If you read the comments inside the file, it's pretty self-explanatory.

It is a script (thus the ".pl" at the end of the file name, as it is a perl script) which will (when run) modify the ip for you everywhere necessary. As with everything else, no warranty, but i've used it a couple times and it works quite well.

PostPosted: Mon Jan 05, 2009 12:12 am
by kolucoms6
But in manual, I don't find any keyword by

ADMIN_update_server_ip.pl

PostPosted: Mon Jan 05, 2009 3:07 am
by okli
Just run the script and follow the prompts. Or run it with --help option to see available parameters.

BTW by looking at the script itself you could figure out most of that. All vicidial scripts are well commented.
Code: Select all
# ADMIN_update_server_ip.pl - updates IP address in DB and conf file
#
# This script is designed to update all database tables and the local
# astguiclient.conf file to reflect a change in IP address. The script will
# automatically default to the first eth address in the ifconfig output.
......
print "command-line options:\n";
   print "  [--help] = this help screen\n";
   print "  [--debug] = verbose debug messages\n";
   print "  [--auto] = no prompts\n";
   print "configuration options:\n";
   print "  [--old-server_ip=192.168.0.1] = define old server IP address at runtime\n";
   print "  [--server_ip=192.168.0.2] = define new server IP address at runtime\n";
   print "\n";
.....