Tag Archives: Platform Services Controller

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!

How to redirect vSphere Platform Services Controller syslog

I use vRealize Log Insight as my log management platform, so I’d like all components of SDDC to direct the syslog to it. I am using an external Platform Services Controller, and I do not see my Log Insight receiving log entries from the hostname (or source) of my PSC.

It turned out that you have to configure it. It is not automatically configured when you added a vCenter in Log Insight.

Login to your vCenter with an account with administrator privilege. I use Administrator@vSphere.local as I do not configure my vSphere admin to have the full privilege.

From there, go to Administration. Under the Deployment group, choose System Configuration. It will take you to the following screen. From there, click on Nodes. Your list of vCenter and PSC will be shown.

0

Double click on the PSC that you want to configure. Click on the Services, and you will see the Syslog Service. You can see that the Health is good and it’s running.

00

Click on the VMware Syslog Service. It will show you that it is not yet configured.

1

Simply configure it. Here is mine as an example.

2

It says restart required. So I restarted mine. Wait a few minute, and the entries start showing up! In my case, the hostname is core-platform-sc-1, so all I need is to filter Log Insight entries to just show entries from this hostname.

3

If you have multiple PSC, you need to do it for each one by one.