Menu

@{N=“NTPServers“;E={$_ | Get-VMHostNtpServer}}

Home.
Announcing the General Availability of Azure….
September 3, 2020September 3, 2020 Announcing the General Availability of Azure Spring Cloud Announcing the General Availability of Azure….
Everyone wants their developers to be more productive.
Increased productivity means more features and functionality, which leads to more satisfied customers and better business outcomes.
That is why, today at SpringOne, we are happy to announce the general availability of Microsoft Azure Spring Cloud—a fully managed service for Spring Boot apps.
As a native Azure service, it is operated by Microsoft, but VMware has partnered closely with Microsoft in the development of the service and fully…Read More Announcing VMware Telco Cloud Platform.
September 3, 2020September 3, .

2020 Announcing VMware Telco Cloud Platform

The rollout of 5G networks is driving a monumental shift among communications service providers.
As a CSP, you’re likely envisioning a multi-cloud strategy that lets you deploy both virtual network functions and cloud-native network functions from various vendors side by side on hybrid infrastructure so you can rapidly launch new services, explore new opportunities, and … Update Multiple 6.7 ESXi Hosts Root Password Via Host Profile.
VMware has a that details the process should the root password become unknown on a host.
Well the same process can be applied and used to update the password on all hosts with that host profile attached.
At the time of writing this article, all hosts are compliant with the current host profile, and there are no outstanding issues.
Space Force boldly goes to Silicon Valley to….
August 31, 2020August 31, 2020 Space Force boldly goes to Silicon Valley to….
With the help of Silicon Valley, the U.
S.
Space Force is already proving that it can do business quicker than its more established sister services.
Running vSphere.
Five reasons why you need….
August 31, 2020August 31, 2020 Running vSphere.
Five reasons why you need….
The challenges with traditional vSphere-based 3-tier infrastructure is that they are still largely dependent upon the hardware that it runs upon.
Physical hardware often needs to be reconfigured when moves, adds and changes need to be made at a storage, networking or security level are required.
These hardware changes are often manual, time consuming and risky and result in scheduled maintenance windows which queue in ticketing systems and slow down ITs ability to best serve the needs of the business What’s New in vRealize Cloud Management 8.2?.
August 20, 2020August 19, 2020 What’s New in vRealize Cloud Management 8.2.
What’s New in vRealize Cloud Management 8.2?.
For many, coping with today’s new normal is a struggle.
Yet, organizations that have made transforming their business with modern, digital experiences a top priority say they are adapting and even thriving.
How is that so.
They are succeeding by building on the scale and innovation that comes from an agile, hybrid cloud and multicloud The post What’s New in vRealize Cloud Management 8.2.
appeared first on VMware Cloud Management.
Announcing vRealize Operations 8.2.
August 20, 2020August 19, 2020 Announcing vRealize Operations 8.2 Announcing vRealize Operations 8.2.
We are extremely excited to announce the upcoming release of vRealize Operations 8.2 and vRealize Operations Cloud.
And although vRealize Operations has been around for almost a decade, it’s pretty unbelievable to see how far we’ve come.
Today, we are proud to be a holistic self-driving IT operations management platform for private, hybrid, .

The post Announcing vRealize Operations 8.2 appeared first on VMware Cloud Management

vSphere 7 Upgrade Best Practices.
July 29, 2020July 29, 2020 vSphere 7 Upgrade Best Practices.
This article provides important documentation and upgrade information that must be reviewed before upgrading to vSphere 7.0.
VMware Cloud on AWS gets updates focused on….
July 22, 2020July 22, 2020 VMware Cloud on AWS gets updates focused on….
With a new instance type, new production cluster configuration, and a new multi-tenant cloud management service, VMware and AWS seek to make their jointly-engineered cloud offering more accessible for a wider range of customers and use cases.

Get and set NTP settings of all VMware Hosts with PowerCLI

July 17, 2020July 24, 2020 Quiet often when I connect to customer sites to conduct a health check.

I sometimes find their hosts having different NTP settings

