Posts

iPhone 文字バケ(MojiBake) gMail

Summary: Sending and receiving emails from the iPhone mail app with Japanese characters are unreadable due to mojibake. Details: This seems to only occur if you use gMail's ActiveSync option by setting up your account on the iPhone by selecting Microsoft Exchange as the account type. Workaround: To remedy this, use either POP or IMAP when setting up your 'mail' account. You can still have your iPhone sync contacts and calendars seperately.

%%TITLE%%

%%CONTENT%%

VM Storage Balancer

Image
One thing I’ve noticed in vCenter 4.0 is that it now has alarms to monitor datastore sizes and places little ‘warning’ or ‘alert’ icons.  I like it, but it also annoys me because I know I need to do clean up and make sure each of our datastores has a minimum of 20% free space.  So here we are: Move-VMStorageBalance.ps1 Summary: Running this script will attempt to storage vMotion systems in a specified cluster around to datastores that have more than x% of free space before and after the move. Systems with specified DRS rules are omitted by default.  I’ve left some defaults defined in two variables that you will need to change to work for your environment. Requirements: Powershell 2.0 PowerCLI 4.0 vCenter 4.0 or ESX 4.0 Disclaimer/Caveats: Use this script @ your own risk, I take no responsibility for any awesomeness that might occur.  Test, test, and test more. Script may be SLOW as it works against 1 VM at a time. Fast if ...

Windows 2008 IPv4 gateway keeps disappearing after reboot…

Image
Config: Windows 2008 Std/Ent Sp2 x86 Summary: After reboot of system, the system stops responding to pings and RDP. When accessing IPv4 settings, the gateway is missing, and will blank out every time. Workaround: Regedit Navigate to HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/Interface/%CLSID% %CLSID% = A unique ID that is associated with each network adapter that you have on the machine. You should have one for each adapter installed on your server. Change the "DefaultGateway" Regkey and manually type in the correct IP.

Finding local networked devices via your Mac’s web browser by name instead of IP.

Image
Summary: Unable to connect to locally available network devices via their friendly name. Config: Mac OS 10.x (10.5 or 10.6) Details: I’ve found this to be only true for Macs. For example: When I try to connect to my NAS’s web admin console via the name I gave it ( http://zterastation ), my Mac cannot resolve the name. Yet, my Mac does find it by name in the list of available drives to connect to. Seems the fix is simply to append ‘.local’ to a locally available network devices friendly name. As so, http://zterastation.local . This could simply be in the way my router configures my DNS entry order, but does not seem to matter to my windows systems.

Exploring VMWare's API using PowerCLI Get-View

Image
Summary: How to explore properties of objects using PowerCLI’s Get-View cmdlet. Details: Figure out the object you want to dig in deeper about. For example, finding out all properties available about an ESX host. Declare your variable, run the get-vmhost cmdlet, then pipe that to get-view, like so: 1: $myvariable = get-vmhost myesxserver | get-view Now by simply typing $myvariable at the powershell prompt, I’ll get a return like this: If I want to find out more about what is under the “Summary” property, I can simply type $myvariable.summary then hit enter. You can continue to do dive deeper to find the information you are looking for quickly and effectively by using this method. The ‘tab’ auto-complete function also works. Cheers!

Changing Run Once entries in multiple Virtual Center customization specs...

Image
Summary: Script built to update multiple Virtual Center Windows customization scripts in one easy step. Powershell Code: http://docs.google.com/View?id=ddvthst9_15fsx7vdgb Details: I have several customization scripts that all are configured in almost the exact same way minus IP gateway settings (thus the need for many specs). I needed to add a couple more run once commands to to fix an issue we were having with McAfee ePO agents that were statically installed on templates. The agent apparently generates a unique GUID and mac address in the registry associated with the systems name. To fix this when cloning the template I needed to delete these two registry entries so ePO would regenerate new ones when the cloned template builds it would register properly with ePO. There is probably a bit more that can be done with this script, but it’s done what I need it to do for now.