Network time protocol – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 82

Advertising
background image

50

Network OS NETCONF Operations Guide

53-1003231-02

Network Time Protocol

4

Network Time Protocol

Network Time Protocol (NTP) maintains uniform time across all switches in a network. Network OS
supports the configuration of an external time server to maintain synchronization between all local
clocks in a network.

To keep the time in your network current, it is recommended that each switch have its time
synchronized with at least one external NTP server. External NTP servers should be synchronized
among themselves in order to maintain fabric-wide time synchronization.

All switches in the fabric maintain the current clock server value in nonvolatile memory. By default,
this value is the local clock server of the switch.

NOTE

Network Time Protocol (NTP) must be configured on each individual switch. Network time
synchronization is guaranteed only when a common external time server is used by all switches.

You can provide up to five NTP server addresses in IPv4 or IPv6 format in one NETCONF operation.
When multiple NTP server addresses are passed, the first obtainable address is set as the active
NTP server. If no reachable time server exists, then the local switch time is the default time.

Synchronizing the local time with an external source

Use this operation to add an NTP server IP address to a list of server IP addresses. At least one IP
address in the list must be a reachable, configured NTP server or the request will fail.

To add an NTP server IP address to the list of server IP addresses, issue the <edit-config> RPC to
configure the <ntp>/<server> node in the urn:brocade.com:mgmt:brocade-ntp namespace. Under
the <server> node, set the value of the <ip> element to the IPv4 or IPv6 address, as shown in the
following example.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="301" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<ntp xmlns="urn:brocade.com:mgmt:brocade-ntp" >

<server>

<ip>192.168.10.1</ip>

</server>

</ntp>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="301" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising