Zenpartitionmodifysettingstxt

From CoolSolutionsWiki

How to modify the settings.txt on the ZENworks partition (without PXE). We needed to change the ip address of the PROXYADDR because the ZENworks Imaging Server address has changed.

Usually one could simply update this via the PDHCP setting, but with solely using the ZENworks partition without PXE this seemed difficult.

Our Solution

  1. load tftp.nlm on the imaging server
    1. put the new settings.txt in sys:\tftp directory
  2. Create a image object to PUSH to the clients
    1. See below for script
  3. Then we created a ZENworks Server package and associated it to the NCP server object.
    1. Within the server package we configured work to do (push our image on all machines with greater than 20 mb of RAM (EVERYONE). This means that any workstation checking the server policy will apply this image (which is just an image script to pull down the new settings.txt).
    2. unload imgserv.nlm | load imgserv.nlm and test it out.

Script

echo "Updating ZENworks Settings"
mount $ZENDEVICE /mnt/harddisk
cd /mnt/harddisk
rm settings.txt
tftp ipAddressOftftpServer -c get settings.txt
cd
umount /mnt/harddisk
echo "ZENworks Settings updated"
sleep 20