This is not a too lengthy blog post. It basically a copy/paste of routes file which is part of the Log Insight API. I have include both the 3.3 and 3.6 version, for comparisons. This is only meant as an educational blog post. It will give you an idea to what is possible with the Log Insight API, not just query wish, but also management wish. In order to make this work you have to follow the general guidelines for the Log Insight API and how to connect to it. As I haven’t done a Log Insight API blog post yet. I will leave you with a link to Steve Flanders blog on how to use the Log Insight Query API. http://sflanders.net/2016/04/20/log-insight-3-3-query-api/
New in vRops 6.3 - Cluster Management API
One of the new features in vRops 6.3 is the documentation and I assume support for the Cluster Management API aka Casa API. I have in the past documented some of these Cluster Management API calls. In blog posts such as, vRops undocumented API calls which is from vRops 6.2 or Exploring vRops Internal API going even further back.
Luckily for us all, the vRops team have now added documentation to the Casa API, making it even easier for all to consume. First things first. How do you access it. Just like the regular API the documentation is contained within the vRops appliance. All you have to do is point your browser at your vRops installation and append “casa/api-guide.html”. Such as seen here:
esx.problem.net.vmknic.ip.duplicate - Hunting for MAC
Log Insight is a very powerful tool to monitor your environments health status. One of my favorite dashboards to is the “General - Problems” dashboard, which is part of the “VMware - vSphere” content pack. It comes with Log Insight per default. Because there you can get a great overview of any problems that might be in your vSphere environment.
One of the problems you might see is the “esx.problem.net.vmknic.ip.duplicate” or as it can be seen in the pie chart “net.vmknic.ip.duplicate”. This problem basically tells you there’s an misconfiguration in your environment. Two VMK nics have the same IP address configured. If you click on the pie chart you will get the picture below, with some modifications. The important thing to note here is the logs them self. It tells us there’s duplicate IP addresses detected. What the IP is - Not clearly visible below. For which interface and the owner of the IP address’s MAC address. Now you just need to find out who the owner of the MAC address is. May not be that easy unless we jump over to some PowerCLI action.
vRops undocumented API calls
Over time I have had the please of using different API calls to vRops. To begin with a lot around the official vRops API, as can be seen here. Some of it was documented in the internal API some were not which can be seen here. In this blog post I explorer some more API calls. The calls here is of a different nature. Were as the prior was around doing precis calls to get a specific result. These call are of a more generic nature. These have to do with the vRops environment. These calls can be used to get the status of the environment and check that every thing looks on par with expectations.
Auto create Nano server for ESXi with Powershell
I have recently played a little with Microsoft’s up coming Windows 2016 OS. One of the things I find very intriguing about Windows 2016 is Nano Server. It is the possibility to create a small and fast booting version of Windows. Nano server is JeOS (Just Enough OS), meaning that it all you need for the task ahead. Not more deploying 50GB+ servers with lots of features if you only need one. This equals faster boot times, smaller footprint on resources and smaller attack surface. All good things that IT has come to love from the Linux world. The only real down site is that to make it that small the Windows GUI has to go. But then who really needs that in this world of automation.
Least user privilege for Management Pack for Storage Devices
I recently installed Management Pack for Storage Devices at a customer site. The customer were required to use a service account which had limited privileges in vCenter. The account had the bare minimum needed for vRops to collect data from vCenter. Using the bare minimums for collecting data wasn’t sufficient for the Management Pack for Storage Devices. Found me self needing to find the least user privilege for Management Pack for Storage Devices. I looked at the documentation, but no answer there, so I then reached out to GSS which I later abandon as we were going no where fast. So I jumped into my favorite log analytics tool, Log Insight and started going through the logs in regards to the error (I will write another blog post about how I did it). After 15 minutes I had covered all the user rights needed and added them to the role of the service account in vCenter and the Management Pack for Storage Devices had started collecting data from the environment.
