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

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/ : Xml parser is located at /usr/local/bin/base_scripts/xmlfoo
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : Platform conf file located at /usr/local/platform/conf/platformConfig.xml
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : platform is vmware = 0
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : TimeZone is Australia/Melbourne
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : NTP server is ""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : NICAuto="yes" NICSpeed="" NICDuplex=""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : HostName=uccx8
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : HostIP= and HostMask= and HostGateway=
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : PrimaryDNS=""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : SMTP server=""
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : ORG=dogtel Unit=IT Location=sunbury State=vic Country=AU
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : SHA_STRING=Australia/Melbourne10.99.33.1autouccx810.99.10.129255.
[13/04/13_10:40:12] /usr/local/bin/base_scripts/ : 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

    Silvester Norman

    Change Mac Address