Just had a very weird issue here that turned out to have a very logical solution.
I set up a shared folder between my virtual guest and the host machine. I set it to auto mount and threw a couple of files into the folder.
I booted up the virtual windows instance and browsed to the shared folder and tried to copy the files out of the shared folder…it worked but the files promptly vanished and were replaced by one file with 0 byte size.
Bugger…I tried again; this time browsing to a samba network share and pasting the files….again within seconds they were replaced with a 0 byte file.
The problem was that the filename given by the linux screenshot program was not legal on windows. So I changed the file names and suddenly it all worked fine.
So the lesson is, check them names!
Hope this helps someone
[EDIT] If you need to run something every ‘x’ seconds, have a peek at this page. I must admit I don’t like the executing of a external script but its easily merged with the previous example to make something nice.
Somehow this managed to pass me by but vSphere has a webservices interface. I really want to look at writing a python wrapper for this sometime in the future! If you are venturing down this path have a peek at these webinars: http://communities.vmware.com/docs/DOC-10751
Hope it helps
Needed something to do this from Linux quickly.
|net rpc service list -W domain.work.org -S servername -U domain\username||grep “SQL Server (“|
Hope it helps
I’m slapping this here as its may save a couple of minutes of googling in the future.
sudo apt-get install libmotif-dev
Add net.ipv4.tcp_window_scaling=0 to your /etc/sysctl.conf file to fix a strange popup error
Run free in the bountiful citrix’y hills!
Hey all, just a quickly as this took a little googling.
If you need winexe to remote administer a windows box..
Grab a package from here: https://launchpad.net/~jdthood/+archive/winexe/+packages
Finally open a terminal and try:
winexe -U domain\username //machinename ‘cmd’
Also you may want to hunt down wmic (wmi-client), its also not in the repos, but is available to be compiled from zenoss.
If I find the guide for this again I’ll make another post about it.
Hope it helps!
Tonight I found a site called wiki summaries.
It summarises books.
If you need to interact with Microsoft Web Services from python grab suds from whatever repo you have handy and relax! I had a brief dabble with Soappy but it seems this is now deprecated and had a couple of issues.
Here is your quickstart to talk to a soap based .net web service with suds
from suds.client import Client #chances are you have a asmx url, make sure you add # ?wsdl on the end url = "https://www.yourwebsite.org/yourwebservice/webservice.asmx?wsdl" client = Client(url) print client.service.yourMethod(args)
Hope it helps!
The code for my AD library ADdled will be uploaded later this week to this page.
It will have basic functionality for connecting, searching and retrieving data and the beginnings of the write-back methods.
I’ll be expanding this along with pressly over the coming weeks in order to get them up towards something I’d be happy calling a beta.
In that time I also need to get myself familiar with the unittest system for python as I want to have decent test coverage. One thing I don’t know yet is how to write decent tests for systems that require login details…ah well I’m sure that will be revealed soon enough!