Listopad, 2011 browsing by month


Running ESX(i) 4.1 with less than 2GB RAM

niedziela, Listopad 27th, 2011

If you want to give a try to ESX or ESXi on a weaker server or even in a virtual environment such a VMware Workstation (it runs fine on Workstation v7 and v8) you may want to be able to run your ESX without enforcing 2 GB or more RAM memory. I found a great solution how to twaek a boot script here.

The whole page by Duncan Epping, a Principal Architect at VMware, is definetely worth seeing and I strongly recommend it.

By the way, did you know that „RAM memory” has got a RAS syndrom? ;-)

EDIT: Right, but how much memory you will need to assign to your ESXi? According to this guy, 768 MB should be enough. I started to get this rathe unpleasant suprise at less than 1700MB (well, somethin like that, with 1700MB it works, with 1680 it does not; I did not try with values in the middle):

ESX error

Checking installed KBs with a VBS script

środa, Listopad 23rd, 2011


Usually after patching a server in order to check for installed KB to make sure that patches were implemented correctly I run a MBSA scan. However, I was quite displease with MBSA (need for a new cab file, too much time, unsearchable results, etc.) so I created this very simple script:

On error resume next
Const ForReading = 1
Set objFSO = CreateObject(„Scripting.FileSystemObject”)
Set objShell = CreateObject(„WScript.Shell”)
Set objTextFile = objFSO.OpenTextFile(„servers.txt”, ForReading)
Do Until objTextFile.AtEndOfStream
 strNextLine = objTextFile.Readline
 Wscript.Echo „!!!!!!!!!!!!!!!!!!!!!!!!!! ” & strNextLine & ” !!!!!!!!!!!!!!!!!!!!!!!!!”
Set objWMIService = GetObject(„winmgmts:” _
    & „{impersonationLevel=impersonate}!\\” & strNextLine & „\root\cimv2″)
Set colQuickFixes = objWMIService.ExecQuery _
    („Select * from Win32_QuickFixEngineering”)
For Each objQuickFix in colQuickFixes
    Wscript.Echo „Hot Fix ID: ” & objQuickFix.HotFixID
 WScript.Echo „”
 WScript.Echo „”
 WScript.Echo „”
 WScript.Echo „”

You will also need another text file (called servers.txt) with the servers you want to check for installed KBs. Put into it the servers, one in every line. Then the script may be run from the command line with the following command:

cscript script.vbs servers.txt > results.txt

The results go of course to results.txt. Have fun! :-)