Archive for the ‘Python’ Category

Automation Leveraging NSX REST API Guide

Saturday, August 6th, 2016

I first wrote this blog post about automation leveraging the NSX REST API on the VMware NSX Network Virtualization Blog on June 21, 2016. The full blog post is provided below and can also be seen on the VMware NSX Network Virtualization Blog site. (more…)

Twitt

Automating Security Group and Policy Creation with NSX REST API and Python

Saturday, April 2nd, 2016

My latest post on the VMware NSX Network Virtualization Blog, Automating Security Group and Policy Creation with NSX REST API, describes using NSX REST API with some code for a simple yet realistic use case focused around security where automation can help. In this example I use Python. (more…)

Twitt

Automating VMware NSX Security Rules Creation with Splunk and Python

Saturday, January 23rd, 2016


VMware NSX App for Splunk: DFW Overview View

VMware NSX App for Splunk: DFW Overview View

If you haven’t already, checkout my post on the VMware Network Virtualization blog where I describe and show a demo of how Splunk can be used to monitor the VMware NSX distributed firewall (DFW), and, with a little Python code, help automate the creation of DFW rules: Automating VMware NSX Security Rules Creation using Splunk and Some Code.

Twitt

Reset VMware NSX-V DFW to Default Setting via NSX REST API with Python

Thursday, December 31st, 2015

I’ve been playing with the VMware NSX-V 6.2 REST API using both a browser based REST API client and Python. While I was exploring different methods, I deleted the default NSX-V Distributed Firewall (DFW) L3 section via REST API call within Python. Unfortunately, this prevents me from being able to add any rules to the NSX-V DFW, since rules must be added to a section, and I deleted the default DFW L3 section. The only way to add another section through the VMware vSphere web client is to right click an existing section and select “Add section,” however since I only had the default section which I deleted, this is no longer an option. (more…)

Twitt

Security, Art of Hacking, & the Worst 2014 Security Breaches

Sunday, March 1st, 2015

Hacked TargetSecurity is hot; no doubt about it. Consider the fact that between 2011 and 2013, venture investors put nearly $3 billion into cyber security companies, resulting in new funding for some 300 firms (Source: Thomson Reuters). Worldwide security software revenue alone totaled $19.9 billion in 2013, a 4.9 percent increase from 2012 revenue of $19.0 billion (Source: Gartner). According to Gartner, global cybersecurity spending is to reach $76.9 billion in 2015 and $80 billion in 2016; in 2011 it stood at $55 billion. (more…)

Twitt

BASH Shell Scripting: Passing Arguments to a Python Script

Monday, September 1st, 2014

Larry Wall: “Shell programming is a 1950s juke box …”

In this short blog I write a small Python utility script to create directories and demonstrate how to utilize it and pass it arguments via BASH shell script. The functionality is similar to the ‘mkdir’ UNIX command. The name of the directory or directories to be created is the argument I pass in to the Python script. I then create a BASH shell script to call the Python script. (more…)

Twitt

Eclipse IDE for Java EE Developers

Saturday, April 20th, 2013

Eclipse Juno 4.2One of my favorite development tools at an unbelievably low price – FREE! Can’t get much better than that. Download ‘Eclipse IDE for Java EE Developers’ and give it a try. If you are not much of a Java/J2EE programmer, that’s ok – just download one of the many plugins available for C/C++, Perl, Python, etc. The latest Eclipse release is Eclipse Juno (4.2) SR2. For more information, see the Eclipse website at http://www.eclipse.org/. (more…)

Twitt

XenServer, Hyper-V, and ESXi – Architecture, API, and Coding

Monday, December 24th, 2012

VirtualizationBelow is a link to the slide deck for a presentation I gave to some friends/colleagues for a Berkeley Virtualization and Cloud Computing certification course I took in early 2012. For my final project I did a XenServer, Hyper-V, and ESXi hypervisor comparison in regards to market share, architecture/installation, and APIs/coding. The project involved not only a presentation but coding for all three hypervisors – XenServer, Hyper-V, and ESXi. Technical details, demos, and coding examples are provided in the presentation. You can also download all code from either the download section of this site or for the latest code updates download from GitHub. (more…)

Twitt

Python – Implementing Caching in Your Applications via Dictionaries

Friday, April 6th, 2012

Periodic Table of the ElementsIn this blog I demonstrate how you can implement and take advantage of caching in your Python scripts/applications.

Caching allows you to complete tasks more rapidly by storing and reusing results for repeated operations using the same criteria. For example, consider a function that takes several arguments and performs a complex calculation. What if you passed the same arguments to this function ten times; well, without caching, the same operation and complex calculation will be performed ten times. (more…)

Twitt