HP StorageWorks Fabric OS 5.3.x administrator guide (5697-0244, November 2009)

32 Performing basic configuration tasks
Setting the date and time
Switches maintain the current date and time inside a battery-backed real-time clock (RTC) circuit. Date and
time are used for logging events. Switch operation does not depend on the date and time; a switch with an
incorrect date and time value still functions properly. However, because the date and time are used for
logging, error detection, and troubleshooting, you should set them correctly.
Authorization access to set or change date and time for a switch is role-based. For an understanding of
role-based access, refer to Managing administrative domains, page 149.
NOTE: If secure mode is not enabled, a change in date or time to one switch is forwarded to the principal
switch and distributed to the fabric. If secure mode is enabled, date or time changes can be made only on
the primary FCS switch and distributed to the fabric.
1. Connect to the switch and log in as admin.
2. Enter the date command at the command line, using the following syntax:
The values represent the following:
mm
is the month; valid values are 01 through 12.
dd
is the date; valid values are 01 through 31.
HH
is the hour; valid values are 00 through 23.
MM
is minutes; valid values are 00 through 59.
yy
is the year; valid values are 00 through 99 (values greater than 69 are interpreted as 1970 through
1999, and values less than 70 are interpreted as 2000-2069).
For details about how to change time zones, refer to tsTimeZone command in the
Fabric OS Command
Reference Manual
.
Setting time zones
Fabric OS 5.2.x and later provides the capability to set the time zone for a switch by name. You can
specify the setting using Country and City or time zone parameters. Switch operation does not depend on
a date and time setting. However, having an accurate time setting is needed for accurate logging and
audit tracking.
If the time zone is not set with the new options, the switch retains the offset time zone settings. The tsTime
Zone command includes an option to revert to the prior time zone format. For more information about this
--old option, see the Fabric OS Command Reference Manual.
NOTE: If you are downgrading from Fabric OS 5.3.0 or retaining the offset format, see prior versions of
the
Fabric OS Administrator’s Guide
for the detailed information about setting time zones using the offset
format. See ”About the firmware download process” on page 173 for time zone downgrading
considerations.
datemmddHHMMyy
switch:admin> date
Fri Jan 29 17:01:48 UTC 2004
switch:admin> date "0227123004"
Thu Feb 27 12:30:00 UTC 2004
switch:admin>