Real Time Monitoring Tool on Mac OS X
Intro
Apparently this page was the most widely referenced page from my site. I was originally just going to take my site down for about a week while I was migrating but real life got in the way, and time just flew by, and then our daughter was born and I just haven't had the time to work on the site. After a couple of thousand emails (seriously.) I went ahead and put this back on a page for everyones use, and actually updated this with some new steps to follow.Preparation
Obviously first thing is first. Log into your CUCM and navigate to the plugins page and grab the Cisco Unified CM Real-Time Monitoring Tool - Linux. If you don't have this, please don't email me asking for the file. If you don't have this file, or access to it, then this page is NOT for you. The rest of this walkthrough assumes that you downloaded this to the default~/Downloads/
directory.Installation
Open up Terminal.app:macbookpro:~ ryan$ cd ~/Downloads macbookpro:Downloads ryan$ chmod +x ./CcmServRtmtPlugin.bin macbookpro:Downloads ryan$ ./CcmServRtmtPlugin.bin
At this point, you'll run through the installation screens. Just accept the defaults as they normally work for most folks.
macbookpro:Downloads ryan$ cd /Applications/JRtmt macbookpro:JRtmt ryan$ cp run.sh run.orig.sh macbookpro:JRtmt ryan$ vim run.sh
This opens
run.sh
up in vim. Here we'll just change the java that this script is trying to use. You can either change it to just java
or you can put the full path to java in place of it. For those of you who are vim challenged, or have no idea what I'm talking about, type the following into vim::%s/\.\/jre\/bin/\/usr\/bin/ :wq
Now you'll be back at the command prompt.
Now depending on what version of Java update you are on with your mac, you may or may not run. If you're on an older version (e.g. you haven't updated your Mac in a while) then you may just very well fire up and run just fine. For the rest of us that keep up to date, this should bomb out on us. So go ahead and see which crowd you're hanging out with. If you are on an updated machine, we want the app to bomb on us after the login window, so that it will put the
tzupdater.jar
file in the current directory. So at your command prompt:macbookpro:JRtmt ryan$ ./run.sh
Enter your CUCM IP Address, username and password, and the application will bomb on you, which as I said is just fine. If it didn't bomb out on you, and your in RTMT, then keep this page handy as you'll need to start here to get it running again once you update your Mac. You should see something like this at the end of the output in Terminal.app:
2010-11-01 08:22:28,496 [SplashThread] INFO rtmt.control - [INFO]Timezone ServerVersion:tzdata2009p 2010-11-01 08:22:28,496 [SplashThread] INFO rtmt.control - [INFO]Timezone ClientVersion:tzdata2010l 2010-11-01 08:22:28,496 [SplashThread] INFO rtmt.control - [INFO]Timezone isUpdateRequired:true 2010-11-01 08:22:28,678 [SplashThread] INFO rtmt.control - [INFO]tzupdater.jar downloaded to:/Applications/JRtmt/tzupdater.jar java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home java.vendor: Apple Inc. java.version: 1.6.0_22 JRE time zone data version: tzdata2010l There's no tzdata available for this Java runtime. macbookpro:JRtmt ryan$
To fix this issue, simply run the following command (I'm including the output as well):
macbookpro:JRtmt ryan$ sudo java -Djava.vendor="Sun Microsystems Inc." -jar ./tzupdater.jar -u -f -v java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home java.vendor: Sun Microsystems Inc. java.version: 1.6.0_22 JRE time zone data version: tzdata2010l Embedded time zone data version: tzdata2009p Extracting files... done. Renaming directories... done. Validating the new time zone data... done. Time zone data update is complete. macbookpro:JRtmt ryan$
That's it!!! Now try and run it again, you'll have to enter your information again for the login window, but afterwords this time you should fire right up into RTMT.
macbookpro:JRtmt ryan$ ./run.sh
Ok. So it runs now. Let's make it so you can run it from the GUI, instead of having to run the shell script every time.
Open up Applescript Editor. Add this single line:
do shell script "cd /Applications/JRtmt; ./run.sh"
Hit the run button and make sure it works for you. Once again, this assumes that you installed to the default location of
/Applications/JRtmt
. Assuming that it does work for you, click File > Save As, select Application
for the File Format and save this wherever you want. Probably in the JRtmt
folder would make the most sense, but you can do whatever you want.That's it. You're done. Have fun.
No comments:
Post a Comment