Monthly Archives: October 2015

75% discount code for the SDDC Performance & Capacity Management book

Code is TechSummit15

With 75% discount, it’s only US$ 6.75.

The code only works at the Publisher web site. It does not work in Amazon or other site. The direct link to the book is this.

It is also for soft-copy only. Good for the environment, saves shipping fee, and it’s immediate download 🙂

For those who are not familiar, the title is rather misleading. As shared here, I wanted to name it SDDC Performance and Capacity Management. That was what I proposed to the Publisher, as it is not actually a product book. It is more of an architecture or best practice book, focus on performance and capacity. Out of the 260 pages, the bulk of the book is not about vRealize Operations. Product wise, the book covers vSphere more than it covers vRealize Operations. So it’s actually relevant if you just want to master those vSphere counters.

Because it is not a product book, you can in fact apply a lot of the concept even if you do not have vRealize Operations. If you are looking for a product book, the best one is here.

vRealize Operations: Number of VMs by Departments

This blog was contributed by Luciano Gomes, a VMware consultant based in Brazil. He’s got a great nickname: Lucky! Thanks Lucky for the contribution!

It is common for customer to use Folders to organise their Virtual Machines. One of my customers use Folders and Subfolders extensively. They need report the total virtual machines by Department. In addition, they want to know all powered off virtual machines too.

There are several challenges here

  • vRealize Operations understands folder. However, we lose the hierarchy. As you can see below, there is no more subfolders.
  • A Department can span more than 1 folder. This means we cannot use folder. We need to group them. You cannot use vRealize Operations tag as the membership has to be dynamic.

Capture

So let’s create a group that can spans multiple folders and subfolders. Go to the Environment Overview, and then Groups tab. I’ve shown an example below. By the way, you may notice additional tabs besides Groups. That’s part of the new features in 6.1!

Capture 2

Click on the green + icon to create a custom group. Choose the object type as Virtual Machine. I chose the Group Type as Department, and tick the box “keep group membership up to date“.

Capture 2

Now, to get the Virtual Machine in the folder, choose Relationship, then Descendant of, and then choose the folder name. When you type the name, vRealize Operations will automatically select all objects, including folder. You do not have to specify which navigation tree.

I called mine Departments in the following screenshot. To get members from multiple folders, simply click on the “Add another criteria set“, which will result in an OR group membership.

1

Click OK to close it. You will be taken back to the list of groups.

From here, it’s a matter of clicking on the newly created group. It will drill down into this object. On the right side of the screeen, click on your Custom Group. You should see the total number of virtual machines. Yup, that’s all!

2

The above does not include additional info other than the number of VM. My customer needs to answer questions like:

  • How many VMs are powered off?
  • How many Template do I have?

To see more detailed information, we need to create a custom View. View in a special type of Widget, as it is a lot more flexible compared to other widgets. To create a view, click on Details tab (as shown above), and then click on the + icon. The New View wizard will pop up.

Capture

Give it a name.

  • In Step 2. Presentation, choose List
  • In Step 3. Subjects, choose Virtual Machine
  • In Step 4. Data, choose the metrics like below

Click in Show Metrics (see my first arrow, apology for the drawing) – to see the menu as shown below. Choose the metrics (shown in each arrow):

4

Now you will see all virtual machines and templates that you have inside that Custom Group! You can put more information if you need, like Parent vCenter, Parent Host, etc.

Oh, you can also set the time range and export this information to a CSV file, like I’ve shown below:

5

This concludes this simple tip! Have a great day from Brazil!

Redirect vCenter 6 Appliance to a new Platform Services Controller

I need to redirect my vCenter. There is a good KB article here, so I will only add complimentary info.

The first step is to enable the BASH Shell and SSH.

0 enable SSH

Once done, you’re ready to login remotely. I use Putty as my favourite SSH tool. From the Command>, simply type shell.

That will take you to BASH Shell, which you have enabled earlier.

The first step is to change the setting. You issue the command:

/usr/lib/vmware-vmafd/bin/vmafd-cli set-dc-name --server-name localhost --dc-name name_of_second_PSC

I used the FQDN name. Here it is in my case:

/usr/lib/vmware-vmafd/bin/vmafd-cli set-dc-name --server-name localhost --dc-name core-platform-sc-1.core.lab

As you can see below, there was no feedback. So I’m not sure if it’s successful or not. I guess it is as it’s a simple change of a property.

1

The next thing is to essentially reboot. You can do it via GUI, or just from the CLI as I did above. The good thing about the CLI is it shows more details. As you can see below, it’s a long list of services.

2

After a good few minutes, it finished, and you get the shell again.

3

The next is to start the services. That’s all you are supposed to do. Your story should end here. MIne did not 🙂

After that, I could not login to my vCenter using my AD credential. I tried both the C# client and Web Client. I also saw that the Web Server is initializing, as you can see below. I waited for it to complete. After it was settled down, I still could not login. I could login to the new PSC, but I do not see any vCenter.

21 web client takes time to initialize

I found out that I needed to register my PSC to AD. I thought this step was taken care off when I deployed the new PSC, as I deployed it to the same Domain and Site. I checked and it was joined. As you can see from the following screenshot, it was blank. Luckily, to register to domain is pretty simple.

30

You need to reboot. Once done, it should look something like this.

31 all good

That’s all it took to redirect a vCenter to a new PSC. Happy redirecting!