Today I got a text from a co-worker who needed to shutdown a load of VMs before doing some maintenance, then power them all on after. So here is a quick script I put together to do that First put you list of VMs in a CSV file, formatted like this VMnameVM1VM2VM3 then edit this…
Blog
NetApp disk model and firmware reporting
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…
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
Troubleshooting tools on a VCSA
Here is a list of tools/commands I use on a VMWare VCSA (6.7 and 7.0) I can never remember them so I’ll document them here. This list will grow. 1, Trace Route If you are used to using tracert on on windows you will be pleased to know that there is a trace route command…
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…