Got something wiered happened today, might be a bug or something.
I was to change current time zone setting by
Get-NTNXCluster | Set-NTNXCluster -Timezone "Australia/Sydney"
However it throw me an error:
"The cluster name may contain only English letters, decimal digits (0-9), dots, hyphens and underscores. Set-NTNXCluster : The remote server returned an error: (500) Internal Server Error."
Then I thought it might be because I did not include cluster id, so I ran below command :
Get-NTNXContainer -Id xxxxxxx-xxxxxxx-xxxxxx-xxxxxx-xxxxxxxxxxxxxx::4769 | Set-NTNXCluster -Timezone "Australia/Sydney"
Apprently you will find instead of using Get-NTNXCluster, I used Get-NTNXContainer which I copied from command I previously ran without double check, you would assume that will throw me an error, but it did not, it finished with a "Success".
Yes, it did change the timezone on the cluster, however at the same time it changed cluster name to the Container name as well which is totally unexpected.
So I thought I might be able to change it back to the original cluster name with a space in middle by run this command :
Get-NTNXCluster -Id xxxxxxx-xxxxxxx-xxxxxx-xxxxxx-xxxxxxxxxxxxxx | Set-NTNXCluster -Name "My Cluster 1"
Again, it throw me an error like the one above, so I have to change the name to "My-Cluster-1", then it worked.
I know this is not a big issue, but it will be good to have some sort of explaination, and get rid of those hypens from my cluster name.
Already have an account? Login
Login to the community
Login with your account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
cluster set-timezone timezone=Australia/Sydney
It complained about the special characters as well.