beautypg.com

Retrieving an ntp server ip address, Removing an ntp server ip address – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 83

background image

Network OS NETCONF Operations Guide

51

53-1003231-02

Network Time Protocol

4

Retrieving an NTP server IP address

Use the custom RPC located in the urn:brocade.com:mgmt:brocade-ntp namespace to
return the IP address of the currently active NTP server. If no server is configured or no server can
be reached, “LOCL” is returned instead (for local switch time). The request is for the local switch
unless a switch ID is specified in the element.

NOTE

Specifying “all” in the element returns only local information.

The response includes either an element containing the IPv4 or IPv6 address, or a Boolean
element, with its value set to “true”.

66

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

66

true

Removing an NTP server IP address

Use this operation to remove an NTP server IP address from a list of server IP addresses. At least
one IP address in the remaining list must be a reachable, configured NTP server or the remove
request fails.

To remove an NTP server IP address from the list of server IP addresses, perform the following
steps.

1. Issue the RPC to configure the / node in the

urn:brocade.com:mgmt:brocade-ntp namespace.

2. In the tag, include the delete operation.

3. Under the node element, specify an element and include the IPv4 or IPv6

address of the server you want to remove.

operation="delete">

192.168.10.1