Posts

Showing posts with the label SSH

How to - Install Python and Paramiko in offline Windows environment (Optimized Method)

After using more and more Paramiko and Python for automation of endpoint testing and changed requirements for the the usage of Paramiko in newer versions my old how-to  becomes outdated. With the newest release of Python, Python 3.6 , I started to optimize the installation process to reduce complexity and make the installation process more simple. Instead of downloading manually all required files from the different homepages I use Python included functions for this work.  Step by Step overview: 1. Creation of reference system For preparation of the required files and for verification I'm using normally a test system i setup in VMware Fusion on my MacBook. For the Microsoft operating system I use the trial version from Microsoft Technet Evaluation Center for 180 days testing. After the system is finally setup based on my requirements I create a snapshot to have a valid reference point for my installation. 2. Installation of Python in reference system and downloadin

How to - Install Python 3.4 and Paramiko in offline Windows environment

Image
This how to is based on Python 3.4, a how to for for newer Python releases will follow. PyCrypt is not maintained anymore and other solution are recommended to use with newer Paramiko releases. An updated version can be found here . In my last post I described how to use Python and Paramiko to delete a CTL file from a Cisco SIP phone during a migration. In the preparation phase of the migration I was confronted with the challenge to install Python on a Windows server in our management environment without direct Internet access. To install Python and Paramiko you need the following packages on your Windows machine: Python installation package  3.4.3 PyCrypt installation package  2.61 Paramiko installation package   ecdsa installation package  0.13 The required installation pacakages for Python,  PyCrypt and Paramiko are easy to find compared to the ecdsa installation package. The versions I found using Google were not compatible with Paramiko. So I used the download l

How to - Removing CTL and ITL from 7900-series phones via SSH

Image
Which Cisco UC engineer does not know the challenge when he runs a CUCM in mixed mode: How to remove a Certificate Trust List on a phone nobody has physical access to during a CUCM migration? The normal way like using the same security tokens on old and new CUCM is not possible. Sending somebody on site during the migration is also not possible. These limitations raised the need for an alternate solution. After some testing, I decided to create a small Python script. The final script connects via SSH to the phone and uses the test key functions of the Cisco SIP phone debug-mode to press the required phone buttons via command line interface. Main requirement is to enable SSH for phone on the CUCM and to configure a username and password for the SSH access. The following script is based on Python 3.4 and uses as additionally Paramiko for the possibility to connect via SSH to the Cisco IP phones. Besides Paramiko also the time class is required to implement some d