Posts

Showing posts with the label Scripting

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

My first Cisco Spark project - Phase 1: Ups and Downs and the PaaS Challenge

Image
After working approximately some time on my private Cisco Spark App, which combines the Cisco Openvuln API with the Cisco Spark API, I had several ups and downs during working on the code. During the first days I focused on Openvuln API and to understand OAuth. The first versions of the program is running on my laptop and was just for verification of the functions of the Openvuln API and to get my first experiences with OAuth. I used the Client Credential Grant of OAuth for the first programs, but the final goal is to create a web application using the Authorisation Code Grant. The topic web application was also part of one of the downs I experienced. Ups: - I get the Client Grant based OAuth authentication working to send requests to the Cisco Openvuln API. Based on the fact that I had no experience with OAuth and not much experience with programming, that was a real highlight for me after I get that running - I get the get the Cisco Spark API training labs running and g

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