How-to: Determine the Differences Between Machines

During activation, DeployLX will generate a string id representing the hashed hardware profile of the machine to be activated. The profile hash does not contain any identifiable information about the hardware in use, but it can be compares with another hash to determine if the hardware is different. DeployLX does this internally when verifying licenses with an Activation limit. If you'd like to see the differences for yourself you can use the Machine Hash Comparison tool in DeployLX. 

Comparing With DeployLX

  1. Open the DeployLX Manager
  2. Select Generate Code | Compare Machine Hashes from the Home tab on the ribbon
  3. Copy and paste the two machine profile hashes you want to compare into the Machine Codes section on the form
  4. Select Compare

The Results section will show the difference ratings and indicate if DeployLX would require the software to be reactivated.

The Type/Match list shows which components are different between the two profiles.

Note: If you have customized the hardware profile weights you will need to open the license file containing the activation limit for the form to report the correct difference ratings.

Diagnostic Comparisons

Sometimes the results from the comparison tool don't match the customer's expectations or a component seems to change each time the machine is profiled. When this happens, you can use the Profile Helper to capture diagnostic profiles of the machine. Submit these profiles to XHEO for analysis.

Comparing In Code

If you haven't changed the weights in your license, you can find the difference by calling the CompareHash method with the default hardware list:

Dim diffs() As MachineProfileEntryType
Dim weight As Integer = MachineProfile.CompareHash( _
  hash, _
  otherHash, _
  False, _
  MachineProfile.Profile.HardwareList, _
  diffs)
MachineProfileEntryType[] diffs;
int weight = MachineProfile.CompareHash( hash, 
                                         otherHash, 
                                         false, 
                                         MachineProfile.Profile.HardwareList, 
                                         out diffs );

The diffs array has a list of all the hardware that is different between the two hashes and the weight field has the calculated difference between the two. When weight is greater than the configured tolerance, DeployLX asks the user to reactivate.

If you have configured different hardware weights then you have to load up your actual license and profile to get an accurate weight calculation. Thediffs array will be the same either way.

Dim license = ...license from somewhere...
Dim activation = TryCast(license.Limits(GetType(Activation)), ActivationLimit)
Dim profile = activation.Profiles(0)


Dim diffs() As MachineProfileEntryType
Dim weight As Integer = MachineProfile.CompareHash( _
  hash, _
  otherHash, _
  False, _
  profile.Hardware, _
  diffs )
var license = ...license from somewhere...
var activation = license.Limits[ typeof(Activation) ] as ActivationLimit;
var profile = activation.Profiles[ 0 ];


MachineProfileEntryType[] diffs;
int weight = MachineProfile.CompareHash( hash, 
                                         otherHash, 
                                         false, 
                                         profile.Hardware, 
                                         out diffs );
Published : Aug 13, 2009
Updated : Jan 04, 2012
Views : 4960
  • licensing
  • deploylx
  • activation
  • hardware-locking

Downloads

Folder

Loading comments...