|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcTime
NAME
Set-NcTime
SYNOPSIS
Set current date and time to the specified date and time.
SYNTAX
Set-NcTime [-Node] <String> [-DateTime] <DateTime> [-Controller <NcControlle
r[]>] [<CommonParameters>]
Set-NcTime [-Node] <String> [-DateTime] <DateTime> [-Timezone] <String> [-Co
ntroller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Set current date and time to the specified date and time.
PARAMETERS
-Node <String>
Node for which to set time.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-DateTime <DateTime>
The time value as a DateTime object.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Timezone <String>
The timezone specified in the Olson format.
Required? true
Position? 3
Default value
Accept pipeline input? true (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
DataONTAP.C.Types.Clock.Time
NOTES
Category: clock
API: system-cli
Family: cluster
-------------- Example 1 --------------
C:\PS>Set-NcTime -Node tesla-01 -DateTime (Get-Date)
Set the current date and time on the node tesla-01 to the current date and t
ime on the host.
LocalTime : 1347545997
UtcTime : 1347560397
LocalTimeDT : 9/13/2012 2:19:57 PM
UtcTimeDT : 9/13/2012 6:19:57 PM
-------------- Example 2 --------------
C:\PS>Set-NcTime -Node tesla-01 -Timezone America/Los_Angeles
Set the timezone for the node tesla-01 to "America/Los_Angeles."
LocalTime : 1347535360
UtcTime : 1347560560
LocalTimeDT : 9/13/2012 11:22:40 AM
UtcTimeDT : 9/13/2012 6:22:40 PM
RELATED LINKS
Get-NcTime
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|