cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1757
Views
0
Helpful
5
Replies

CE9 XML API - Multiline commands

tomas_vll
Level 1
Level 1

Hi!

 

I have been trying to create XML commands to do the branding on Touch10 that CE9.2 introduced. I can make the commands in CLI (SSH) and execute single line XML commands over http. The braniding commands contain the image Base64 encoded. There is no example I could find on how to construct the XML command for multine commands. Does anybody know?

 

Thanks in advance for any help! 

 

1 Accepted Solution

Accepted Solutions

Hi,

 

there is a macro related topic (https://supportforums.cisco.com/t5/telepresence/uploading-telepresence-macros-or-startup-scripts-via-api/m-p/3311652/highlight/true#M59261) that explains the multiline commands a bit, and it seems you have to use a <body></body> tag to send the contents of the command. I was trying this without much luck till now, but it might work with your command.

View solution in original post

5 Replies 5

Patrick Sparkman
VIP Alumni
VIP Alumni

Take a look at Custom Commands for Endpoint Configuration Templates in TMS, it includes details on how to build a multi-part XML string that can be sent to the endpoint which can be used with TMS custom commands.  Unfortunately, there isn't any documentation outside of the API Guides that covers the branding commands in specific detail.

Thanks for the reply. I have seen the custom commands in TMS guide. The problem isnt multiple commands - thats just a mater of filling the XML parse-tree,  I have been able to do that. The problem is the xCommand UserInterface Branding Upload type: Mode command. In CLI I can issu a command like this:

 

xCommand UserInterface Branding Upload type: HalfwakeBranding

iVBORw0KGgoAAAANSUhEUgAAAOcAAAEQCAYAAABLFGM1AAAxNUlEQVR4nO2dd9wcVdXHv+mFhB

[BASE64 data abbreviated]

Vy2Ra9z/D40tNf44ygZOAAAAAElFTkSuQmCC
.

 

Which works. Translating this command to XML is the problem.  There is a couple of these type of multiline commands available.

 

OK - So this is unknown terriroty. Should I open a support enquiry with Cisco to get help?

 

BTW: there is a error in the API documentation. "xConfiguration UserInterface OSD SettingsMenu Mode" should be "xConfiguration UserInterface SettingsMenu Mode".

Probably best, and you can also bring up the document defect to them as well so it can be corrected.

Hi,

 

there is a macro related topic (https://supportforums.cisco.com/t5/telepresence/uploading-telepresence-macros-or-startup-scripts-via-api/m-p/3311652/highlight/true#M59261) that explains the multiline commands a bit, and it seems you have to use a <body></body> tag to send the contents of the command. I was trying this without much luck till now, but it might work with your command.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: