How do I find my computer's host id?

105 visualizaciones (últimos 30 días)
Brett Kercher
Brett Kercher el 11 de Mzo. de 2020
Comentada: Andrew Janke el 1 de Feb. de 2024
As the title asks, how do I find my computer's host id?

Respuestas (1)

Star Strider
Star Strider el 11 de Mzo. de 2020
In Windows, it is the volume serial number for the C:\ drive.
To get it, run this from a script or the MATLAB Command Window:
system('vol')
The result will appear in the Command Window. You can copy and paste it from there, as necessary.
Note that in the MATLAB License Center, the number appears without the hyphen. That causes no problems for MATLAB.
  7 comentarios
Star Strider
Star Strider el 11 de Mzo. de 2020
@Guillaume — Thank you!
Andrew Janke
Andrew Janke el 1 de Feb. de 2024
Does anyone know how to tell, for a particular computer or Matlab activation, whether Matlab is using the disk serial number or the MAC address (or both) as the Host ID or other identification for activation? And whether the "Host ID" is the same thing in all contexts?
I ask because I'm having some trouble with activation management for VMs in Azure. I have a Standalone license with 4 activations allowed. In the mathworks.com License Center page, it shows me 4 activations, but 3 of them are shown as having the same Host ID (in the Host ID column in the Activated Computers list, and in the Host ID field of the Activation Details page for each). The number shown for Host ID there is the same as the Disk Serial Number shown for them; only the MAC address in the details page differentiates which computer each activation is for.
I think this is because volume serial numbers are not unique. And you can run in to that in Azure (and other cloud scenarios) because new VMs may be created by cloning a disk snapshot of the OS disk, so all the VMs created from a given disk image source may have the same volume serial number for their C: drives.
For me, sometimes the Deactivate Matlab program won't successfully get one of those activations to disappear from the list in License Center, and sometimes I can't activate Matlab on the same VM for which an activation is already listed in License Center and I get a "no activations remaining" error. I'm wondering if this duplicate volume serial number/Host ID behavior could have something to do with that.

Iniciar sesión para comentar.

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by