MATLAB Answers

Translated by

このページのコンテンツは英語から自動翻訳されています。自動翻訳をオフにする場合は「<a class="turn_off_mt" href="#" onclick="window._kiq.push(['set', { 'event': 'Turn off MT' }]);">ここ</a>」をクリックしてください。

5

What is a Host ID? How do I find my Host ID in order to activate my license?

MathWorks Support Team さんによって質問されました 2013 年 7 月 17 日
最新アクティビティ Walter Roberson
さんによって コメントされました 2019 年 5 月 13 日
In order to activate my license, I must provide a Host ID. What is a Host ID and how do I find it on my computer?

タグ

タグが未入力です。

13 件の回答

回答者: MathWorks Support Team 2019 年 4 月 12 日
編集済み: MathWorks Support Team 2019 年 4 月 12 日
 採用された回答

Host ID is a a specific piece of information which uniquely identifies a computer. Host IDs are used to generate MATLAB license files, which are machine-specific. Most of the time, the host ID is the lowest-enumerated MAC address of the computer. However, there are exceptions to this:
  • With an individual license on a Windows machine, the Volume Serial Number of the C: drive can be used as the host ID.
  • With network licenses, the IP address can be used as the host ID. This is not recommended, as IP addresses can change due to external factors.
To find your Host ID, follow the instructions below for your operating system.
Windows
For individual licenses, the Host ID can be either the Volume Serial Number of the C: drive, or the MAC address of the network adapter.
To obtain the volume serial number, open a Windows command prompt and run the following command:
vol c:
The Volume Serial Number is the value listed at the end of the second line of output (e.g. "Volume Serial Number is 1234-ABCD")
For Network Concurrent or Network Named User licenses, the MAC address must be used as the Host ID. Additionally, computers with a B: drive must use the MAC address as the host ID.
To obtain the MAC address, open a Windows command prompt and run the following command:
getmac
If this produces multiple MAC addresses, use the one at the top of the list.
MacOS
For MacOS, the Host ID is the MAC address of the en0 device.
To obtain the MAC address of the en0 device, start by opening a Terminal window:
  • Open Finder
  • Open the "Applications" folder
  • Open the "Utilities" folder
  • Start the "Terminal" application
In the Terminal window, enter the following command:
ifconfig en0 | grep ether
The MAC address is the value listed next to "ether".
Linux
With R2014a and later, any MAC address can serve as the host ID regardless of the interface name. If the interfaces are enumerated, use the lowest-enumerated interface.
To obtain the MAC address using a bash shell, run the following command:
/sbin/ifconfig <interfaceName>
Where <interfaceName> is the name of the network interface. For example, eno1, eth0, wlan0, or enp5s0 are common Linux network interface names, although this will vary from computer to computer.
You can also run the following command if you don't have net-tools installed:
ip addr | grep ether
For R2013b and earlier, the Host ID is the MAC address of the eth0 or en0 interface.
To obtain the MAC Address using a bash shell, run the following command:
/sbin/ifconfig eth0
or
/sbin/ifconfig eth1
The MAC Address is usually the value listed next to "HWaddr". If your Linux distribution does not have network interfaces which follow the enX or ethX naming scheme, you will either need to update to MATLAB R2014a or later, or change the name of your interfaces so MATLAB can detect them. Consult your distribution's documentation for instructions on changing the network interface naming scheme.

  11 件のコメント

