Re: Unique Identifier [message #61446] |
Wed, 16 July 2008 14:25 |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Jul 16, 1:49 pm, Bennett <juggernau...@gmail.com> wrote:
> Does anyone know of an IDL function or system variable that can return
> a unique identifier for a computer that won't change....or at least
> has a highly unlikely chance of changing? Something like an IP
> address (assuming static) or anything of that nature?
>
> Thanks
IDL> stat = lmgr(lmhostid=mac)
IDL> print, mac
0123456789ab
This is usually the mac address.
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|
Re: Unique Identifier [message #61449 is a reply to message #61446] |
Wed, 16 July 2008 13:24  |
Juggernaut
Messages: 83 Registered: June 2008
|
Member |
|
|
On Jul 16, 4:12 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> Bennett wrote:
>> Does anyone know of an IDL function or system variable that can return
>> a unique identifier for a computer that won't change....or at least
>> has a highly unlikely chance of changing? Something like an IP
>> address (assuming static) or anything of that nature?
>
>> Thanks
>
> if you are under windows, you can try
> spawn, 'ipconfig /all', result & print, result
> then extract the Physical Address (=MAC address)... it will work,
> provided that the computer has a network card. each card should have a
> different number.
>
> Jean
Excellent. Thanks Jean. I seem to forget about spawn and what it can
do.
|
|
|
Re: Unique Identifier [message #61450 is a reply to message #61449] |
Wed, 16 July 2008 13:12  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Bennett wrote:
> Does anyone know of an IDL function or system variable that can return
> a unique identifier for a computer that won't change....or at least
> has a highly unlikely chance of changing? Something like an IP
> address (assuming static) or anything of that nature?
>
> Thanks
if you are under windows, you can try
spawn, 'ipconfig /all', result & print, result
then extract the Physical Address (=MAC address)... it will work,
provided that the computer has a network card. each card should have a
different number.
Jean
|
|
|