You are on page 1of 4

How to add free cisco licenses to Cisco Unied Commun...

http://www.networkworld.com/community/node/41136...

News

Blogs

Newsletters

Videos

Events

More

White Papers

Webcasts

Solution Centers

How to add free cisco licenses to Cisco Unified Communications Manager 7.x
.

no comment_link

Print

This process should only be used in "your Lab environment", furthermore you should never use this process in a production environment, do this process at your own risk, this process is for educational purposes only I have test the process succesfully in UCM version 7.x 7845-H1 The integrity of both partition are good after the trick, data and contents You must have experience with vi and linux This trick should work on all Cisco IPT products running linux of course. The license process involve 3 files -LicenseScript.sh Located in /usr/local/platform/bin -LicenseParams.xml Located in /usr/local/cm/conf -VMLicenseParams.xml Located in /usr/cm/conf First and fost most, you must gain access to the UCM with Root Rights, to do this follow the following steps So, I will call this the Remote Account Process. On a working server or environment we will do the following: -Connect to the UCM Console using an SSH Client -Proceed to a enable a remote account admin:utils remote_account enable -Proceed to create a remote_account user admin:utils remote_account create [ournew_remote_account_username] [amount of day's that we want this account to remain active] example admin:utils remote_account create ciscotac 30 -the above example will create a remote account user named ciscotac and it will be valid for 30 days. -Once we have succesfully created a remote_account we will proceed to reboot the server cleanly. admin:utils system restart -Proceed to insert the CentOS 5.2 Disk 1 -on the Boot option enter linux rescue boot:linux rescue -Once you are in the linux shell -Proceed to do the following #chroot /mnt/sysimage #lsattr /etc/passwd /etc/group /etc/shadow /etc/gshadow #chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow #passwd [enter the username that you have created for the remote account user] -Enter the new password that you want for the new remote account user twice -eject the CentOS 5.2 DISK 1 -Reboot the server by doing the following #shutdown -r now -Once Unified Communications Manager have completed rebooted, simply using an SSH client login to UCM using the remote account username and password, you will see the following message Welcome to Remote Support [root@EDGE1 ~]# -Now once in the box logged in as a member of the Cisco Tac Team, proceed to do the following [root@EDGE1 ~]# cd /usr/local/platform/bin [root@EDGE1 bin]#vi LicenseScript.sh The original script should look like this********************************** LicenseScript.sh, which is the one that controls the activation of the license engine, basically it stops and starts the LicenseMgr service this file is located in /usr/local/platform/bin #!/bin/bash

1 of 4

03/27/2013 03:55 PM

How to add free cisco licenses to Cisco Unied Commun...


# # LicenseScript.sh # # Copyright (c) 2005-2006, 2008 by Cisco Systems, Inc. # All rights reserved. # if [ $# -lt 1 ] then echo "Usage: $0 start/stop/restart" exit 1 fi source /usr/local/bin/base_scripts/ihardware.sh # We need to do a hardware check here. # Invoke the ihardware API hwmodel="$(getHardwareModel)" INSTALL_ROOT="/usr/local/platform" EXE="CiscoLicenseMgr" if [ "$hwmodel" = "vmware" ]; then ARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml" else ARGUMENT="/usr/local/cm/conf/LicensingCfg.xml" fi TMP_FILE="/tmp/CiscoLicenseTmp" PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid" MAXTIME=120 export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib" status() { if [ -f ${PIDFILE} ]; then LICPID=`cat ${PIDFILE}` ps -c $LICPID if [ "${?}" = "0" ] then echo $EXE is running return 0 fi fi echo $EXE is not running return 1 } *********************************************************** Your new script should now look like this****************** #!/bin/bash # # LicenseScript.sh # # Copyright (c) 2005-2006, 2008 by Cisco Systems, Inc. # All rights reserved. # if [ $# -lt 1 ] then echo "Usage: $0 start/stop/restart" exit 1 fi source /usr/local/bin/base_scripts/ihardware.sh # We need to do a hardware check here. # Invoke the ihardware API hwmodel="$(getHardwareModel)" INSTALL_ROOT="/usr/local/platform" EXE="CiscoLicenseMgr" if [ "$hwmodel" = "vmware" ]; then ARGUMENT="/usr/local/cm/conf/LicensingCfg.xml" else ARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml" fi TMP_FILE="/tmp/CiscoLicenseTmp" PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid" MAXTIME=120 export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib" status() { if [ -f ${PIDFILE} ]; then LICPID=`cat ${PIDFILE}` ps -c $LICPID if [ "${?}" = "0" ] then echo $EXE is running return 0 fi fi echo $EXE is not running return 1 } ---Basically what we modified in the above script is swap the VMLicensingCfg.xml for Licensingcfg.xml positions.

http://www.networkworld.com/community/node/41136...

2 of 4

03/27/2013 03:55 PM

How to add free cisco licenses to Cisco Unied Commun...


---Now we need to go to /usr/local/cm/conf [root@ucmpub1 conf]# Once you are in the above directory you will need to proceed to modify the values of the files respectively, ie nodes amount ( you should see >150< thats the amount of dlu's currently, here is where you can change the amount to whatever you want, using vi change the values in the LicenseParams.xml and VMLicenseParams.xml files "the new values need to match" in both files in order for the crack to work. Once you have modified both files with the values that you want, proceed to restart the service by going to [root@EDGE1 ~]# cd /usr/local/platform/bin [root@ucmpub1 bin]# ./LicenseScript.sh stop [root@ucmpub1 bin]# ./LicenseScript.sh start -Then proceed to exit the root console and go to the cisco cli , and do a restart from there not from the root console, this will screw up few things, admin:utils system restart Go to the ccmadmin page and enjoy your new dlu's The licensemanager was able to authenticate the process, and you now have new dlu's to play with. Q&A Can you go backwards to the other partition and still have the DLU's, nope, everytime you upgrade ucm, new rpms are added and most importantly, config files are matched, hence the hack on the script file goes back, hence you no longer have dlu's in this partition but you still have those dlu's in your crack partition. So what you want to do is whenever you upgrade to a new partition is first backup your info, then do the hack on the upgrade partition then do a restore and that should be it!
Email this page Printer-friendly version Permalink

http://www.networkworld.com/community/node/41136...

no comment_link

Print

Sponsored Links
Colocation Services from Time Warner Cable Business Class. Learn more.- Time Warner Cable Download the Definitive Guide to Next-Generation Threat Protection- FireEye Imagine a future shaped by simplicity. See it at HP Discover 2013. Register Now.- HP Business Can't Wait to Connect to the Cloud Far 7Comcast HP Bladesystem pays you back in just over 7 monthsHP The #1 real-time network mapping tool. Free 30-day trial.- InterMapper BlackBerry for business. Built to keep your business moving.- BlackBerry Oracle CloudWorld NYC is on April 2nd. Register freeOracle Oracle CloudWorld NYC. One day. 30 sessions. Register free here- Oracle Spend over 70% of your budget on innovation rather than operations with HP Converged Infrastructure- HP BlackBerry Live: Sessions & strategies for your mobile business- BlackBerry Join the Peer-Driven Community For All Things MobilityCitrix Check out Eaton's industry leading virtualization solutions.- Eaton Adobe ColdFusion 10 - Craft secure and reliable online experiences- Adobe Systems Inc. Cisco Unified Workspace provides a solution for creating an organization-wide mobility strategy.- Cisco Systems Analytics, BW mgmt, filtering & app control in 1 box starts @ $1995.- Cymphonix Splunk - Big Data goes in, business insights come out. Learn More.- Splunk Simpana 10: An exponential leap forward in data management software.- CommVault Redefine Mobility Mgmt at Enterprise Mobile HubBlackberry Clustered Apps or Virtual Servers Waiting on Storage? Not anymore.- QLogic Corporation Get an edge with high-performance colocation. Take a tour.- Internap

Resource Center
Free 90 Day Trial of Device Cloud Add new services, compete with the big guys. The Everyware Cloud. Learn more. Phoenix NAP Colocation Solutions Meet your colocation needs wherever you are. Half and Full cabs available.

See your link here

Network World's Daily Newsletter

Network World, Inc


The Connected Enterprise

Other IDG Sites

3 of 4

03/27/2013 03:55 PM

How to add free cisco licenses to Cisco Unied Commun...


About Us Careers @ IDG Contact Us Subscribe to Network World Magazine Newsletter Subscriptions Advertise Reprints & Links Partnerships AdChoices

http://www.networkworld.com/community/node/41136...

Stay up to date with the most important tech news

CFOworld CIO CITEworld Computerworld CSO DEMO IDG Connect

IDG Knowledge Hub IDG TechNetwork IDG Ventures InfoWorld ITwhitepapers ITworld JavaWorld

LinuxWorld MacWorld Network World PC World TechHive Technology Briefcase

Sign-up

Copyright 1994 - 2013 Network World, Inc. All rights reserved.

Privacy Policy

4 of 4

03/27/2013 03:55 PM

You might also like