Network setup scripting - TCP/IP configuration syntax

OS 9.2.2-
Sometimes my cable modem loses connection. If I open TCP/IP and choose configurations from the menu and then “make active” from the dialog box it reconnects. Anyone know of a script to do this? The dictionary seems to be geared towards TCP/IP setup, not monitoring and adjustment of current settings. Any insight to how “Network setup scripting” works with
Setup-
connect via ethernet
configure using DHCP server

SC

I searched before I posted, but not well enough. Another search produced Apple’s sample scripts, the Rosetta Stone of Network Setup Scripting.

To access any current settings, you use

tell application “Network Setup Scripting”
try
open database–Key to all info, must be included
set TCPIPconfigs to every TCPIP v4 configuration
close database
end try
end tell
return TCPIPconfigs

The script I was looking for to reconnect a broken cable connection:

tell application “Network Setup Scripting”
try
begin transaction–Key to making changes, must be included
set TCPIP active of TCPIP v4 options to true
end transaction
end try
end tell

The scripts can be found at
ftp://ftp.apple.com/developer/Development_Kits/AppleScript/Sample_Scripts/Network_Setup_Scripting/

SC