![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
OpenVMS System Manager's Manual
6.4 Setting Time in an OpenVMS Cluster EnvironmentThe local time, the TDF, and the time zone must be the same on all nodes in an OpenVMS Cluster environment. You can use the System Management utility (SYSMAN) DO command to invoke the command procedure SYS$MANAGER:UTC$TIME_SETUP.COM on one node in a cluster to perform the following actions for one or more nodes in the cluster:
Because SYS$MANAGER:UTC$TIME_SETUP.COM is different on OpenVMS Alpha systems and OpenVMS VAX systems, you must take care in a mixed architecture cluster. Set the SYSMAN environment to operate on all Alpha or all VAX nodes with the following SYSMAM command:
Then, after you have run UTC$TIME_SETUP.COM for one architecture, reset
the environment to the other architecture and run UTC$TIME_SETUP.COM
for that architecture.
In time zones that use daylight saving time, your system time must be adjusted twice a year. How this change occurs depends on the following:
If DTSS is not in use, use the following table to determine how to change system time between standard time and daylight saving time:
6.5.1 Automatically Adjusting for Daylight Saving Time (OpenVMS Alpha Version 7.3 Only)OpenVMS Alpha Version 7.3 and later contain a system parameter, AUTO_DLIGHT_SAV, that controls automatic switching between standard time and daylight saving time. If AUTO_DLIGHT_SAV is set to 1, an OpenVMS Alpha Version 7.3 (and later) system automatically sets the time forward or back when local time changes between daylight saving time and standard time. If AUTO_DLIGHT_SAV is set to 0 (the default), OpenVMS does not automatically change between daylight saving time and standard time. The AUTO_DLIGHT_SAV parameter and the automatic changes between daylight saving time and standard time are implemented only on OpenVMS Alpha Version 7.3 and later. For this to work correctly, you must set a time zone rule for your time zone. See Section 6.2 for information about setting time zone rules on OpenVMS Alpha Version 7.3 systems. To enable or disable the automatic changing from standard time to daylight saving time, you must modify AUTO_DLIGHT_SAV. See Chapter 15 for information about modifying system parameters.
For details on manually adjusting for daylight saving time on OpenVMS
Version 7.3 systems, see Section 6.5.2.
This section contains instructions for adjusting system time between standard time and daylight saving time on OpenVMS Version 7.3 when DTSS is not in use. Use these instruction for OpenVMS VAX Version 7.3 and for OpenVMS Alpha Version 7.3 when automatic daylight saving time switching is disabled (system parameter AUTO_DLIGHT_SAV is set to 0). To adjust the local time to daylight saving time or standard time, invoke command procedure SYS$EXAMPLES:DAYLIGHT_SAVINGS.COM to perform both of the following tasks:
DAYLIGHT_SAVINGS.COM allows you to perform either of the following actions:
DAYLIGHT_SAVINGS.COM creates a command procedure, DST$CHANGE.COM, in the current directory. DST$CHANGE.COM can execute on the current node only. To change the time for all nodes in an OpenVMS Cluster, DAYLIGHT_SAVINGS.COM also creates command procedure DST$SYSMAN.COM that executes DST$CHANGE.COM by executing a SYSMAN DO command. Note that to change all nodes, you must run DAYLIGHT_SAVINGS.COM on a node that has OpenVMS Alpha Version 7.3 installed. You can run DAYLIGHT_SAVINGS.COM interactively and respond to prompts for input, or run the command procedure with parameters. To run DAYLIGHT_SAVINGS.COM with parameters, enter the following command:
The parameters are described in the following table:
Note that you need enter only the first letter of parameters P1, P2, and P3. To run DAYLIGHT_SAVINGS.COM interactively, enter the following command:
DAYLIGHT_SAVINGS.COM prompts you for the parameters specified above.
When executing DAYLIGHT_SAVINGS.COM to change the time on all nodes in
an OpenVMS Cluster at a future time, you can specify SAVE for parameter
P3. This causes DAYLIGHT_SAVINGS.COM to save command procedures
DST$SYSMAN.COM and DST$CHANGE.COM. You can then submit DST$SYSMAN.COM
to the correct queue.
This section contains instructions for adjusting system time for daylight saving time on OpenVMS Version 7.2 and earlier.
To adjust the local time to daylight saving time or standard time, you can invoke the command procedure SYS$EXAMPLES:DAYLIGHT_SAVINGS.COM to perform both of the following tasks:
DAYLIGHT_SAVINGS.COM allows you to perform either of the following actions:
The following example of DAYLIGHT_SAVINGS.COM shows answers that cause the procedure to queue a batch job, DST_CHANGE, which will execute when the time changes from standard time to daylight saving time. Many of the questions are similar to those explained in Section 6.3.2. In the example, the initial TDF value is -5:00. The local date and time are any time from the date in 2000 when the change to standard time was made, until 1-APR-2001:02:00, when the change to daylight saving time will be made.
The BBW provides sufficient storage capability for only a century. The OpenVMS Alpha system date range has been redefined as 1957 to 2056 to maintain correct leap-year processing and to provide for the millennial transition. In addition, the OpenVMS Alpha timing mechanisms have been changed to allow 2-digit year support in the $ASCTIM system service and the DCL command SET TIME. (Prior to this change, only 4-digit year fields were allowed.) With 2-digit support, you need to enter only the last 2 digits of a year. The century associated with the year field is derived from the placement of the 2 digits in the 1957-2056 date range. For example:
In this example, 98 is the equivalent of 1998.
In this example, 05 is the equivalent of 2005.
You can specify languages other than English. From the list that the system manager defines, users can later select a language that they want to display. You can also select the time and date formats for many SHOW commands from a predefined list or define new time and date formats.
For example, rather than 15-JAN-2001 10:16:25.14, you can use a different format, such as the following one:
Later, users can override the system defaults set up by the system manager and select their own date and time formats.
Steps to Change Languages, and Dates and Times
For languages other than English or date/time formats other than the defaults, you must complete these steps.
6.7.1 Specifying Languages Other Than English
You use the SYS$LANGUAGES (plural) logical to define a list of languages other than English. (From this list, users can later select a language to be displayed on their processes, as explained in Section 6.7.4.) Because English is the default language and must therefore always be available, English spellings are not taken from logical name translations; rather, they are looked up in an internal table. For example, to specify the French, German, and Italian languages, you must define SYS$LANGUAGES:
To add another language, for example, FINNISH, you must add FINNISH to
the definition of SYS$LANGUAGES and execute the command procedure again.
The SYS$MANAGER:LIB$DT_STARTUP.COM command procedure defines the possible choices for the following logicals:
To invoke the command procedure, enter the following command:
If the translation of SYS$LANGUAGES fails, then English is used. If the
translation of LIB$DT_FORMAT or any logical name relating to format
fails, the OpenVMS standard ($ASCTIM) representation of the date and
time is used, that is, dd-mmm-yyyy hh:mm:ss.cc.
To define default date and time formats, you can use either user-defined formats, which are shown in Table 6-2, or predefined formats, which are shown in Table 6-3 and Table 6-4. To select a format for a date, time, or both, you must define the LIB$DT_FORMAT logical name using the following logicals:
The order in which these logical names appear in the definition of LIB$DT_FORMAT determines the order in which they are output. A single space is inserted into the output string between the two elements if the definition specifies that both are output. For example, to define systemwide formats:
This definition causes the date to be displayed systemwide in the specified format, followed by a space and the time in the specified format. For example:
Section 6.7.4 explains how users can select their own date and time
formats to be displayed for their process.
To define your own format, define LIB$DATE_FORMAT_nnn and LIB$TIME_FORMAT_nnn, using the mnemonics shown in Table 6-2. Replace nnn with a number of your choice.
|