HP MSA 2040 CLI Reference Guide

set ntp-parameters 171
set ntp-parameters
set output-format (Deprecated)
Use set cli-parameters.
Description Sets Network Time Protocol (NTP) parameters for the system. You can manually set system date and
time parameters by using the set controller-date command. You must specify at least one of the
optional parameters for the command to succeed.
Syntax
set ntp-parameters
[ntp enabled|disabled|on|off]
[ntpaddress
IP-address
]
[timezone +|-
hh
[:
mm
]]
Parameters ntp enabled|disabled|on|off
Optional. Enables or disables use of NTP. When NTP is enabled and the specified NTP server is
available, each controller’s time is synchronized with the server.
ntpaddress
IP-address
Optional. The network address of an available NTP server.
timezone
+|-
hh
[:
mm
]
Optional. The system’s time zone as an offset in hours (-12 through +14) and optionally minutes
(00–59) from Coordinated Universal Time (UTC). To specify a positive offset, the '+' is optional; to
specify a negative offset, the '-' is required. The hour value can have one or two digits and can omit
a leading zero. If the minutes value is specified it must have two digits; if it is omitted, the minutes
value is set to 00.
Example Set the system to use NTP with an offset for the Mountain Time zone:
# set ntp-parameters ntp enabled ntpaddress 69.10.36.3 timezone -7
Success: Command completed successfully. - Date/Time successfully set.
(2011-10-11 14:52:19)
Set the system to use NTP with an offset for the Bangalore, India, time zone:
# set ntp-parameters ntp enabled ntpaddress 69.10.36.3 timezone +5:30
Success: Command completed successfully. - Date/Time successfully set.
(2011-10-11 14:52:29)
See also set controller-date
show controller-date
show ntp-status