clock command

This command configures and displays the advanced management-module clock settings.

Table 1. clock command
Function What it does Command Valid targets
Display advanced management module clock information Displays the following information for the advanced management module clock:
  • current date and time
  • GMT (Greenwich-Mean Time) offset
  • daylight-savings time setting
clock
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set advanced management module date Sets the date for the advanced management module clock. clock -d date

where date is the current calendar date in mm/dd/yyyy format.

The month and day can be input as single digits. The year must be a four-digit number between 2000 and 2089, inclusive.

This command can only be run by users who have the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set advanced management module time Sets the time for the advanced management module clock. clock -t time

where time is the current time in 24-hour hh:mm:ss format.

The hours, minutes, and seconds can all be input as single digits.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set advanced management module clock GMT offset Sets the time for the advanced management module clock. clock -g offset

where offset is a value between +12 and -12, in hours and minutes. Positive offsets are entered using the form: GMT+hh:mm, +hh:mm, +hh, hh:mm, or hh; where, the hours and minutes can be input as single digits. Negative offsets are entered using the form: GMT-hh:mm, -hh:mm, or -hh; where, the hours and minutes can be input as single digits. Valid offsets are:

  • GMT+0:00
  • GMT+1:00
  • GMT+2:00
  • GMT+3:00
  • GMT+3:30
  • GMT+4:00
  • GMT+4:30
  • GMT+5:00
  • GMT+5:30
  • GMT+6:00
  • GMT+7:00
  • GMT+8:00
  • GMT+9:00
  • GMT+9:30
  • GMT+10:00
  • GMT+11:00
  • GMT+12:00
  • GMT-12:00
  • GMT-11:00
  • GMT-10:00
  • GMT-9:00
  • GMT-8:00
  • GMT-7:00
  • GMT-6:00
  • GMT-5:00
  • GMT-4:00
  • GMT-3:30
  • GMT-3:00
  • GMT-2:00
  • GMT-1:00

(continued on next page)

                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set advanced management module clock GMT offset

(continued)

 

For some time zones that use daylight-savings time (GMT +10, +2, -5, -6, -7, -8, -9), a special value for the -dst option must be specified to identify the correct daylight-savings time scheme to use in that time zone.

This command can only be run by users who have the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
 
Set advanced management module clock daylight-savings time mode Sets the daylight-savings time mode for the advanced management module clock. clock -dst dst_mode

where dst_mode is one of the following:

  • off
  • on
  • for GMT+2:00:
    • off
    • ee (Eastern Europe)
    • gtb (Great Britain)
    • egt (Egypt)
    • fle (Finland)
  • for GMT+10:00:
    • off
    • ea (Eastern Australia)
    • tas (Tasmania)
    • vlad (Vladivostok)
  • for GMT-9:00 to GMT-5:00:
    • off
    • uc (United States and Canada)
    • other (other locations)
  • for GMT-4:00:
    • off
    • can (Canada)
    • other (other locations)

Daylight-savings time is not observed in the following GMT offsets: GMT+4:00, GMT+4:30, GMT+5:30, GMT+6:00, GMT+7:00, GMT+8:00, GMT+11:00, GMT-12:00, GMT-11:00, and GMT-10:00.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example: To set the management-module for operation in the US Eastern time zone in compliance with new daylight-savings time rules, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  clock -g +5 -dst uc
               
To display the clock information for the primary management module, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  clock
               

The following example shows the information that is returned from these two commands:

               system:mm[1]> clock -g +5 -dst uc
OK
system:mm[1]> clock
10/17/2006 02:27:11 GMT+5:00 dst uc
system:mm[1]>