Custom Commands For Endpoint Configuration Templates in TMS: Document ID: 117357
Custom Commands For Endpoint Configuration Templates in TMS: Document ID: 117357
Templates in TMS
Document ID: 117357
Contributed by Jason Shupe and Adam Wamsley, Cisco TAC Engineers.
Feb 19, 2014
Contents
Introduction
Prerequisites
Requirements
Components Used
Related Products
Configure
Create Simple Command Strings
Create Multi−Part Command Strings
Create Multi−Task Command Strings
Create Simple Configuration Strings
Create Multi−Part Configuration Strings
Create Multi−Task Configuration Strings
Add Created XML Strings to TMS Custom Template
Verify
Troubleshoot
Introduction
This document describes how to configure custom command templates or custom configuration templates
from the Cisco TelePresence Management Suite (TMS).
Prerequisites
Requirements
Cisco recommends that you have knowledge of these topics:
• Web access to TMS with sufficient privileges in order to access Systems > Configuration Templates
> Configuration Templates
• Web access to an endpoint that is running Cisco Telepresence TC software with sufficient privileges
in order to access Configuration > API > /command.xml or /configuration.xml
• Secure Shell (SSH) or Telnet access to the endpoint with administrator level privileges
Components Used
The information in this document is based on these software and hardware versions:
The information in this document was created from the devices in a specific lab environment. All of the
devices used in this document started with a cleared (default) configuration. If your network is live, make sure
that you understand the potential impact of any command.
Related Products
This document can also be used with these hardware and software versions:
Configure
Create Simple Command Strings
Caution: Custom templates send the APIs configured within the templates but do not apply those changes to
the endpoint's known configuration in TMS. While a 'force refresh' updates most settings, a password change
done through the API causes TMS to lose connectivity with the endpoint until the password is updated within
the connection settings of the endpoint in TMS.
Custom command templates are commonly used in order to set administrator passwords, because there is no
predefined template in TMS for endpoints that run TC software. This example uses the /command.xml file.
Navigate to Configuration > API>/command.xml, and review the /command.xml file located in the endpoint
web interface:
Notice that the format is the same as the xCommand string with the exception of the closing tags necessary for
XML. This yields the XML string that changes the AdminPassword:
<Command>
<SystemUnit>
<AdminPassword>
<Set>
<Password>NewPassword</Password>
</Set>
</AdminPassword>
</SystemUnit>
</Command>
Compare the command string to the /command.xml file. This yields the equivalent XML string:
<Command>
<HttpFeedback>
<Register>
<FeedbackSlot>1</FeedbackSlot>
<ServerUrl>http://172.30.10.7/tms/public/feedback/code.aspx</ServerUrl>
<Expression item="1">/History/CallLogs/Call</Expression>
<Expression item="2">/Status/Call[Status='Connected']</Expression>
<Expression item="3">/Status/H323/Gatekeeper</Expression>
<Expression item="4">/Status/SIP/Registration</Expression>
<Expression item="5">/Status/Network/Ethernet/Speed</Expression>
<Expression item="6">/Event/CallSuccessful</Expression>
<Expression item="7">/Event/Message/Prompt/Response</Expression>
<Expression item="8">/Configuration</Expression>
<Expression item="9">/Event/CallDisconnect</Expression>
<Expression item="10">/Status/Call</Expression>
</Register>
</HttpFeedback>
</Command>
<Command>
<HttpFeedback>
<Register>
<FeedbackSlot>1</FeedbackSlot>
<ServerUrl>http://172.30.10.7/tms/public/feedback/code.aspx</ServerUrl>
<Expression item="1">/History/CallLogs/Call</Expression>
<Expression item="2">/Status/Call[Status='Connected']</Expression>
<Expression item="3">/Status/H323/Gatekeeper</Expression>
<Expression item="4">/Status/SIP/Registration</Expression>
<Expression item="5">/Status/Network/Ethernet/Speed</Expression>
<Expression item="6">/Event/CallSuccessful</Expression>
<Expression item="7">/Event/Message/Prompt/Response</Expression>
<Expression item="8">/Configuration</Expression>
<Expression item="9">/Event/CallDisconnect</Expression>
<Expression item="10">/Status/Call</Expression>
</Register>
</HttpFeedback>
<SystemUnit>
<AdminPassword>
<Set>
<Password>NewPassword</Password>
</Set>
</AdminPassword>
</SystemUnit>
</Command>
Review the /command.xml file and see how it maps to the custom multi−task command string:
Create Simple Configuration Strings
This example sets the DefaultCall protocol to H323. This is the SSH/Telnet command:
Xconfiguration Conference DefaultCall protocol: H323
Compare the command string to the /command.xml file. This yields the equivalent XML string:
<Configuration>
<Conference>
<DefaultCall>
<Protocol>H323</Protocol>
</DefaultCall>
</Conference>
</Configuration>
<Configuration>
<H323>
<Profile>
<H323Alias>
<ID>c40−1.lab.h323@tac.lab</ID>
<E164>180004</E164>
</H323Alias>
<CallSetup>
<Mode>Gatekeeper</Mode>
</CallSetup>
<Gatekeeper>
<Address>taccluster.tac.lab</Address>
<Discovery>Manual</Discovery>
</Gatekeeper>
</Profile>
</H323>
<Sip>
<Profile>
<URI>c40−1.lab.sip@tac.lab</URI>
<DefaultTransport>Auto</DefaultTransport>
<Proxy item="1">
<Discovery>Manual</Discovery>
<Address>taccluster.tac.lab</Address>
</Proxy>
</Profile>
</Sip>
</Configuration>
Once you have the XML string identified, add the string to a custom command or configuration template. This
procedure describes how:
1. In the TMS web interface, navigate to Systems > Configuration Templates > Configuration
Templates, and select New Configuration Template:
2. Click the Select Advanced Settings tab, and enter the word custom in the Filter text field under Cisco
TelePresence Group Systems:
3. Check the box next to the appropriate setting (Custom Command and/or Custom Configuration), and
click the right arrow (>) to move it.
6. Select Save.
Verify
There is currently no verification procedure available for this configuration.
Troubleshoot
There is currently no specific troubleshooting information available for this configuration.