March 14, 2017
Only 2 lines you need to enter in your script to secure password;
$password = read-Host -Prompt 'Enter password' -AsSecureString
$password = ::PtrToStringAuto(::SecureStringToBSTR($password))
Last week I needed to export vmware.log files.
In the normal way you can read using putty client or download log using Datastore Browser.
But you also can download logs using PowerCLI.
to do it, we using cmdlet Copy-DatastoreItem
Copy-DatastoreItem <Object> <Object>]
To find the location of a virtual machine run this script:
get-vm MyVirtualMachine| Get-Datastore |Select name
Connect to Datastore using New-PSDrive cmdlet and change location to VM folder using Set-Location cmdlet.
New-PSDrive -Location $datastore -Name ds -PSProvider VimDatastore -Root "\"
To display list log files, simple run ls *.log
At this point we can begin copy files from Datastore to local computer:
Copy-DatastoreItem -Item *.log -Destination...
July 18, 2016
Upgrading Zabbix_Agent 2.x to 3.x via batch script
This topic will show one method to upgrade Zabbix agent version 2.x to 3.x
#1 Check if last version installed.
Zabbix agent version 188.8.131.52455, file size is 433,644 bytes.
So in this case, we check if current file size Equal to 433,644 bytes, If do - nothing to do.
cd "Program Files\Zabbix Agent"
dir | find "433,664 zabbix_agentd.exe"
IF %errorlevel% ==0 GOTO END
#2 Remove old ZabbixAgent version 2.x
Remove old version in three stages:
stop Zabbix agent service
delete relevant files
delete old files
del *.* /Q
#3 Copy ZabbixAgent version 3.x
Copy relevant files:
A predefined file that include:
LogFile=c:\Program Files\Zabbix Agent\zabbix_agentd.log
#4 Append Computer...
July 17, 2016
VMware Glossary By Haim Cohen
If you a VMware Administrator, here you can find VMware terms you should know
Last update: July 17, 2016
Transparent Page Sharing
Transparent page sharing is a method by which redundant copies of pages are eliminated. This helps to free memory that a virtual machine would otherwise be using.
Because of the way TPS works with hardware-assisted memory virtualization systems like Intel EPT Hardware Assist and AMD RVI Hardware Assist, esxtop may show zero or few shared pages in these systems.
Page sharing will show up in esxtop only when host memory is overcommitted. The rest of this article provides background...
June 29, 2016
Zabbix Event: Free disk space is less than XX% on volume /boot
My Zabbix system warns me with the following message:
"Free disk space is less than XX% on volume /boot"
Zabbix is enterprise open source monitoring software for networks and applications, . It is designed to monitor and track the status of various network services, servers, and other network hardware.
My Zabbix 3.0 system running on Ubuntu Linux.
to free up space :
sudo apt-get autoremove
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for some package and that are no
The auto-remove statement tells APT to remove...
May 31, 2016
Powershell : Count Members of a AD Group
As System Administrator, In many cases you need to count members of AD group.
The Get-ADGroupMember cmdlet gets the members of an Active Directory group. Members can be users, groups, and computers.
$users = Get-ADGroupMember -Identity 'Group Name'
You powered on virtual machine, Task shows "Completed" but the virtual machine is not passed Starting screen
At Virtual machine event, I found error 19 :
“Cannot open the disk '/vmfs/volumes/4e941641-1be07a6e-00215eda23ba/VM-Name/VM-Disk_ID.vmdk' or one of the snapshot disks it depends on.”
A RDM LUN mapping which were in a ‘dead’ status
Check Storage side for connectivity, sufficient space etc.
April 20, 2016
vSphere HTML5 Web Client
First things first-- this Fling is not fully complete !
VMware Flings wanted to get it in front of customers as soon as possible, and so VMware Flings are only offering the following features for the time being (we feel that these are the most commonly used actions/views):
VM Power Operations (common cases)
VM Edit Settings (simple CPU, Memory, Disk changes)
VM and Host Summary pages
April 17, 2016
LINUX: How do I check free partition space via command line ?
My favorite command is
March 31, 2016
VMware Product Build Numbers to Update Levels
In the next table you can find build numbers and release dates of VMware products
source = vmware.KB.1014508
Installer Build Number
Converter Standalone 6.0
Converter Standalone 5.5.3
Converter Standalone 5.5.2
Converter Standalone 5.5
Converter Standalone 5.1
Converter Standalone 5.0.1
Converter Standalone 5.0
Converter Standalone 4.3
Converter Enterprise 4.2.0 (VC 4.1)
Converter Enterprise 4.1.1 (VC 4.0)
Converter Standalone 4.0.1
Converter Standalone 4.0
Converter Standalone 3.0
ESXi 6.0 Update 2
ESXi 6.0 Express Patch 5
ESXi 6.0 Update 1b
ESXi 6.0 Express Patch 4
ESXi 6.0 U1a (Express Patch 3)
ESXi 6.0 U1
ESXi 6.0 Express Patch 2
ESXi 6.0 Express Patch 1
ESXi 6.0 GA
ESXi 5.5 Express Patch 10
ESXi 5.5 Express Patch 9
ESXi 5.5 Update...