CUCM - Template Notes
Summary
The tar files in this template are intended to build a CUCM Foundation with BAT Import feature. Click here for sample variables Recommended Software needed
You can edit the .csv files with excel to manually find/replace the template variables. However, the GNU sed command can used to find/replace text without having to open each file. - Linux OS - CYGWIN (Windows) sed Scripts
- use the linux/cygwin cli to navigate to folder where the tar files are located. - run the the following sed commands to replace variables placed in the CUCM templates Descriptions
Core BAT Template The core template includes base CUCM configurations and one site. This one site should be your primary site. If you are only deploying one site, this is the only template you need to import. Template Import - Branch BAT The branch template includes CUCM configurations just for one site. The branch template will not work alone. The Core BAT Template must first be deployed. This should be used only for branch locations. Variables
CUCM Host: [[CUCM-FQDN]] IM&P Host: [[IMP-FQDN]] Domain Name: [[DOMAIN-NAME]] Location Short Name: [[Location Short Name]] Location Description Prefix: [[Location Description Prefix]] Location Gateway IP Address: [[Location Gateway IP Address]] BAT Source Tar File: [[BAT Tar File]] Import Version: [[Import version]] Extract the Core Tar file, replace variables and tar the file again
cd /path/to/BAT-CSV-FILES mkdir BAT-[[BAT Tar File]] && cd BAT-[[BAT Tar File]]/ tar -xvf ../[[BAT Tar File]] sed -i'' 's/CUCM-FQDN/[[CUCM-FQDN]]/g' * sed -i'' 's/IMP-FQDN/[[IMP-FQDN]]/g' * sed -i'' 's/DOMAIN-NAME/[[DOMAIN-NAME]]/g' * sed -i'' 's/TEMPLATE-/[[Location Short Name]]-/g' * sed -i'' 's/Description-Prefix/[[Location Description Prefix]]/g' * sed -i'' 's/GATEWAY_IP_ADDRESS/[[Location Gateway IP Address]]/g' * tar -cvf ../[[Location Short Name]]-import[[Import version]].tar * cd .. Extract the SITE Tar file, replace variables and tar the file again
cd /path/to/BAT-CSV-FILES mkdir BAT-[[BAT Tar File]] && cd BAT-[[BAT Tar File]]/ tar -xvf ../[[BAT Tar File]] sed -i'' 's/TEMPLATE-/[[Location Short Name]]-/g' * sed -i'' 's/Description-Prefix/[[Location Description Prefix]]/g' * sed -i'' 's/GATEWAY_IP_ADDRESS/[[Location Gateway IP Address]]/g' * tar -cvf ../[[Location Short Name]]-import[[Import version]].tar * cd .. If you have questions, feel free to email me: jhorton@blindhog.net



CUCM-FQDN:
IMP-FQDN:
DOMAIN-NAME:
Location Short Name:
Location Description Prefix:
Location Gateway IP Address:
BAT Tar File:
Import version:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: