FUJITSU SPARC ENTERPRISE M4000 User Manual

Page 160

Advertising
background image

setdate(8)

164

XSCF Reference Manual • Last Revised June 2007

The ntpdate(1M) command is executed in the domain.

Rebooting the domain

The setdate(8) command needs to be executed in the system power-off status.

In case an NTP server set to XSCF, the time set by the setdate(8) command
becomes invalid. Whether an NTP server set to XSCF or not can be checked by
using the showntp(8) command.

To check the currently set XSCF date and time, execute the showdate(8)
command.

EXAMPLES

EXAMPLE 1

Sets "January 27 16:59:00 2006" of the local time (JST) as the current time.

EXAMPLE 2

Sets "January 27 07:59:00 2006" of UTC as the current time.

EXAMPLE 3

Sets "January 27 16:59:00 2006" of the local time (JST) as the current time.
Automatically replies with 'y' to the prompt.

EXAMPLE 4

Sets "January 27 16:59:00 2006" of the local time (JST) as the current time.
Automatically replies with 'y' without displaying the prompt.

EXIT STATUS

The following exit values are returned:

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 16:59:00 JST 2006
XSCF>
The reset continues after this point.

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.

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 16:59:00 JST 2006
XSCF>
The reset continues after this point.

XSCF>

setdate -q -y -s 012716592006.00

XSCF>
The reset continues after this point.

0

Successful completion.

>0

An error occurred.

Advertising