VMware Module Library

This is a collection of useful PowerCLI functions that various people have created. Below is a summary. I plan on updating this over time so feel free to bookmark it if you find it useful. VMware Module Library Table of Contents “Function Get-MotionHistory” Returns the vMotion/svMotion history “Function Get-VIEventPlus” Returns vSphere events “Function Get-VMAdvancedConfiguration” Lists […]

1 Comment

vSphere 5.0 Backup and Restore

List of what should be backed up There is some overlap between components listed below – some are within the vCenter database, but should still be exported separately (such as vDS’s). Other components can be disregarded if you have VM-level backups that can perform file-level restores. This is not a complete list, but it might […]

Leave a comment

ESXi Dump Collector Setup

Install the ESXi Dump Collector from the vCenter installation media Configure ESXi Dump Collector (link) Log into the host using SSH/Putty esxcli system coredump network get esxcli system coredump network set –interface-name vmk0 –server-ipv4 <ip address> –server-port 6500 esxcli system coredump network set –enable true esxcli system coredump network get Force a linux kernel panic […]

Leave a comment

ESXi Snapshots

Snapshots can create 1-2 files within the virtual machine’s folder for each individual snapshot: /vmfs/volumes/4e41f7fc-e22ffd7d-ae49-001b214182b0/VMNAME # ls -laterh -rw——- 1 root root 72.0G Sun Oct 7 14:59:22 2012 VMNAME-flat.vmdk -rw——- 1 root root 4.0G Sun Oct 7 15:05:54 2012 VMNAME-Snapshot84.vmsn -rw——- 1 root root 16.1M Sun Oct 7 15:15:14 2012 VMNAME-000001-delta.vmdk /vmfs/volumes/4e41f7fc-e22ffd7d-ae49-001b214182b0/VMNAME # The “*.vmsn” […]

Leave a comment

Validating ESXi Storage Array Multipathing

Your storage array needs to be configured based on what VMware recommends/supports. The steps below will go through the process of validating that your storage array Multipathing MEM (MPM) is configured according to VMware’s recommendations. 1) Open the VI Client and navigate to an ESXi host > Configuration > Storage > Right click on a […]

Leave a comment

ESXi and NUMA Locality

This article assumes that there is a basic understanding of what NUMA locality is and how that relates to an ESX(i) host. The tests below were performed with an ESXi host running version 4.1 Update 1, using 96 GB of memory and two pCPU’s. As shown below, there are two NUMA nodes. The virtual machines […]

Leave a comment

VBScript–Active Directory Account Attributes

Below is a script that will output a list of Active Directory account attributes (password never expires, user cannot change password, etc) for an individual account. Set objUser = GetObject(“LDAP://cn=UserName,ou=OUName,dc=dcprefix,dc=dcsuffix”) intUAC = objUser.Get(“userAccountControl”) Const ADS_UF_SCRIPT = &H1 Const ADS_UF_ACCOUNTDISABLE = &H2 Const ADS_UF_HOMEDIR_REQUIRED = &H8 Const ADS_UF_LOCKOUT = &H10 Const ADS_UF_PASSWD_NOTREQD = &H20 Const ADS_UF_PASSWD_CANT_CHANGE […]

Leave a comment