ronpichardo / crestron-ssh-cli

CLI tool used for automating some regularly used statuses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crestron-SSH-CLI

Overview

CLI tool for sending common commands to Crestron Devices.

Installation

Python Version: 3.7 Required Library - Paramiko

$ git clone https://github.com/ronpichardo/crestron-ssh-cli.git
$ cd crestron-ssh-cli
$ python3 -m venv myvenv
$ source myvenv/bin/activate
$ pip install -r requirements.txt

Usage

$ python3 main.py [OPTIONS] <filename>.csv flag=<all|update>

OPTIONS:

-v, --version - get version of devices provided into the csv file
-ch, --check-ports - gets the status of ports, returns if the port is on/off for webserver, ftpserver, ctpconsole, telnet
-cl, --close-ports - close ports if they are on/enabled for ftpserver, ctpconsole, telnet
-a, --adhoc - run a command passed in as an argument

FLAG: all - a flag set for the close-ports option, to include the shutdown of the webserver

Output example when running, including an IP that created an exception SShOutput

[Not yet implemented] update - an update to the version option, to update hardware if it is out of date

About

CLI tool used for automating some regularly used statuses


Languages

Language:Python 100.0%