Extracting the MoH file from CUCM

something i noticed while looking through the DRF was the location of the MoH files,

====================================
Server        : BMML-PUB
Feature       : CCM
Component     : MOH
Time Completed: 2011-12-01-09-37-57
Result Code   : 0
Result String : SUCCESS
===================================

moh_do_backup.py: Backing up the MOH files
/usr/local/cm/sftp/mohprep/CiscoMOHSourceReport.xml
/usr/local/cm/sftp/mohprep/SampleAudioSource.alaw.wav
/usr/local/cm/sftp/mohprep/SampleAudioSource.g729.wav
/usr/local/cm/sftp/mohprep/SampleAudioSource.ulaw.wav
/usr/local/cm/sftp/mohprep/SampleAudioSource.wb.wav
/usr/local/cm/sftp/mohprep/SampleAudioSource.xml
MOH Backup successful.

I decided to find out how to extract the files from CUCM to be used on CME, heres how:-

SSH to the cucm

1) apply the following command to view the file:

admin:file list activelog mohprep/SampleAudioSource.alaw.wav
SampleAudioSource.alaw.wav
dir count = 0, file count = 1

2) after starting your SFTP server on the remote computer, enter the following:

admin:file get activelog mohprep/SampleAudioSource.alaw.wav
SampleAudioSource.alaw.wav
dir count = 0, file count = 1
admin: file get activelog mohprep/SampleAudioSource.alaw.wav
Please wait while the system is gathering files info …done.
Sub-directories were not traversed.
Number of files affected: 1
Total size in Bytes: 2702728
Total size in Kbytes: 2639.3828
Would you like to proceed [y/n]? y
SFTP server IP:

Please enter a valid value for SFTP server IP.
SFTP server IP: 192.168.255.102
SFTP server port [22]:
User ID: admin
Password: *****

Download directory: /

The authenticity of host ‘192.168.255.102 (192.168.255.102)’ can’t be established.
RSA key fingerprint is 8a:55:d4:d2:4b:f3:0e:34:60:92:80:f0:eb:13:b2:3c.
Are you sure you want to continue connecting (yes/no)? y
.
Transfer completed.
admin:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s