MoM: Merce Licence: 10 May 2010

Date: 10 May 2010

Discussed points about server key generation and license check algorithm

Shuvam, Hemant, Sachin were present

Server Key generation

  • Two machine must generate two separate keys
  • Change of RAM, HDD, should not change server key
  • Upgradation of BIOS should not change the server key
  • Adding/changing CPU or MAC-ID of eth0 should change the server key
  • Motherboard make module should change the server key

Fetch following Information with the help of dmidecode ifconfig command and from proc file system

  • System info using dmidecode -t system
  • BIOS Info using dmidecode -t bios
  • Processor info dmidecode -t processor
  • CPU information from /proc/cpuinfo

License checking algorithm

if digital signature is valid then
    if license key has expire then
        if server key present in license
            if I am master then
                if license type  == per user then
                    if user < (license.user + 10 )
                        exit
                    endif
                else
                    Extract all server core count for server record older than 30 days
                    if server.core <= (license.core) then
                        exit
                    endif
                endif /* license type */
            endif /* Master Slave */
        else 
            if root file system created 30 days ago
                exit
            endif /* root file system check */
        endif /* server key check */
    endif /*Expiry check */
endif /*digital sign check */

move license file to new path , generate new file