Quantcast
Channel: Ivanti User Community : All Content - Linux and Unix
Viewing all articles
Browse latest Browse all 182

Regenerate *nix Device ID / Unique ID

$
0
0

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


Viewing all articles
Browse latest Browse all 182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>