Novell Home

Creating One Image Object for all Remote Workstations

Novell Cool Solutions: Trench
By Uffe Bager

Digg This - Slashdot This

Posted: 31 Aug 2004
 

Many multi-site environments maintain multiple Image objects to image the remote workstations. Why not just have one? You still have to copy the image file(s) to the remote server(s) - or use ZfS.

With this script you only need a single image object to image all your remote workstations. Based on the IP address received by DHCP in LILO, this image script selects the local server and volume.

MYIP=`ifconfig | grep inet|grep -v "127.0.0.1"`      # get the ip address
export MYIP
if [ "`echo $MYIP|grep 10.1.`" ] ; then                # Segement 10.1.x.x
PROX=<Local ServerIP or Local Server DNSname>
SERV=<//LocalServer/ZENVolume/images>
else if [ "`echo $MYIP|grep 10.2.`" ] ; then                # Segement 10.2.x.x
PROX=<Local ServerIP or Local Server DNSname>
SERV=<//LocalServer/ZENVolume/images>
else if [ "`echo $MYIP|grep 10.3.`" ] ; then                # Segement 10.3.x.x
PROX=<Local ServerIP or Local Server DNSname>
SERV=<//LocalServer/ZENVolume/images>
else      # unknown network use main site server
PROX=<ServerIP or Server DNSname>
SERV=<//Server/ZENVolume/images>
fi
fi
fi

hdparm -d1 /dev/hda
img pd1
img pd2
img pd3
img pc1 ntfs C8
img pa1
img rp $PROX $SERV/Image.zmg A1:P1
img rp $PROX $SERV/AddOnImage.zmg A1:P1
reboot

If you have any questions you may contact Uffe at uffeTAKETHISOUT@hbager.net, making sure to remove the words TAKETHISOUT from his email address.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell