Access Cisco Firewall through Telnet using Python

In my company we have a couple of VPN’s configured and one of the VPN’s is essential to the core business of the company.

That particular VPN from time to time freezes and i need to disconnect it, but that isn’t always a simple task as when i am in vacations i don’t have access to internet so i needed a way for users to be able to disconnect the VPN themselves. The solution was a python script that connects to the Cisco equipment through telnet using the telnetlib.

This is the script:

import telnetlib

pwd1 = “password
pwd2 = “enable_password
cmdVpn = “vpn-sessiondb logoff ipaddress”
cmdEn = “enable”
host = “”

tn = telnetlib.Telnet(host)

tn.write(pwd1 + “\n”)
tn.write(cmdEn + “\n”)
tn.write(pwd2 + “\n”)
tn.write(cmdVpn + “\n”)
print tn.read_all()
print “Operation completed”

Windows 2008 – Running a Scheduled Task after another

I had a problem with my Windows 2008 SQL Server.

I have a scheduled task to handle the backups of the backups with robocopy and a very small disk.

I thought i could just delete the files after copying them to a network drive, but this is a lot harder than it look.

It looks like Windows Task Scheduler does not permit to run a task after another one has finished despite  the existence of an event log showing the task starting, running and completing.

However it is possible to define Custom Event, though the standard filter does not allow much control over the selection of the events.

So i found this XML to place in the Custom Event

1 2 3 4

Now insert this XML in the text box and where you read copy backup replace with the name of your previous task:

   <Query Id="0" Path="Microsoft-Windows-TaskScheduler/Operational"> 
      <Select Path="Microsoft-Windows-TaskScheduler/Operational">*[EventData [@Name='TaskSuccessEvent'][Data[@Name='TaskName']='\copy backup']]</Select> 

VMware Broker

This is a tutorial on how to install the VMware broker.

Download the VMware View Connection Server 5 (in my case) and start the installation process.

Keep clicking next until you get the Installation Options screen. In my case i am going to choose “View Replica Server” because i already have a VMware infrastructure.


Click next.

Now you must type the VMware server ip address or hostname


Click next and don’t forget to choose “Configure Windows Firewall Automatic”

It’s done, now just access the http://localhost/admin and if you go to View Configuration – Servers in the View Connection Servers tab you’ll find your new server.


I have just received my new AeroQuad Mini Shield v1.0 for my quadcopter build.

This shield is for Arduino Pro Mini and lets you build a simple and cheap quadcopter.

This version of the shield includes a voltage divider circuit so that you can measure battery voltage during flight!

2013-07-17 12.40.46 2013-07-17 12.42.26