Blog
Converting local time to sidereal time
Its been a while since my last post. In that time I have been busy with life stuff. Here is a script I wrote to convert the current time in to sidereal time (GM sidereal time and also local sidereal time)I have modified it in to functions so its a little more user friendly to…
A quick shutdown / start VM script
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…
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…