Thursday, August 4, 2011

How to test a new hostid

From CR29335:

  • I changed temporarily the machine hostid to be the same as the Petra’s machine (siena2): 0×05919040. Actually, I just wanted to test the license lib against a hostid starting with 0.
  • I then re-generated the complete Ulticom host id of the machine and used it to re-sign my license file.
    This caused licenseUpdate to output the same original error message as Petra’s: “Permission denied, no valid Ulticom host identifier.”
  • I then used gdb to track what part of the code in the license lib was causing it.
    From what I saw, in expatparse.c file, function processHost Id(), we try to compare the string “05919040-Sun OS-sangria-E04CA67B1B5BBABBB83726A8”, as extracted from my license file with either “5919040-Sun OS-33BEB694D320A3A018243C2B9C” or “5919040-Sun OS-sangria-2918BA5D70D5EEA84E90339FB6”, which are the results of getMy Host Id From CE() and getMy Old Host Id From CE() respectively.