Detect rogue in Cisco switches with Python

With this Python script, we will compare statically defined MAC address list with MAC addresses of selected Cisco switches for special VlanID. Statically defined MAC address list you must write in the “StaticMacs” file. If script couldn’t find statically defined “StaticMacs” file it will print you how you can prepare this with “createstaticmacs.py” script. “switchnotificator.py” […]

Read More Detect rogue in Cisco switches with Python

Install and configure CARP/UCARP to UNIX/Linux servers with Python script

Usually, a Virtual IP is used to distribute the workload automatically among cluster nodes. Cisco uses HSRP to combine their routers in the Standby group with a single VIP assigned, which stands for the default gateway in a network. FreeBSD and Linux (Ubuntu, CentOS6, and Centos7) operating systems use CARP and UCARP respectively for this […]

Read More Install and configure CARP/UCARP to UNIX/Linux servers with Python script

Deploy virtual machines in Vmware Vsphere with Ansible and Cobbler PXE server

This article shows us how to configure Cobbler PXE server for automatic deploying Virtual Machines in our Virtual Environment(vCphere). For that I wrote script. For this script I have used Python with libraries(Jinja2, Fabric, OS, Sys etc.) and Ansible with Vsphere module. Script gives us the following menu: If we choose 1 it will clone […]

Read More Deploy virtual machines in Vmware Vsphere with Ansible and Cobbler PXE server

CentOS7 FTPS configuration with VSFTPD

In this article Python code install and configure FTPS server to CentOS7 server. In CentOS7 server SeLinux is already enabled. Python code automatically generates certificate, creates user, configure firewall and SeLinux for FTPS. At the end we will check result with Filezilla client from Windows desktop. Our network topology will be as following: Clone git […]

Read More CentOS7 FTPS configuration with VSFTPD

VMware Pyvmomi

Our goal to configure virtual machines automatically via VMware vSphere API. We will use officially API’s of VMWare pyvmomi and third party library of ezmomi which is used pyvmomi library. We have 3 physical servers. One of them vCenter server and 2 ESXi’s. ESXi servers already connected to the shared storage and works in the […]

Read More VMware Pyvmomi