or not having NTP configured at all.
Probably one of the easiest one-liners I keep in my virtual Rolodex of powerCLI one-liners, .

Is the ability to check NTP settings of all hosts in the environment

Checking NTP with Powercli Get-VMHost | Sort-Object Name | Select-Object Name, @{N=”Cluster”;E={$_ | Get-Cluster}}, @{N=”Datacenter”;E={$_ | Get-Datacenter}}, .

@{N=“NTPServiceRunning“;E={($_ | Get-VmHostService | Where-Object {$_.key-eq “ntpd“})

Running}}, .

@{N=“StartupPolicy“;E={($_ | Get-VmHostService | Where-Object {$_.key-eq “ntpd“})

Policy}}, @{N=“NTPServers“;E={$_ | Get-VMHostNtpServer}}, @{N=”Date&Time”;E={(get-view $_.
ExtensionData.configManager.
DateTimeSystem).
QueryDateTime()}} | format-table -autosize With this rather lengthy command, I can get everything that is important to me.
We can see from the output that I have a single host in my Dev-Cluster that does not have NTP configured.

Quiet often I find customers that have mis-configured NTP settings

do not make use of host profiles that can catch and address issues like this.
If you also wanted to see the incoming, outgoing and protocols settings, you could use the following: Get-VMHost | Sort-Object Name | Select-Object Name, @{N=”Cluster”;E={$_ | Get-Cluster}}, @{N=”Datacenter”;E={$_ | Get-Datacenter}}, @{N=“NTPServiceRunning“;E={($_ | Get-VmHostService | Where-Object {$_.key-eq “ntpd“}).
Running}}, @{N=”IncomingPorts”;E={($_ | Get-VMHostFirewallException | Where-Object {$_.
Name -eq “NTP client”}).
IncomingPorts}}, @{N=”OutgoingPorts”;E={($_ | Get-VMHostFirewallException | Where-Object {$_.
Name -eq “NTP client”}).
OutgoingPorts}}, @{N=”Protocols”;E={($_ | Get-VMHostFirewallException | Where-Object {$_.
Name -eq “NTP client”}).
Protocols}}, @{N=“StartupPolicy“;E={($_ | Get-VmHostService | Where-Object {$_.key-eq “ntpd“}).
Policy}}, @{N=“NTPServers“;E={$_ | Get-VMHostNtpServer}}, @{N=”Date&Time”;E={(get-view $_.
ExtensionData.configManager.
DateTimeSystem).
QueryDateTime()}} | format-table -autosize Set NTP with Powercli You can setup NTP on hosts with powercli as well.
I have everything in my lab pointed to ‘pool.ntp.org’, so my example will use that.
Get-VMHost | Add-VMHostNtpServer -NtpServer pool.ntp.org Most likely you would have multiple corporate NTP servers you’d need to point to, and that is easily done by separating them with a comma.
An example of having two: Instead of having just ‘pool.ntp.org’ I’d have ‘ntp-server01,ntp-server02’.
The next thing needed is the startup policy.
VMware has three different options to choose from.
on = Start and stop with host, automatic = start and stop with port usage, and off = start and stop manually.
In my lab I have the policy set to on.
Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq “ntpd”} | Set-VMHostService -policy “on” With that in mind, .

The following command I can make the NTP settings of all hosts consistent

This command assumes that I only have one NTP server

I am also stopping and starting the NTP service.
It is also worth mentioning that each host that already has the ntp server ‘pool.ntp.org’, will throw a red error that the NtpServer already exists.
Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq “ntpd”} | Stop-VMHostService -Confirm:$false; Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq “ntpd”} | Set-VMHostService -policy “on”; Get-VMHost | Add-VMHostNtpServer -NtpServer pool.ntp.org; Get-VMHost | Get-VMHostFirewallException | Where-Object {$_.
Name -eq “NTP client”} | Set-VMHostFirewallException -Enabled:$true; Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq “ntpd”} | Start-VMHostService Now NTP should be consistent across all hosts.
Re-run the first command to validate.
Posts navigation.
Older Posts Post to.

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *