Tag Archives: time

Brocade SAN Switch NTP Setting the date and time

DS_300B_234:admin> date

Tue Dec 31 06:43:16 UTC 2013

DS_300B_234:admin> tstimezone

Time Zone Hour Offset: 0

Time Zone Minute Offset: 0

DS_300B_234:admin> date

Tue Dec 31 06:45:59 UTC 2013

DS_300B_234:admin> tstimezone –interactive

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

1) Africa

2) Americas

3) Antarctica

4) Arctic Ocean

5) Asia

6) Atlantic Ocean

7) Australia

8) Europe

9) Indian Ocean

10) Pacific Ocean

11) none – I want to specify the time zone using the POSIX TZ format.

Enter number or control-D to quit ?5

Please select a country.

1) Afghanistan           18) Israel                35) Palestine

2) Armenia               19) Japan                 36) Philippines

3) Azerbaijan            20) Jordan                37) Qatar

4) Bahrain               21) Kazakhstan            38) Russia

5) Bangladesh            22) Korea (North)         39) Saudi Arabia

6) Bhutan                23) Korea (South)         40) Singapore

7) Brunei                24) Kuwait                41) Sri Lanka

8) Cambodia              25) Kyrgyzstan            42) Syria

9) China                 26) Laos                  43) Taiwan

10) Cyprus                27) Lebanon               44) Tajikistan

11) East Timor            28) Macau                 45) Thailand

12) Georgia               29) Malaysia              46) Turkmenistan

13) Hong Kong             30) Mongolia              47) United Arab Emirates

14) India                 31) Myanmar (Burma)       48) Uzbekistan

15) Indonesia             32) Nepal                 49) Vietnam

16) Iran                  33) Oman                  50) Yemen

17) Iraq                  34) Pakistan

Enter number or control-D to quit ?14

 

The following information has been given:

 

India

 

Therefore TZ=’Asia/Kolkata’ will be used.

Local time is now:      Tue Dec 31 12:16:40 IST 2013.

Universal Time is now:  Tue Dec 31 06:46:40 UTC 2013.

Is the above information OK?

1) Yes

2) No

Enter number or control-D to quit ?1

System Time Zone change will take effect at next reboot

DS_300B_234:admin> tsclockserver “10.X.X.X.14”

Updating Clock Server configuration…done.

Updated with the NTP servers

DS_300B_234:admin> date

Tue Dec 31 11:44:42 IST 2013

 

How to Set the date and time of the VNX ?

Set Control Station date and time

You must log in as root to perform this operation.

To set the date and time for a Control Station, use this command syntax:
# date -s “<hh:mm mm/dd/yy>”
where:
<hh:mm mm/dd/yy> = time and date format
Example:
To set the date and time to 5:40 P.M. on August  8, 2012, type:
# date -s “17:40 08/08/12”

Set Data Mover or blade date and time

You can customize the display of the date and time on a Data Mover or blade by
using the server_date command. Configuring Time Services on VNX provides
additional information on time services.

To set the current date and time for a Data Mover or blade, use this command syntax:
$ server_date <movername> <yymmddhhmm> [<ss>]
where:
<movername> = name of the Data Mover or blade
<yymmddhhmm> [<ss>] = where <yy> is the year; the first <mm> is the month; <dd> is the day;
<hh> is the hour (in 24-hour system); and the second <mm> is the minute, and <ss> is the second.
Example:
To set the date and time on server_2 to July 4, 2012, 10:30 A.M., type:
$ server_date server_2 1207041030

How to Configure NTP service using the CLI in VNX NAS ?

1. Log in to the Control Station as root.

2. Check the status of the NTP daemon by typing:
# ps -ef |grep ntpd
Output:
ntp      30818     1  0 Aug07 ?        00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid

3. Display information about the ntpd status by typing:
# /sbin/service ntpd status
Output:
ntpd is stopped

4. Display information about the ntpd configuration by typing:
# /sbin/chkconfig ntpd –list
Output:
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

