Categories

CUC (6) CUCM (26) Jabber (6) Python (2) Routing (3) Solarwinds Orion NPM (4) switching (1) Video (6) voice (2)

Tuesday, 21 May 2013

Call Manager, UCCX, CUC Licence MAC

A post out of necessity; I wanted to rebuilt a a UCCX server, because I lost my previous virtual machine (don't ask). The easiest way would have been to rebuilt the machine and re-host the license, but why do it the easy way. If you want easy; go and do lync.  Anyway, rebuilding the machine with the same parameters as the old one and re-use the exiting license file. Sure.  


So, contrary to the old chassis based appliance where the MAC address that was used to activate the licenses, was the actual MAC address of the NIC, on virtual appliances this is no longer the case, but you know that, right?

The MAC address used on virtual machines (and this goes for UCCX, CUC and CUCM) can be obtained by doing a "show status" from the CLI.

Please be mindful of this, when activating licenses!

So, how is the license MAC generated?  well, it uses the following parameters:


  1. Hostname
  2. DNS server
  3. Timezone
  4. NTP server IP address or hostname
  5. Duplex settings
  6. Server IP and mask
All these parameters get hashed, using SHA and the digest/result is the license mac  (see below)

The information below is obtained from a file called "licenseMacLogs", which can be obtained by running RTMT ans pulling the install logs off a server.

[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : Xml parser is located at /usr/local/bin/base_scripts/xmlfoo
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : Platform conf file located at /usr/local/platform/conf/platformConfig.xml
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : platform is vmware = 0
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : TimeZone is Australia/Melbourne
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : NTP server is "10.99.10.1"
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : NICAuto="yes" NICSpeed="" NICDuplex=""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : HostName=uccx8
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : HostIP=10.99.33.129 and HostMask=255.255.255.0 and HostGateway=10.99.33.1
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : PrimaryDNS="1.1.1.1"
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : SMTP server=""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : ORG=dogtel Unit=IT Location=sunbury State=vic Country=AU
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : SHA_STRING=Australia/Melbourne10.99.33.1autouccx810.99.10.129255.255.255.010.99.33.11.1.1.1nonedogtelITsunburyvicAU
[13/04/13_10:40:12] /usr/local/bin/base_scripts/LicenseMac.sh: : License Mac is 401e344c15b


This means that, because the SHA algorithm does not change, you can recalculate the same digest, over and over again, provided the same parameters are used as input. Very much like a pre shared key.

I am sure that Cisco has it documented somewhere, the way the license MAC is computed, but i thought it would be use full to actually see it used in a log file.

Take care.

1 comment:

  1. The information is quite descriptive about the generation of unique MAC Address . Thanks for sharing such great information

    Regards
    Silvester Norman

    Change Mac Address

    ReplyDelete