634 Rate this article:

How to get the Device ID using IDL 8.6


In previous versions of IDL, users could use the LMGR function's LMHOSTID keyword to get the Device ID of the system on which it was running. This keyword is not available in IDL 8.6 and thus this method of getting the Device ID no longer works.


A workaround to this issue is to use SPAWN and the "activate.exe" program with the "--deviceid" switch to get this information. An example how this can be achieved is shown below:

IDL> cd, "C:\Program Files\Harris\ENVI54\idl86\license_utils\bin.x86_64"
IDL> spawn, "activate --deviceid", out, err
IDL> print, out
{     "deviceID" : "JUNKJUNKJUNK",     "deviceIDType" : "FLC_HOSTID_TYPE_STRING",     "machineName" : "JUNKJUNKJUNK" } 

written by DS and reviewed by MM (12/21/2016) 

1 comments on article "How to get the Device ID using IDL 8.6 "

renuka singh

This blog has lots of very useful information on it! Thanks for helping me.

paid link directory

Please login or register to post comments.