Switch IP addresses remotely

Sep 21, '01 06:30:00AM

Contributed by: Hes Nikke

Does anyone know of a way to change your IP address remotely? either through a shell script, Apple Script or a Perl Script? All I would want to do is log in (SSH, or a password protected web page) and run the script to toggle the Network 'Location' (my primary server went down today and my OS-X box is my backup server).

Or better yet does someone know of a script that will ping my primary server every few seconds, then if there is a non-response ping, run the above script.

[Editor's note: See the comments for the answer - 'scselect' is a Darwin-specific command-line utility to switch the current location!]


Panther proven!

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010921063016167