5. Open the /etc/ntp.conf file for editing.

6. Add the NTP server IP address to the file by typing:
server 10.xx.xx.xx

7. Save the file and exit.

8. Open the /etc/ntp/step-tickers file for editing.

9. Add the NTP server IP address to the file by typing:
server 10.xx.xx.xx

10. Save the file and exit.

11. Set up the NTP daemon for run-levels 3, 4, and 5 by typing:
# /sbin/chkconfig –level 345 ntpd on

12. Display information about the ntpd configuration by typing:
# /sbin/chkconfig ntpd –list
Output:
ntpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

13. Start or restart the NTP daemon by typing:
# /sbin/service ntpd start
Output:
ntpd: Synchronizing with time server: [ OK ]
Starting ntpd: [ OK ]
# /sbin/service ntpd restart
Output:
Shutting down ntpd: [ OK ]
ntpd: Synchronizing with time server: [ OK ]
Starting ntpd: [ OK ]

Note: If the response for synchronizing with the time server is positive, the NTP client
was able to communicate with the NTP server.

14. Check the status of the NTP daemon by typing:
# ps -ef |grep ntp
Output:
ntp 25048 1 0 13:09 ? 00:00:00 ntpd -u ntp:ntp -p
/var/run/ntpd.pid

15. Display information about the ntpd status by typing:
# /sbin/service ntpd status
Output:
ntpd (pid 25346) is running…

16. Display the list and status of the peers for the NTP server by typing:
# /usr/sbin/ntpq -p
Output:
r     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.0.50.xx      212.26.18.41     2 u  655 1024  377    1.755  -17.314   1.915

How to Change VNX Control Station time zone using the CLI ?

Steps:
1. Log in to the Control Station as root.

2. To verify the current environment, type:
# date
Output:
Wed Aug  8 16:22:54 IST 2012

3. Display information about the current time zone of the Control Station by typing:
# ls -la /etc/localtime
Output:
lrwxrwxrwx 1 root root 32 Aug  7 22:48 /etc/localtime -> /usr/share/zoneinfo/Asia/Kolkata

4. Set the hardware clock to the current time zone of the Control Station by typing:
# vi /etc/sysconfig/clock
When the file opens, type:
ZONE=”America/New_York”
UTC=false
ARC=false

5. Save the file and exit.

6. Change the current time zone, New York, to Asia/Kolkata, by typing:
# /usr/bin/perl /nas/http/webui/bin/timezone.pl -s Asia/Kolkata
Note: A list of valid Linux time zones is located in the /usr/share/zoneinfo directory.

7. To verify the current environment, type:
# date
Output:
Wed Aug  8 16:22:54 IST 2012

8. Display information about the current time zone of the Control Station by typing:
# ls -la /etc/localtime
Output:
llrwxrwxrwx 1 root root 32 Aug  7 22:48 /etc/localtime -> /usr/share/zoneinfo/Asia/Kolkata

9. Set the hardware clock to the current time zone of the Control Station by typing:
# vi /etc/sysconfig/clock
When the file opens, type:
ZONE=”Asia/Kolkata”
UTC=false
ARC=false

10. Save the file and exit.

11. The time zone of the Control Station is changed to the new location specified in step 6.

How to Set the time zone of the VNX Data Mover ?

You can update the time zone information on the Data Mover by using simple and  decipherable strings that correspond to the time zones available in the Control Station. You can also update the daylight savings time on the Data Mover for the specified time zone.

Set Data Mover or blade time zone manually

To set the time zone on a Data Mover using the Linux time zone method, use this command
syntax:
$ server_date <movername> timezone -name <timezonename>
where:
<movername> = name of the Data Mover
<timezonename> = a Linux style time zone specification
Note: A list of valid Linux time zones is located in the /usr/share/zoneinfo directory.
Example:
To set the time zone to Central Time and adjust the daylight savings time for a Data Mover by using the Linux method, type:
$ server_date server_2 timezone -name  Asia/Kolkata