Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt

Use this file to discover all available pages before exploring further.

Synopsis

Retrieves the current date and time settings, timezone, locale, and NTP server configuration from the HPE OneView appliance.

Syntax

Get-OVApplianceDateTime
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

Get-OVApplianceDateTime queries the appliance for its current date/time configuration. The returned object includes the current timestamp, the configured timezone, the display locale, the list of configured NTP servers, the NTP polling interval, and whether the appliance is set to synchronize time with the hypervisor host. The cmdlet returns a strongly typed HPEOneView.Appliance.ApplianceLocaleDateTime object for each appliance connection processed.

Parameters

ApplianceConnection
Object
Specifies the HPE OneView appliance connection(s) to query. Defaults to the default connection from ${Global:ConnectedSessions}. Alias: Appliance.

Examples

Example 1: Get date/time settings from the default appliance
Get-OVApplianceDateTime
Returns the date/time configuration for the default connected appliance. Example 2: Get date/time settings from multiple appliances
$Connections = ${Global:ConnectedSessions}
Get-OVApplianceDateTime -ApplianceConnection $Connections
Retrieves date/time configuration from all active appliance connections. Example 3: Display NTP servers for the appliance
(Get-OVApplianceDateTime).NtpServers
Returns only the NTP server list from the appliance’s date/time configuration.

Output

HPEOneView.Appliance.ApplianceLocaleDateTime An object containing the following properties:
PropertyDescription
LocaleLocale code (e.g. en_US)
TimezoneIANA timezone string (e.g. UTC)
DateTimeCurrent appliance date and time
NtpServersArray of configured NTP server addresses
PollingIntervalNTP polling interval in seconds
SyncWithHostTrue if syncing from the hypervisor host clock
LocaleDisplayNameHuman-readable locale name