cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
64
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11

Subject: XML response via SSH?
Replied by: Chris Swinney on 20-03-2012 09:56:34 AM
hi,

I have been dabbling with some applications use SSH as my primary interface protocol. I essentially issue commands via an SSH shell and read the reponse back from the shell, then analyse it.

This is all very well and quite simple especially with commands that produce simple responses. However, I'm look to do something a bit more involved and the text feedback from an SSH shell provide no real structure. Is there anyway to get a structured XML response back from an SSH shell prompt making it easier to parse the response? Further is there any way to then actually feed an XML formatted query to an SSH shell?

If so, it would mean that both queries could be passed, and responses could be parsed in XML no mater way the interface protocol used.

SSH is essential to the development of these applications.

PS - have been developing for the MXP, C series and VCS range of hardware.

Chris
This document was generated from CDN thread

Created by: David Bruun-Lie on 20-03-2012 10:22:15 AM
Chris,
yes this is possible on the C-series API over ssh. When logging in issue the command "xpreferences outputmode xml" and voilla, all response from commands, events etc are now xml'ed.

Cheers,
David
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:

Quick Links