xAPI SSH Command Parser

I have a requirement for one of my customers who has onsite support staff for their VC environment who need to routinely do maintenance tasks like creating or modifying macros, pulling data, executing remote call test plans, etc. SSH is not available for all endpoints due to network restrictions, and the teams needed a way to have L1 or L2 staff write text or yaml files of simple codec xapi ssh commands which could be executed from an cli executable from their laptops.

To support the development of this tool, , I wrote an Python library to support parsing codec ssh commands into XML.

The libary has been uploading to PyPi and is available here:
https://pypi.org/project/xapiparser/

The library has a single method to convert command strings into xml:

import xapiparser

xapi = 'xConfiguration Conference Encryption Mode'
xapiparser.parse(xapi)

In addition, a basic CLI interface is included:

$ xapiparser 'xConfiguration Conference Encryption Mode'
<Configuration>
 <Conference>
  <Encryption>
   <Mode/>
  </Encryption>
 </Conference>
</Configuration>

The source is on GitHub and is available here:
https://github.com/jonathanelscpt/xapiparser

Advertisement

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.