VMware Cloud Community
IT_pilot
Expert
Expert

Update-VsanHclDatabase

Hi

I'm trying to run an Update-VsanHclDatabase, but I get an error "The object reference does not point to an instance of the object"

http://it-pilot.ru
0 Kudos
9 Replies
LucD
Leadership
Leadership

Are you sure you can reach the Internet?

I just tried the same from behind a proxy without providing my credentials, and I get exactly the same message.

vsandb.png

Did you already try with the FilePath parameter and a file that you downloaded from http://partnerweb.vmware.com/service/vsan/all.json


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
IT_pilot
Expert
Expert

Internet access is available. PowerCLI updates modules and help without problems.

As an experiment I tried from the file. Copied the file to C:\Windows\system32

http://it-pilot.ru
0 Kudos
LucD
Leadership
Leadership

So from the file it works?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
IT_pilot
Expert
Expert

No, the date of the file does not change (06/20/2018)

http://it-pilot.ru
0 Kudos
LucD
Leadership
Leadership

That is the date in the current file!
The time difference is due to the TZ.

It's not the timestamp of the file on your PC that you should be looking at.

timestamp.png


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

IT_pilot
Expert
Expert

With the date you are right. I found the old all.json file, copied it to the default folder, and updated it with the Update-VsanHclDatabase -FilePath all.json command. The date has changed (21.03). Then I tried to update via the Internet. Failure. Replaced the old file with a new one - and again ran Update-VsanHclDatabase -FilePath. Happened. Updating from the file works. But when the file has already been downloaded, you can also update manually, without PowerCLI. I would like to update the Update-VsanHclDatabase command without manually creating the file all.json.

http://it-pilot.ru
0 Kudos
LucD
Leadership
Leadership

I would try to find out if the download from the Internet encounters an issue.
Perhaps a network trace?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
IT_pilot
Expert
Expert

6.png

http://it-pilot.ru
0 Kudos
LucD
Leadership
Leadership

That doesn't exclude that there might be an issue with the download of the VSANHCL file.
On your side, or on the side of the server.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos