Problem:
Need to regenerate the device ID in the landesk.conf file
Solution:
Note: This has not been fully tested by LANDESK.
Note: It is not recommended to install an image with the agent pre-installed
Using the script below you can regenerate the ID in the landesk.conf file
#Make a backup of the landesk.conf
cp /opt/landesk/etc/landesk.conf /opt/landesk/etc/landesk.conf.oldID
#Generate new ID
UUID=`uuidgen`
myline="Device ID={$UUID}"
#Display new ID
echo $myline
#Write new ID into landesk.conf
sed --in-place '/Device ID=/d' /opt/landesk/etc/landesk.conf
sed --in-place 1" i\\$myline" /opt/landesk/etc/landesk.conf