Archive for June, 2009

Bits and pieces ive come across using VMWare ESX 3, 3.5i and 4i along with vCentre and vSphere etc..

How to increase your iPhone battery life – a few tips.


VMWare ESX4 guests loosing network connectivity briefly.


Howto: extract files from a .msi file


Hyperterminal / command line modem calls


Checkpoint fw monitor to debug and trace traffic.


Checkpoint FW HA debugging.


Pure-ftpd unable to list more than 2000 files.


Windows 2000/2003/2008 server Auto Admin logon


VMWare ESX4i guests power on automatically when host restarts.


Business Objects Xi3 error – The Central Management Server has failed to start. Press ‘Retry’ to attempt to start it again or ‘Cancel’ to skip any actions dependendent on the Central Management Server. (STU000213)


Find vmware guest using the MAC Address on ESX


mysql error error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’


How to speed up web servers and apache using DEFLATE.


Removing files with odd names dashes etc.. linux


Checkpoint anti-spoofing problems.


samba guest access


Windows 7 Graphics very slow refresh etc..


VMWare ESX3 Errrors after storage or host failure. Could not power on VM: No Swap File. Failed to power on VM


VMWare vSphere / virtual centre on Windows 7


File and printer sharing in Windows 7 inc admin c$ share.


Configuring VMWare ESX4i / vSphere for SNMP


Configuring sendmail for TLS certificate communication.


Enabling SNMP on VMWare ESX hosts


How to check how busy your VMWare esx cluster hosts are.


Adding category index to wordpress.


How to check sendmail is STARTTLS enabled


Change sort order of blogroll from name in wordpress


Checkpoint R60 VPN Debugging and killing IPSec / IKE Tunnels


MailScanner 4.77 process defunct and looping.


Google sitemaps appearing in russian!


Stop ARP responses for loopback adapters for loadbalancing.


Business Objects Xi3 Services not starting.


Killing VPN Tunnels in Checkpoint (IKE etc.)


Problem with show_image_in_imgtag.php in virtuemart missing images.


Finding duplicate files in Windows


Enabling SSH in VMWare ESX4i and making it permanent


VMware converter session not authenticated error


iplayer on Nokia E66


Joomla Metamod positioning problem


xrandr / xorg / laptop additional monitor setup (IBM X60)


Capturing and decoding POST data using tcpdump / wireshark


USB on VMWare ESX 3.5i console


Adding virtual interfaces and routes to Macbook Air


Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1) IP Policy issue


Intro


How to increase your iPhone battery life – a few tips.

Well like everyone out there I want my iPhone battery to last forever – i unfortunately upgraded to firmware 3.1.3 and while I dont need a baseband unlock because my phone isn’t locked, I did want a jailbreak. All this aside, I found that as soon as I had upgraded, my battery life was a quarter worse than before.

I used to get pretty much 2 days use out of a full charge – I dont use the phone loads, just normal texting, a few phone calls and a bit of facebook / twittering, but after the 3.1.3 firmware upgrade, I immediately found I was getting only a days worth of battery life :-(

Wasn’t happy especially as apple stopped me from downgrading to 3.1.2 which was nice and lovely.

So to help me get the best of what I had I made 2 changes which made a big difference and have resulted in me getting my 2 days usage back, and maybe even a bit more.

1: Disable location services – Go into settings > general, and change location services to off.

This does mean you no longer have your GPS active, but if you like me only use this infrequently, i’d rather switch it on in the odd occasion I do use it, than have it sucking my battery away.

2: Disable wi-fi scanning – Go into settings > wi-fi and change Ask to Join Networks to off. This means that rather than constantly scanning for available wi-fi networks, it will only use the ones you have pre-configured. Should you want to connect to a new network, you can either switch this back on or go back into settings > wi-fi and pick it from the list or add it manually. Again this saves loads of battery time as the wi-fi is not scanning.

These 2 simple tips made a big difference to mine and a few friends iPhone life, hope it helps you too.

VMWare ESX4 guests loosing network connectivity briefly.

Came across a very odd issue lately where guests on one of our ESX4 hosts were periodically loosing network connectivity very briefly – maybe 10 ICMP packets every half hour or hour.

After much debugging on the network side, thinking that perhaps there was a misconfigured NIC with the wrong VLAN config, the problem was still happening.

So ssh’ing onto the host, I started to trawl through the log files, and came across the below in the /var/log/vmkwarning file:

Feb 17 13:44:19 vminfraboxvmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Retry world failover device “naa.6090a028004f243d08ab44c26687e3dd” – issuing command 0×410002074040
Feb 17 13:44:19 vminfrabox vmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Retry world failover device “naa.6090a028004f243d08ab44c26687e3dd” – failed to issue command due to Not found (APD), try again…
Feb 17 13:44:19 vminfrabox vmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Logical device “naa.6090a028004f243d08ab44c26687e3dd”: awaiting fast path state update…

This was occuring repeatedly every half hour and the entries above filled the logs solidly for about 2 minutes continuously every half an hour.

After doing some digging on the google, I found out that ESX4 has a bug whereby if you have a duff or old connection to an iSCSI LUN – perhaps one that no longer exists – but you never rescanned to remove it – when the host tries to check the paths every 30 minutes, it finds this duff connection and goes through the motions of trying to find failover paths. The bug is that this causes very brief network loss to your guests.

The fix for me was to simply re-scan my adapter, which removed the old mapping to one of our removed LUNS’s and the problem went away.

Howto: extract files from a .msi file

Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\<username>\Local Settings\Temp, but those files are removed once the installer exits.

To extract files from a .msi file at the command line, type:

msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo

For example, to extract files from c:\installer.msi into c:\install you would type:

msiexec /a c:\installer.msi /qb TARGETDIR=c:\install

The destination directory does not need to exist prior to running this command.

If this doesnt work, a crude way is to rename the msi file to a rar file, winrar will then allow you to extract all the files – however… it doesnt name them properly, so I used a combination of LesMsierables a .net file which allows you to view msi files and compared the size to find the specific file I wanted..