<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pushkar bhatkoti's blog........... &#187; how download MOH file from CCM5x 6x 7x server</title>
	<atom:link href="http://pushkarbhatkoti.wordpress.com/category/ccm-5x-6x-7x-stuffs/how-download-moh-file-from-ccm5x-6x-7x-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushkarbhatkoti.wordpress.com</link>
	<description>Just another CCIE voice certified person's blog....</description>
	<lastBuildDate>Mon, 07 Sep 2009 15:06:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='pushkarbhatkoti.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6d139ceb5b354b59d6e3f1222585db12?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Pushkar bhatkoti's blog........... &#187; how download MOH file from CCM5x 6x 7x server</title>
		<link>http://pushkarbhatkoti.wordpress.com</link>
	</image>
			<item>
		<title>How to download music-on-hold (MOH) file from CCM5x 6X 7X server</title>
		<link>http://pushkarbhatkoti.wordpress.com/2009/01/08/how-to-download-music-on-hold-moh-file-from-ccm5x-6x-7x-server/</link>
		<comments>http://pushkarbhatkoti.wordpress.com/2009/01/08/how-to-download-music-on-hold-moh-file-from-ccm5x-6x-7x-server/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 10:02:38 +0000</pubDate>
		<dc:creator>pushkarbhatkoti</dc:creator>
				<category><![CDATA[how download MOH file from CCM5x 6x 7x server]]></category>
		<category><![CDATA[how to download moh file from cisco call manager 5x 6x 7x]]></category>

		<guid isPermaLink="false">http://pushkarbhatkoti.wordpress.com/?p=160</guid>
		<description><![CDATA[One of the our customer  was upgrading his CCM from 5 to  6 but wanted a fresh install of CCM6.x music on hold server (MOH). He installed CCM6 but didn&#8217;t have any clue of how to download the MOH file from the older server and put in the new server.
Therefore, he called the EXPERT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushkarbhatkoti.wordpress.com&blog=4335568&post=160&subd=pushkarbhatkoti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the our customer  was upgrading his CCM from 5 to  6 but wanted a fresh install of CCM6.x music on hold server (MOH). He installed CCM6 but didn&#8217;t have any clue of how to download the MOH file from the older server and put in the new server.</p>
<p>Therefore, he called the EXPERT [of courese me] for help. I never did this in the past so, I had to dig through google and fouund the solution for him and that really worked. I thot this will be helpful to the folks who are looking for downloading a moh file from ccm5/6/7 servers.</p>
<p>Its as easy as drinking a beer in a BAR.</p>
<p><span style="color:#3366ff;"><span style="font-size:small;"><span style="text-decoration:underline;">Step#1: SSH to CCM 5/6/7x publisher</span></span></span><span style="color:#3366ff;"><span style="font-size:medium;"><span style="text-decoration:underline;"><br />
</span></span></span><br />
Unfortunately, there is no way we can pull moh file via GUI interface. The only way I know is via CLI.</p>
<p>You can use putty.exe if you are a windows  fane or I use ubuntu so i just open a terminal windows and simply use &#8217;ssh root@ccmip&#8217; to log into call manager publisher. After ssh you will get a prompt similar below:</p>
<p><span style="color:#dc2300;"><strong>admin:</strong></span></p>
<h3><span style="text-decoration:underline;"><span style="color:#0000ff;">Step#2  Setup a FTP server to put  file from moh server to a ftp server.</span></span></h3>
<p>Setup a SFTP server. I use SSHD as a SFTP server. For windows you can download filezilla sftp server from below url:<a href="http://filezilla-project.org/">http://filezilla-project.org/</a></p>
<p>Create a username and password in sftp. We will use this username and password in step #$</p>
<h3><span style="text-decoration:underline;"><span style="color:#0000ff;">Step#3  List MOH related filesin the call manager</span></span></h3>
<p>Use a command called &#8220;file list activelog mohprep/*&#8221; to list all moh files in the mohprep directory.<br />
You will see output similar to below:<br />
<span style="color:#dc2300;"><strong>admin:</strong></span>file list activelog mohprep/*   ← note  * means all files<br />
<span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.alaw.wav</span></span></p>
<p><span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.g729.wav</span></span></p>
<p><span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.ulaw.wav</span></span></p>
<p><span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.wb.wav</span></span></p>
<p><span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.xml</span></span></p>
<p><span style="font-size:x-small;"><span style="font-style:normal;">CiscoMOHSourceReport.xml</span></span></p>
<p><span style="color:#3366ff;"><span style="text-decoration:underline;">Step#4 Download the moh files to a SFTP server</span></span></p>
<p>Use  a command called &#8220;file get activelog mohprep/filename&#8221;to download above listed file(s).</p>
<p>example:</p>
<p><span style="color:#dc2300;"><strong>admin:</strong></span>file get activelog mohprep/ <span style="font-size:x-small;"><span style="font-style:normal;">SampleAudioSource.alaw.wav</span></span><br />
Enter SFTP server IP:  4.2.2.2  ← SFTP server IP<br />
Enter SFTP username: test<br />
Enter SFTP password: test</p>
<p>Thats all, your file is transferred to the FTP Server and you can use GUI interface to put the file to a new/other call manager publisher.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;snippet&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color:#0000ff;">admin:file list activelog mohprep/*<br />
CiscoMOHSourceReport.xml                SampleAudioSource.alaw.wav<br />
SampleAudioSource.g729.wav              SampleAudioSource.ulaw.wav<br />
SampleAudioSource.wb.wav                SampleAudioSource.xml<br />
dir count = 0, file count = 6<br />
admin:<br />
admin:<br />
admin:file list activelog mohprep/*<br />
CiscoMOHSourceReport.xml                SampleAudioSource.alaw.wav<br />
SampleAudioSource.g729.wav              SampleAudioSource.ulaw.wav<br />
SampleAudioSource.wb.wav                SampleAudioSource.xml<br />
dir count = 0, file count = 6<br />
admin:<br />
admin:file get<br />
file get activelog<br />
file get inactivelog<br />
file get install<br />
file get tftp</span></p>
<p>admin:file get active<br />
admin:file get activelog ?<br />
Syntax:<br />
file get activelog file-spec [options]<br />
file-spec   mandatory   file to transfer<br />
options     optional    reltime months|weeks|days|hours|minutes timevalue<br />
abstime hh:mm:MM/DD/YY hh:mm:MM/DD/YY<br />
match regex<br />
recurs</p>
<p>admin:file get activelog mohprep/SampleAudioSource.xml<br />
Please wait while the system is gathering files info &#8230;done.<br />
Sub-directories were not traversed.<br />
Number of files affected: 1<br />
Total size in Bytes: 606<br />
Total size in Kbytes: 0.5917969<br />
Would you like to proceed [y/n]? y<br />
SFTP server IP: 172.16.16.111<br />
SFTP server port [22]:<br />
User ID: push<br />
Password: ********<br />
Download directory: /home/push</p>
<p>This is the script when you add moh file and that gets replicated to all nodes:</p>
<p>[root@ccm5 bin]# more moh_do_backup.sh<br />
#!/bin/bash<br />
#<br />
# moh_do_backup.sh script will make a tar ball for backup targets<br />
#<br />
# SYNOPSIS<br />
# moh_do_backup.sh &lt;log path&gt; &lt;status file path&gt; &lt;target node&gt;<br />
#</p>
<p>#<br />
# Checking parameters<br />
#<br />
if [ $# -lt 3 ]<br />
then<br />
echo &#8220;Usage: $0 &lt;log path&gt; &lt;status file path&gt; &lt;target node&gt;&#8221;<br />
exit 1<br />
fi</p>
<p>LOGFILE=$1<br />
STATUS_FILE=$2<br />
NODE=$3</p>
<p>echo &#8220;0&#8243;  &gt; $STATUS_FILE</p>
<p>echo &#8220;Starting MOH backup&#8221; &gt;&gt; ${LOGFILE}</p>
<p>sudo -u root /bin/tar cvfpP &#8211; /usr/local/cm/sftp/mohprep/* 2&gt;&gt;${LOGFILE} | sudo<br />
-u drfuser ssh drfuser@${NODE}</p>
<p>RESULT=$?</p>
<p>if [ $RESULT -gt 0 ]<br />
then<br />
echo &#8220;MOH: Backup failed ($RESULT)&#8221;  &gt;&gt; ${LOGFILE}<br />
exit 106<br />
fi</p>
<p>#<br />
# update status file to 100%<br />
#<br />
echo &#8220;100&#8243; &gt; $STATUS_FILE</p>
<p>echo &#8220;MOH: Finished backup&#8221; &gt;&gt; ${LOGFILE}<br />
exit 0</p>
<p>[root@ccm5 bin]#<br />
[root@ccm5 bin]#<br />
<span style="color:#ff0000;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;end of snippetts&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p>Push</p>
<p>CCIE voice#21569<br />
blog: pushkarbhatkoti.wordpress.com</p>
<p style="margin-bottom:0;">
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushkarbhatkoti.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushkarbhatkoti.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushkarbhatkoti.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushkarbhatkoti.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushkarbhatkoti.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushkarbhatkoti.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushkarbhatkoti.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushkarbhatkoti.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushkarbhatkoti.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushkarbhatkoti.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushkarbhatkoti.wordpress.com&blog=4335568&post=160&subd=pushkarbhatkoti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pushkarbhatkoti.wordpress.com/2009/01/08/how-to-download-music-on-hold-moh-file-from-ccm5x-6x-7x-server/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89c6928aa356ad85cfc4a6752fea7f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pushkarbhatkoti</media:title>
		</media:content>
	</item>
	</channel>
</rss>