In the terminal app, execute
netstat -i
and see if it is showing an MAC addresses with 00:00:00:00:00:00 that might be contributing.
The primary MAC address that is used for IPv4 will sually show up on a line marked with '<Link#' . For example,
en0 1500 <Link#5> 48:61:79:69:6d:44 57105595 0 34859208 0 0
Here the MAC address used for IpV4 would be 48:61:79:69:6d:44 .
There will also be an entry showing the IP address for the link, such as
en0 1500 192.168.0 192.168.0.10 57105595 - 34859208 - -
If you see an interface that does not have any IP address entry, then that interface is not currently being used as your network interface.
You might see multiple interfaces with an IP address; for example my en1 interface is my wifi interface.
Hi Walter, thanks for the help!
My netstat -i seems normal:
$ netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 1269 0 1269 0 0
...
en0 1500 <Link#11> 00:09:93:e8:f2:5d 26135 0 0 0 0
en0 1500 192.168.100 192.168.100.103 26135 - 0 - -
en0 is still a usb-ethernet dongle, connecting to my LAN. It has a valid MAC.
However, the Matlab activator still gives the wrong host error when I manually generate a license with that as Host ID, and the Activator instruction page still shows this:
Screen Shot 2019-05-13 at 11.58.57 am.png
Is this a bug in the Activator? Why should the activator not be OK with a usb dongle? It is intiated as en0, it has a MAC, what't the problem??
Thanks!
Odd, it normally cannot get to that point without throwing a warning message about the ethernet not being found.
The only time in the last couple of years that I have seen Host ID 0 was while I was testing MATLAB in a Parallels virtual machine using Parallels 14; I was able to prove that the fault was Parallels 14 with Parallels 13 having worked.

サインイン to comment.


回答者: Nicholas Fowler 2015 年 1 月 21 日

I have downloaded MatLab and everything but now when I try to access it, an error pops up saying that my username does not match the username in the license file. I'm not a huge tech-guy, so could anybody give me a step process on how to solve this?
THANKS

  2 件のコメント

Exactly the same problem, if anybody could help... thank you
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Justin

サインイン to comment.


回答者: ThatNeuroGuy 2018 年 7 月 25 日

It is worth noting that the default name of the ethernet connections in CentOS 7 has changed. It is now "eno#", so the command would look something like this: /sbin/ifconfig/eno1

  0 件のコメント

サインイン to comment.


回答者: Luca
2017 年 10 月 23 日
編集済み: Walter Roberson
2017 年 11 月 2 日

Hi,I have a pc running windows7 and Fedora Linux. I installed Matlab with Campus license first on Windows, then on linux. Setup is fine, but at the launch of the matlab console command I read...
[luca@luca bin]$ matlab
rm: impossibile rimuovere '/tmp/matlab.luca.need_softwareopengl.log': Operation not permitted
/usr/local/MATLAB/R2017b/bin/matlab-glselector.sh: riga 68: /tmp/matlab.luca.need_softwareopengl.log: Permission denied
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2017b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/luca/.matlab/R2017b_licenses:/usr/local/MATLAB/R2017b/licenses/license.dat:/usr/local/MATLAB/R
2017b/licenses/license_luca_40614116_R2017b.lic
...Why? tnks

  2 件のコメント

Hi Luca,
Error -9 usually means that your username that MATLAB was activated to does not match the username trying to start MATLAB. I have attached a link below that explains this error and how to resolve it.
On Linux systems, the most common cause of this seems to be having answered "root" when the activation procedure asked which username to use. Another possibility is having answered with a full name instead of a username -- for example if you had replied "Luca Filippone" instead of "luca" when you ran the activation.

サインイン to comment.


回答者: Luca
2017 年 11 月 5 日
編集済み: Walter Roberson
2017 年 11 月 5 日

tnks, now the error is..
[luca@Luca ~]$ matlab
Error logs successfully sent to MathWorks.
------------------------------------------------------------------------
Segmentation violation detected at Sun Nov 5 23:19:39 2017
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Visual : 0x65 (class 4, depth 24)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.25 stable
Host Name : Luca.localdomain
MATLAB Architecture : glnxa64
MATLAB Entitlement ID: 4372111
MATLAB Root : /usr/local/MATLAB/R2017b
MATLAB Version : 9.3.0.713579 (R2017b)
Operating System : Linux 4.12.9-300.fc26.x86_64 #1 SMP Fri Aug 25 13:09:43 UTC 2017 x86_64
Processor ID : x86 Family 6 Model 42 Stepping 7, GenuineIntel
Virtual Machine : Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Fedora Project (11903000), display :1
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007f0c7060ac38 RBX = 000000000000001a
RCX = 00007f0c7060c0d8 RDX = 00000000021f6660
RSP = 00007f0ce33ad7e8 RBP = 0000000000000001
RSI = 00007ffe37ceb1b8 RDI = 0000000000000001
R8 = 0000000000000000 R9 = 0000000000000010
R10 = 00007f0c887e50b0 R11 = 0000000000000206
R12 = 00007ffe37ceb1b8 R13 = 00000000021f6660
R14 = 00007f0c7060ac30 R15 = 00007f0c887e1270
RIP = 000000000000beb0 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x000000000000beb0 <unknown-module>+00000000
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.** This crash report has been saved to disk as /home/luca/matlab_crash_dump.12032-1 **
MATLAB is exiting because of fatal error
Killed

  1 件のコメント

