PDA

View Full Version : Composite HostID using HOSTID_ETHER w/No Nic. Card Installed



TobiaszJason
10-01-2007, 01:52 PM
My current composite key is made up of the following:

int hostid_list[] = {HOSTID_DISK_SERIAL_NUM, HOSTID_ETHER};

Depending on whether or not the nic. card is enabled/disabled, I get back a different 12-character hex string.

My question is, when there is no nic. card enabled/installed, what is the behavior of when lc_init_simple_composite, and more importantly, what is the behavior when lc_checkout is called? Is the HOSTID_ETHER part of the composite key used or is it ignored?

RobertDickau
10-08-2007, 10:46 AM
From a test calling lc_init_simple_composite with a hostid type not supported on the test system (specifically HOSTID_FLEXID6), lc_init_simple_composite returns error code -127, LM_COMPOSITEID_ITEM_ERR, "An item needed for composite hostid is missing or invalid."

Robert

TobiaszJason
10-11-2007, 03:35 PM
That's odd, I'm not getting an error back. I'm using a box with absolutely no NIC installed. Hmm, I wonder what is going on.

I also find it rather weird that the signature for the license file is different based on the number of Virtual Machines w/bridged networks that are installed on the box.

drrushi
10-18-2007, 05:51 PM
That's odd, I'm not getting an error back. I'm using a box with absolutely no NIC installed. Hmm, I wonder what is going on.

I also find it rather weird that the signature for the license file is different based on the number of Virtual Machines w/bridged networks that are installed on the box.

What does the lmhostid utility return if you run it on the machine which doesn't have a NIC card? If that utility returns some ethernet value that is probably what's being used for HOSTID_ETHER.

Can you elaborate a little more on the second question?

TobiaszJason
10-22-2007, 01:33 PM
I ALWAYS get a 12-hex string. I never receive an error.

Also, this 12-hex string changes based on what bridged networks I have enabled that are used for Virtual Machines and/or Hamachi.