Tools browsing by category


Copy files between ESX hosts with SCP

środa, Sierpień 22nd, 2012

A small reminder for myself – the command is:

scp local_filename user@server:/path/where/file/should/go

More information:

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! :-)

HP sizer allows you to plan server consolidation easily.

piątek, Kwiecień 1st, 2011

HP Sizer for Microsoft Hyper-V 2008 R2 is a small tool that takes as input your running servers list (hardware they are running on and the resource utilization) and calculate how they can be allocated to servers running MS Hyper-V. It’s gonna of course propose you HP servers as your future hosts with full characteristic and even pricing ;-) So let’s quickly have a look how it works and if it is worth using.

HP Sizer for Microsoft Hyper-V 2008 R2 Home page

click on the image for a full size in a new window

Download the tool and launch it. You will see a home page with three options. You will probably like to start with Build a new solution. The first thing you will need to provide is data about your current machines. You can put it manually or use a report created with Microsoft Assessment and Planning Toolkit. For the sake of this note I decided to use sample data suggested by HP Sizer tool. You continue with providing information on your storage configuration and capacity.

The third configuration screen asks you to decide what the new server(s) utilizationHP Sizer for Microsoft Hyper-V 2008 R2 - Servers to consolidate should be in terms on CPU, memory, network and storage usage. HP suggests to leave at least 20% reserve for unpredicted resource utilization so your ceiling values should be 80% or less.

Finally you will be asked for your preferences for new target server(s) and the sizer will suggest a solution from you. The pricing should be accurate as it will update from the Internet.

What I am missing in this tool is the ability to provide as input together with physical characteristics of your current machines also the services they provide. We can insert average CPU, memory utilization, etc. however if some services work in a cluster they should be planned to put on different hosts. It makes no sense to consolidate them into one physical machine. One target machine may be enough from performance point of view but not when it comes to high availability.