cucm

4
How to add free cisco licenses to Cisco Unified Communications Manager 7.x 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 no comment_link Print White Papers Webcasts Solution Centers News Blogs Newsletters Videos Events More How to add free cisco licenses to Cisco Unified Commun... http://www.networkworld.com/community/node/41136... 1 of 4 03/27/2013 03:55 PM

Upload: muhammad-adeel

Post on 02-Dec-2015

78 views

Category:

Documents


6 download

DESCRIPTION

cucm

TRANSCRIPT

Page 1: Cucm

How to add free cisco licenses to Cisco Unified Communications Manager7.x

This process should only be used in "your Lab environment", furthermoreyou should never use this process in a production environment, do thisprocess at your own risk, this process is for educational purposes only

I have test the process succesfully inUCM version 7.x7845-H1The integrity of both partition are good after thetrick, data and contentsYou must have experience with vi and linuxThis trick should work on all Cisco IPT products runninglinux 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 withRoot Rights, to do this follow the following stepsSo, 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 accountadmin:utils remote_account enable-Proceed to create a remote_account useradmin:utils remote_account create [ournew_remote_account_username] [amount of day's thatwe want this account to remain active]exampleadmin:utils remote_account create ciscotac 30-the above example will create a remote account user named ciscotac and it will be validfor 30 days.-Once we have succesfully created a remote_account we will proceed to reboot the servercleanly.admin:utils system restart-Proceed to insert the CentOS 5.2 Disk 1-on the Boot option enter linux rescueboot: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 SSHclient login to UCM using the remote account username and password, you will seethe following messageWelcome to Remote Support[root@EDGE1 ~]#

-Now once in the box logged in as a member of the Cisco Tac Team, proceed todo the following[root@EDGE1 ~]# cd /usr/local/platform/bin[root@EDGE1 bin]#vi LicenseScript.shThe original script should look like this**********************************

LicenseScript.sh, which is the one that controls the activation of thelicense engine, basically it stops and starts the LicenseMgr servicethis file is located in/usr/local/platform/bin

#!/bin/bash

.

no comment_link Print

White Papers Webcasts Solution Centers

News Blogs Newsletters Videos Events More

How to add free cisco licenses to Cisco Unified Commun... http://www.networkworld.com/community/node/41136...

1 of 4 03/27/2013 03:55 PM

Page 2: Cucm

## LicenseScript.sh## Copyright (c) 2005-2006, 2008 by Cisco Systems, Inc.# All rights reserved.#if [ $# -lt 1 ]thenecho "Usage: $0 start/stop/restart"exit 1fisource /usr/local/bin/base_scripts/ihardware.sh# We need to do a hardware check here.# Invoke the ihardware APIhwmodel="$(getHardwareModel)"INSTALL_ROOT="/usr/local/platform"EXE="CiscoLicenseMgr"if [ "$hwmodel" = "vmware" ]; thenARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml"elseARGUMENT="/usr/local/cm/conf/LicensingCfg.xml"fiTMP_FILE="/tmp/CiscoLicenseTmp"PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid"MAXTIME=120export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib"status() {if [ -f ${PIDFILE} ]; thenLICPID=`cat ${PIDFILE}`ps -c $LICPIDif [ "${?}" = "0" ]thenecho $EXE is runningreturn 0fifiecho $EXE is not runningreturn 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 ]thenecho "Usage: $0 start/stop/restart"exit 1fisource /usr/local/bin/base_scripts/ihardware.sh# We need to do a hardware check here.# Invoke the ihardware APIhwmodel="$(getHardwareModel)"INSTALL_ROOT="/usr/local/platform"EXE="CiscoLicenseMgr"if [ "$hwmodel" = "vmware" ]; thenARGUMENT="/usr/local/cm/conf/LicensingCfg.xml"elseARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml"fiTMP_FILE="/tmp/CiscoLicenseTmp"PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid"MAXTIME=120export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib"status() {if [ -f ${PIDFILE} ]; thenLICPID=`cat ${PIDFILE}`ps -c $LICPIDif [ "${?}" = "0" ]thenecho $EXE is runningreturn 0fifiecho $EXE is not runningreturn 1}

---Basically what we modified in the above script is swapthe VMLicensingCfg.xml for Licensingcfg.xml positions.

How to add free cisco licenses to Cisco Unified Commun... http://www.networkworld.com/community/node/41136...

2 of 4 03/27/2013 03:55 PM

Page 3: Cucm

Colocation Services from Time Warner Cable BusinessClass. Learn more.- Time Warner Cable

Download the Definitive Guide to Next-GenerationThreat Protection- FireEye

Imagine a future shaped by simplicity. See it at HPDiscover 2013. Register Now.- HP

Business Can't Wait to Connect to the Cloud Far 7-Comcast

HP Bladesystem pays you back in just over 7 months-HP

The #1 real-time network mapping tool. Free 30-daytrial.- InterMapper

BlackBerry® for business. Built to keep your businessmoving.- BlackBerry

Oracle CloudWorld NYC is on April 2nd. Register free-Oracle

Oracle CloudWorld NYC. One day. 30 sessions.Register free here- Oracle

Spend over 70% of your budget on innovation ratherthan operations with HP Converged Infrastructure- HP

BlackBerry® Live™: Sessions & strategies for yourmobile business- BlackBerry

Join the Peer-Driven Community For All Things Mobility-Citrix

Check out Eaton's industry leading virtualizationsolutions.- Eaton

Adobe ColdFusion 10 - Craft secure and reliable onlineexperiences- Adobe Systems Inc.

Cisco Unified Workspace provides a solution for creatingan organization-wide mobility strategy.- Cisco Systems

Analytics, BW mgmt, filtering & app control in 1 boxstarts @ $1995.- Cymphonix

Splunk - Big Data goes in, business insights come out.Learn More.- Splunk

Simpana® 10: An exponential leap forward in datamanagement software.- CommVault

Redefine Mobility Mgmt at Enterprise Mobile Hub-Blackberry

Clustered Apps or Virtual Servers Waiting on Storage?Not anymore.- QLogic Corporation

Get an edge with high-performance colocation. Take atour.- Internap

Sponsored Links Resource Center

Free 90 Day Trial of Device CloudAdd new services, compete with thebig guys. The Everyware Cloud. Learnmore.

Phoenix NAP Colocation SolutionsMeet your colocation needs whereveryou are. Half and Full cabs available.

See your link here

Network World's DailyNewsletter

Network World, Inc The Connected Enterprise

Other IDG Sites

---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 valuesof the files respectively, ie nodes amount ( you should see >150< thatsthe amount of dlu's currently, here is where you can change the amount towhatever you want, using vi change the values in theLicenseParams.xml and VMLicenseParams.xml files "the new values need to match" inboth files in order for the crack to work. Once you have modified both files with thevalues 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 restartfrom 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 toplay with.

Q&A

Can you go backwards to the other partition and still have the DLU's, nope, everytimeyou 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 partitionbut you still have those dlu's in your crack partition. So what you want to do iswhenever you upgrade to a new partition is first backup your info, then do the hack on theupgrade partition then do a restore and that should be it!

Email this page Printer-friendly version Permalink

no comment_link Print

How to add free cisco licenses to Cisco Unified Commun... http://www.networkworld.com/community/node/41136...

3 of 4 03/27/2013 03:55 PM

Page 4: Cucm

Sign-up

Stay up to date with the most important

tech news

About Us

Careers @ IDG

Contact Us

Subscribe toNetwork WorldMagazine

NewsletterSubscriptions

Advertise

Reprints & Links

Partnerships

AdChoices

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

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

How to add free cisco licenses to Cisco Unified Commun... http://www.networkworld.com/community/node/41136...

4 of 4 03/27/2013 03:55 PM