Some times you want a quick report of the disk types and firmware versions with the number of disks on each version. Recently NetApp put out a billiton about older disk firmware failing more often that they should. I was given the task of making sure all our disks where OK. To archive that I…
Category: PowerShell
Get info out of the Zerto analytic portal
This is a part of a script I have been using for about 2 years to pull basic data out of the Zerto analytic portal. I have really only just scratched the surface of what I can get. When I first wrote this all I needed was the number of green/yellow/red VPGs but there is…
Orphan file removal for the paranoid
here is a script i put together to loop through the RVTools result and mount all the suspect VMDKs
Mapping VMs to Aggregates
Recently I was in a situation where an aggregate in a multi HA pair cluster was low on space. While working to avert the impending disaster I was asked by an incident manager what VMs are on the aggregate that is low on space. Now there where alot of volumes/LUNs on that aggregate. Stopping to…
NetApp SFP FC troubleshooting
I was recently in a situation where a number of customer VM suddenly became unusable. When investigating the VMs in vCenter we could see that the disk latency was in the seconds. The back end storage was a NetApp AFF connected to the hosts using Fiber Channel. So looking at the AFF event logs I…
Using SSHShellStream
One of my pet projects I am working on is a fully auto VCSA certificate checking script. I want to check the machine, root and STS certificates. I still have some problems to over come but I think I have solved my most pressing problem. That problem was how do I SSH to the VCSA…
VM disk info script
Recently I was trouble shooting a Zerto issue that occurred due to a storage “blip”. Some Zerto Z-VRAHs had lost disks and many VPGs where in an error state. One of the shadow Z-VRAs had lost its 4 “OS” disks. These disks are copied from the ZVM and are device 0 on SCSI busses 0-3….
Write to debug/log file function
Here is a function to save time when writing logging or debugging information in scripts. It has grown from a simple “dump stuff to a file” to a handy “Swiss army knife” of logging. The function is not perfect and will no doubt keep growing. A quick thing to mention is that if the file…
VCSA Cert checking script
Over the past year I have seen quite a few STS certs expire in production environments. I have been meaning to write something to scan a VCSA and report back the expiry dates of all the certs. This has posed a problem because I have to use SSH and one command needs to follow another….
ESXi host config backup
If you look after ESXi hosts that are installed to SD cards then you will know the constant pain of replacing failed cards. You may know the pain of losing both cards in this process and having to reinstall from scratch. ESXi hosts are not the hardest thing to rebuild but for me. its a…