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:
pwd1 = “password”
pwd2 = “enable_password”
cmdVpn = “vpn-sessiondb logoff ipaddress 220.127.116.11”
cmdEn = “enable”
host = “10.60.2.254”
tn = telnetlib.Telnet(host)
tn.write(pwd1 + “\n”)
tn.write(cmdEn + “\n”)
tn.write(pwd2 + “\n”)
tn.write(cmdVpn + “\n”)
print “Operation completed”
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
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>
The 6 DOF has arrived and is now welded to the shield
I used some foam as shock absorber on the sensor.
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.
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.
After some late night work here it is!!!
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!