You should contact Mathworks for free installation assistance.
I suspect you have problems related to libc

サインイン to comment.


回答者: Guangzhao Xu 2017 年 11 月 28 日

What if I have only one interface lo in Linux with MAC address 00:00:00:00:00:00? Thank you very much!

  1 件のコメント

Then you cannot use MATLAB. Interface lo is the "local loopback" which is an internal fiction to allow the host to talk to itself. You need at least one network device configured for Linux (it does not have to be attached to the internet, but it must exist.)

サインイン to comment.


回答者: Pinar Pir
2018 年 3 月 25 日

Hello, I find my HOST ID in windows as XXXX-XXXX, I copy paste this, but get the error: The Host ID given is not valid for the OS you have chosen. Please check the "How do I find my Host ID?" link, and be sure there are no invalid characters (!@#$%^&*():-) in your Host ID
I tried to replace - with _ or space or completely remove it, but I still get the same error.
The ID is for vol c:, and I have a d: as well, but installation is being made on c:. I tried using ID of vol d: but it does not work either.
What should I do?

  3 件のコメント

Jan
2018 年 3 月 25 日
There is no "-" in the host ID.
vol serial numbers have not been accepted for some time. You need to use a MAC address.
If you are able to use the interactive installer then it will automatically find the host ID for you.
Is there any chance the accepted answer could be updated to reflect this?
This thread is directly linked from the "How do I find my computers host ID" on the activation page. It would be a lot simpler if the accepted answer contained the most up-to-date information.

サインイン to comment.


回答者: montes charles 2018 年 10 月 22 日

License checkout failed

  0 件のコメント

サインイン to comment.


回答者: montes charles 2018 年 10 月 22 日

In order to activate my license, I must provide a Host ID. What is a Host ID and how do I find it on my computer?

  1 件のコメント

(The instructions there are perhaps a little weak for MacBook Air which might not have an en0)

サインイン to comment.


回答者: guangpeng liu 2018 年 11 月 23 日

error.png,I have downloaded MatLab and install in my computer but now when the installation is over,i open the matlab program , there is a error as show in the picture , so could anybody give me a step process on how to solve this?
THANKS

  1 件のコメント

Hello,
The error you are receiving usually means the username you are launching MATLAB with does not match the username in the license file. In order to resolve this please re-run the MATLAB activation client and activate to the correct username.
I have attached a link below that explains this error and how to resolve it in more detail:

サインイン to comment.


回答者: James Hill 2018 年 12 月 28 日
編集済み: James Hill 2018 年 12 月 28 日

**** I deleted my last activation for the website and re-ran the activation and it work******
License checkout failed.
License Manager Error -9
The hostid of your computer ("72e61f774187 80fa5b61132c") does not match the hostid of the license
file (064303c59aa9).
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
License checkout failed.
License Manager Error -9
The hostid of your computer ("de026e164bfb 80fa5b61132c") does not match the hostid of the license
file (227476e03f48).
License Manager Error -9
The hostid of your computer ("82a0913137be 80fa5b61132c") does not match the hostid of the license
file (426c28538ee0).
To run MATLAB on this computer, you must run the Activation client to reactivate your license
License Manager Error -9
The hostid of your computer ("5eb0f3ee0874 80fa5b61132c") does not match the hostid of the license
file (3e282db599ea).
I activate. Use my standard account login name. Run matlab immediatlely after activation. Host ID keeps changing from one activation attempt to the next. It was working fine until I installed Parallel Toolbox.
My OS is:
Linux enkidu-t3a 4.19.12-2-MANJARO #1 SMP PREEMPT Sun Dec 23 19:08:00 UTC 2018 x86_64 GNU/Linux
inxi -n:
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
IF: enp111s0 state: up speed: 1000 Mbps duplex: full mac: 80:fa:5b:61:13:2c
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi
IF: wlp113s0 state: down mac: 96:5a:28:6b:14:48

  2 件のコメント

Hi Walter,
I thought about the dynamic MAC addressing, however, if you look at my inxi -n output and the MAC address from that and compare it to the supposed HOST ID that never changes.
I just looked at my activated license. The activation label does reference my Wireless MAC and Host ID references the Wired so that may be the problem. Since MATHWORKS fails to propertly document or describe how the activation label works in situ with HOST ID it was not obvious at first.
The disconcerting aspect is why it took several activation attempts with no reboots to "fix" with no other changes to the system. I personally gained no understanding of what I did between working and not working.
I would suggest starting with a clean slate if this problem arises. Delete all the activations on the MATHWORKS website and your .lic file locally.
If you use Arch Linux or an Arch derivative:
as well as Walter's links above
From:
hwinfo:
92: None 00.0: 10701 Ethernet
[Created at net.126]
SysFS ID: /class/net/wlp113s0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/0000:71:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "iwlwifi"
Driver Modules: "iwlwifi"
Device File: wlp113s0
HW Address: f2:8a:8c:c2:47:b7
Permanent HW Address: 34:e1:2d:df:1d:49
Link detected: no
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #27 (WLAN controller)
----- where as ----- Wired
91: None 00.0: 10701 Ethernet
[Created at net.126]
SysFS ID: /class/net/enp111s0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.5/0000:6f:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "r8169"
Driver Modules: "r8169"
Device File: enp111s0
HW Address: 80:fa:5b:61:13:2c
Permanent HW Address: 80:fa:5b:61:13:2c
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #26 (Ethernet controller)
--------
Why MATHWORKS ever thought that using the MAC addres was a "smart" idea when it can be changed for valid sercurity reasons or at least choosing to the use the correct HW address.
Here is something interresting:
sudo inxi -n -v4
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK driver: r8169 v: kernel
port: 3000 bus ID: 6f:00.0
IF: enp111s0 state: up speed: 1000 Mbps duplex: full mac: 80:fa:5b:61:13:2c
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: 3000 bus ID: 71:00.0
IF: wlp113s0 state: down mac: 66:53:f3:57:d6:46
MATHWORKS the above is what I mean by "not smart".
When items in these groups below of have a much better chance of being stable:
Drives: Local Storage: total: 2.98 TiB used: 44.31 GiB (1.5%)
ID-1: /dev/mmcblk0 model: 00000 size: 238.50 GiB
ID-2: /dev/nvme0n1 vendor: Samsung model: SSD 970 PRO 1TB size: 953.87 GiB
ID-3: /dev/sda vendor: Seagate model: ST2000LX001-1RG174 size: 1.82 TiB
Partition: ID-1: / size: 937.28 GiB used: 44.31 GiB (4.7%) fs: xfs dev: /dev/nvme0n1p1
ID-2: swap-1 size: 15.62 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p2
Machine: Type: Laptop System: System76 product: Oryx Pro v: oryp4-b serial: N/A
Mobo: System76 model: Oryx Pro v: oryp4-b serial: N/A UEFI: American Megatrends v: 1.07.05RSA3S76 date: 06/14/2018
Which would allow us, who travel, to opt for a higher level of security.
James

サインイン to comment.


回答者: Marco Ramirez 2018 年 12 月 29 日

Ubuntu 2018 doesnt have /sbin/ifconfig path

  1 件のコメント

Try
ip link show
at the shell level.

サインイン to comment.


回答者: Markus Künzli 2019 年 3 月 14 日

Hi Guys,
Is there a way to don't use a MAC-Address for a Linux installation?
Our MatLab installations are on a bootable Stick for exams, so the problem is everytime a Stick is mounted on another Computer the MAC-Adress is not the one we licened. The Stick has no internet access!
Thanks for your help!
Simon

  1 件のコメント

You should probably contact Technical Support about this. I do not know if it can be done.

サインイン to comment.



Translated by