Skip to content

CLI module for use in field solutions that supports SSH and Telnet

Notifications You must be signed in to change notification settings

tim-spiglanin/QualiLab-CLI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synposis

This package provides CLI functionality for use in Quali CloudShell field solutions.

Installation

The best way is to just add this package to your python environment/driver. So either: pip install qualilab_cli or add this package to the requirements.txt file of your driver.

Code Example

from QualiLab_CLI.Cli_Lib import Cli

session = Cli('localhost', 22, 'Telnet', 'USERNAME', 'PASSWORD', prompt_list=['.*>', '.*]', '.* ENTER'])

session.login()

result = session.send_and_receive('cli command')

print result

Motivation

Making CLI connections, sending commands, matching patterns, receiving output is the most commone operation for Quali CloudShell shells. This package simplifies this, and provides a unified interface for using either Telnet or SSH

About

CLI module for use in field solutions that supports SSH and Telnet

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%