HP UX 11i v2 Networking Software manual Setting the NTP Servers to Maintain the System Clock

Models: UX 11i v2 Networking Software

1 236
Download 236 pages 18.16 Kb
Page 106
Image 106

Setting Time Through the CLI

Note: If you have an NTP server configured, it is recommended that you use the process described

in: “Setting the NTP Servers to Maintain the System Clock” (page 106).

To set the system clock in the CLI:

1.Login to the CLI as the super user.

2.Enter enable to enter the privileged-execute mode.

HP-IB> enable HP-IB#

3.Enter the clock command, followed by the set keyword and the time and date in the format hh : mm : ss dd mm yy. For example:

HP-IB# clock set 19:22:10 25 03 03

4.Save your configuration.

HP-IB# copy running-config startup-config

Setting the NTP Servers to Maintain the System Clock

Accurate time is important in network statistics. You can set the time manually or use the Network Time Protocol to synchronize the system with the rest of your network.

It is recommended that you use Network Time Protocol (NTP) servers to set the system clock. Synchronizing the switch system clock with NTP servers ensures accurate time and only has to be configured once. The NTP servers synchronize the clock upon reboot and at specified intervals.

CLI Procedure

Use the following procedure to synch the system clock with an external NTP server clock.

1.Login to the CLI as the super user.

2.Enter enable to enter the privileged-execute mode.

HP-IB> enable HP-IB#

3.Enter configure to enter the global-configuration mode.

HP-IB# configure HP-IB(config)#

4.Enter the ntp command with the server-one keyword, and the IP address of the NTP server to use as the primary server. For example:.

HP-IB(config)# ntp server-one 10.0.3.110

5.(Optional) Specify backup NTP servers using the same command syntax, except replacing server-one with server-two and server-three.

HP-IB(config)# ntp server-two 10.0.3.111 HP-IB(config)# ntp server-three 10.0.3.112

6.Save your configuration.

HP-IB(config)# exit

HP-IB# copy running-config startup-config

Rebooting the System

The CLI is used to reinitialize the system chassis and interface cards.

106 Administration and Management

Page 106
Image 106
HP UX 11i v2 Networking Software Setting the NTP Servers to Maintain the System Clock, Rebooting the System, CLI Procedure