|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaTime
NAME
Set-NaTime
SYNOPSIS
Set current date and time to the specified date and time.
SYNTAX
Set-NaTime [-LocalTime] <Int32> [-Controller <NaController>] [-WarningAction
<ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
Set-NaTime -UtcTime <Int32> [-Controller <NaController>] [-WarningAction <Ac
tionPreference>] [-WarningVariable <String>] [<CommonParameters>]
DESCRIPTION
Set current date and time to the specified date and time.
PARAMETERS
-LocalTime <Int32>
Actual value of the date and time which has to be set as the current dat
e and time on the controller. Value will be seconds since Midnight, 1/1
/1970. Depending on the time zone and clock settings, this might be neg
ative by up to 12 hours. Use this form to set the local time.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UtcTime <Int32>
Actual value of the date and time which has to be set as the current dat
e and time on the controller. Value will be seconds since Midnight, 1/1
/1970. Depending on the time zone and clock settings, this might be neg
ative by up to 12 hours. Use this form to set the GMT time.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
System.Collections.Hashtable
NOTES
Category: clock
API: clock-set-clock
-------------- Example 1 --------------
C:\PS>Set-NaTime 1269636712
Set the local time on the current controller. In this example, the time is
set but the controller warns that its time is sync'ed to another source.
Set-NaTime : Warning: syncing source which will eventually override the time
se
t by the clock-set-clock api.
At line:1 char:11
+ Set-NaTime <<<< 1269636712
+ CategoryInfo : InvalidOperation: (NetApp.Ontapi.Filer.NaContr
ol
ler:NaController) [Set-NaTime], EVOLUMENOTDECOMPRESSING
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.
Cl
ock.SetNaTime
RELATED LINKS
Get-NaTime
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|