setdate(8)
EXAMPLES
182
SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised October 2010
When you use the setdate(8) command to set the time, it may affect the time
■
difference to the domain, and a gap of time may arise at the domain start. After
you set the time, use the showdateoffset(8) command to confirm the time
difference between XSCF and the domain. In case the difference has become
enlarged, use the resetdateoffset(8) command to reset the time difference.
When an NTP server has been set to XSCF, you cannot set the the time. To check
■
whether an NTP server is set to XSCF, use the showntp(8) command.
You can execute the setdate(8) command only when all domains are powered
■
off. To verify that all domains are powered off, execute the showlogs power
command and look for the value System Power Off.
To check the currently set XSCF date and time, execute the showdate(8)
■
command.
Sets "January 27 16:59:00 2006" of the local time (JST) as the current time.
EXAMPLE 1
XSCF> setdate -s 012716592006.00
Fri Jan 27 16:59:00 JST 2006
The XSCF will be reset. Continue? [y|n] :y
Fri Jan 27 07:59:00 UTC 2006
XSCF>
The reset continues after this point.
Sets "January 27 07:59:00 2006" of UTC as the current time.
EXAMPLE 2
XSCF> setdate -u -s 012707592006.00
Fri Jan 27 07:59:00 UTC 2006
The XSCF will be reset. Continue? [y|n] :y
Fri Jan 27 07:59:00 UTC 2006
XSCF>
The reset continues after this point.
Sets "January 27 16:59:00 2006" of the local time (JST) as the current time.
EXAMPLE 3
Automatically replies with "y" to the prompt.
XSCF> setdate -y -s 012716592006.00
Fri Jan 27 16:59:00 JST 2006
The XSCF will be reset. Continue? [y|n] :y
Fri Jan 27 07:59:00 UTC 2006
XSCF>
The reset continues after this point.