This is a script I wrote to delete snapshots over a certian age wth an override. The override is in the name of the snapshot, so the snapshot can be deleted after x days or after a date. If the snapshot is named “my snapshot _ DeleteAfter60days” the script will look for “DeleteAfter” or “DA”…
Category: VMWare
Manual unMap
This is a script I put together to manually run the unmap to all shared iSCSI datastores from all hosts in a vCenter. After doing this your SAN should report the correct block usage ie more space! With VMFS 6 this is not really needed but there may be times when you need to know…
Report VM reconfigurations
One this that has always bugged me with vCenter UIs is seeing a reconfigure VM task but not being able to tell what was changed. Some times in an investigation this can be very important. While looking at Event objects one day I discovered an attribute called configchanges on a reconfigured event object. In there…
Get tasks with events
Here is a script to get tasks (historic tasks not just current) and also the events associated with that task.This is very handy for auditing or troubleshooting. The task collection part of the script I found on LucD blog at https://www.lucd.info/tag/get-task/ Basically this will get all tasks and events for a specific time frame. It…
VAMI password has expired
Have you ever tried to log on to the VMware vCenter Server Appliance and got a “Password Expired” error? I have. Too many times to count (4). So here are the steps to fix it. Log in to vCenter Open the console of the VCSA VM Log in with the expired password Goto Troubleshooting Mode…