Follow Me

 

Mental note:

I ran into a problem with VMware Data Recovery when I used an ip-adres in the SMB share-name i.e. \\10.0.0.0\vdr$:

The VDR appliance console showed the following error:

VDR Error: CIFS VFS: No response for cmd 114 mid x

Fixed by modifying resolv.conf on the VDR appliance to search the domain in which the server is located:

search example.domain.com and use the DNS- namein the destination definition : i.e. \\server\vdr$

 

Today I’ve written a simple powershell check for nagios to check if all the storage group scr replication is healthy.

Script

Param($sourceserver, $destinationserver)

$snapins = "Microsoft.Exchange.Management.Powershell.Admin"

$snapins | ForEach-Object { 

 if ( Get-PSSnapin -Registered $_ -ErrorAction SilentlyContinue ) {

 Add-PSSnapin $_

 }

}

$storagegroupcopystatus = Get-StorageGroupCopyStatus -Server $sourceserver -StandbyMachine $destinationserver

$status = 0;
$warning_array = @()
$perfdata_string_array = @();

foreach ($storagegroup in $storagegroupcopystatus)
{
 if ($storagegroup.SummaryCopyStatus -ne 'Healthy')
 {
 $status = 2;
 $warning_array += $storagegroup.StorageGroupName
 }

 $perfdata_string_array += "'Copy Queue Length - $($storagegroup.StorageGroupName)': " + $storagegroup.CopyQueueLength
 $perfdata_string_array += "'Replay Queue Length - $($storagegroup.StorageGroupName)': " + $storagegroup.ReplayQueueLength

}

switch ($status)
{
 0 {
 $message = "OK - All storagegroups are correctly being replicated"
 }
 2 {
 $warning_array_string = [string]::join(",", $warning_array)
 $message = "ERROR - Storage Groups (" + $warning_array_string + ") are not correctly being replicated. Check replication!"
 }
}

$perfdata_string = [string]::join(" ", $perfdata_string_array)
Write-Host "$($message) | $($perfdata_string)"
$host.SetShouldExit($status)

Entry in nsc.ini

check_exchange_scr=cmd /c echo scripts\check_exchange_scr.ps1 $ARG1$ $ARG2$ | powershell.exe -command -
 

Two scripts to easily enable or disable “Check and upgrade VMware Tools during power cycling” and “Synchronize guest time with host” for all vm’s on a vCenter server.

Enable upgrade VMware Tools and Sync Guest Time with Host

$viserver = read-host "Please enter vCenter Server:"

connect-viserver $viserver

$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo
$vmConfigSpec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle"
$vmConfigspec.Tools.syncTimeWithHost = $true

Get-VM | %{
     $_.Extensiondata.ReconfigVM($vmConfigSpec)
}

Disable upgrade VMware Tools and Sync Guest Time with Host

$viserver = read-host "Please enter vCenter Server:"

connect-viserver $viserver

$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo
$vmConfigSpec.Tools.ToolsUpgradePolicy = "Manual"
$vmConfigspec.Tools.syncTimeWithHost = $false

Get-VM | %{
     $_.Extensiondata.ReconfigVM($vmConfigSpec)
}
 

I tried a few portable application platforms, but since i use Liberkey, i don’t use any of the other ones.

Main advantages of Liberkey:

  • Automatic updates (for the platform and the installed applications)
  • (Temporarily) usage of file associations for the portable applications you’ve installed.
  • A lot of pre-packaged portable freeware applications
  • Easy adding and removing of applications
  • Easy adding and removing for you own portable applications
  • Choice between a pre-configured suite or start of with your own empty Liberkey.

URL: http://www.liberkey.com

 

Need a free partition manager for usage on your virtual machines, try: http://www.paragon-software.com/business/pm-vm/? Haven’t tried it yet but will test it shortly!

For non-commercial use only!

 

If you frequently update computers like i do, you don’t want to wait for windows update to check which updates are available for the computer, choose which ones you want to install. Finally Windows Update has to download them and then after a long wait they are finally installed.

Now you can use WSUS Offline Update, for downloading all the updates for the platforms/languages you select and put them on a USB key/DVD/CD, so you can use it on all the computers you have to patch. Just run it again if you want to update your directories/ISO’s and it updates them with all the new updates and you’re good to go with the latest patches on your USB key/DVD/CD.

 

Need to reinstall your computer and don’t want to create your own batch for installing all those apps silently. Take a look at http://ninite.com/

This site creates an installer for you with the apps you specify.

The easiest way to get apps.

1. Pick your favorite software.
2. Start your customized installer.
3. You’re done!

Ninite installs software fast with default settings and
says “no” to browser toolbars and other junk.

Ninite checks your PC’s language and 64-bit support
to install the latest, best version of each program.

Ninite runs on Windows XP/Vista/7 and works in the
background unattended and 100% hands-free.

All Ninite does is automatically download and install
the apps you select. Not even Ninite is installed.

 

Check out the latest version of the lights-out WHS Add-in, which now has the possibility to check for CPU load and Network Activity. With the lights-out client utility it is possible to automatically wake the WHS when you need it, so it isn’t turned on all of the time.

By forwarding UDP port 9 to your WHS on your router it is even possible to wake the server automatically remotely!

Forum: http://forum.wegotserved.com/index.php?/forum/89-lightsout/
More Info: http://addins.home-server-blog.de/verwaltung/lightsout/#en

 

There seems to be a problem connecting to Citrix PS 4.5 after applying Hotfix Rollup Pack 4 for Wyse V10L clients (and probably 1200LE & S10) : http://forums.citrix.com/thread.jspa?threadID=244712&tstart=0

While updating a Citrix PS 4.5 HRP4 i ran into this problem.

Problem: connection reset by peer error when trying to connect to Citrix server with Hotfix Rollup Pack 4 by a Wyse V10L client.

Workaround: Revert to HRP3.

Solution: Install Wyse Firmware Version 6.3.0_27.0

Ver 6.3.0_27.01 – Download
Wyse Thin OS Software
***Hotfix***
Ver 6.3.0_27.01 for V10L and S10
(Release Date – 5/29/2009)
 

Today while re-assigning the ip addresses for an ESX environment I ran into the problem that I couldn’t deploy machines from templates because it stopped at failed to connect to host while cloning the template to a virtual machine.

Solution:
- Put host in maintenance mode
- Disconnect host
- Remove host from cluster
- Remove /etc/opt/vmware/vpxa/vpxa.conf
- Add host back to cluster

© 2011 Oppergod's Weblog Suffusion theme by Sayontan Sinha