Brocade Network OS NETCONF Operations Guide v4.1.1 Manual de usuario Pagina 83

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 622
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 82
Network OS NETCONF Operations Guide 51
53-1003231-02
Network Time Protocol
4
Retrieving an NTP server IP address
Use the <show-ntp> 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 <rbridge-id> element.
NOTE
Specifying “all” in the <rbridge-id> element returns only local information.
The response includes either an <ip> element containing the IPv4 or IPv6 address, or a Boolean
<LOCL> element, with its value set to “true”.
<rpc message-id="303" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<show-ntp xmlns="urn:brocade.com:mgmt:brocade-ntp">
<rbridge-id>66</rbridge-id>
</show-ntp>
</rpc>
rpc-reply message-id="303" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<node-active-server xmlns="urn:brocade.com:mgmt:brocade-ntp">
<rbridge-id-out>66</rbridge-id-out>
<LOCL>true</LOCL>
</node-active-server>
</rpc-reply>
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 <edit-config> RPC to configure the <ntp>/<server> node in the
urn:brocade.com:mgmt:brocade-ntp namespace.
2. In the <server> tag, include the delete operation.
3. Under the <server> node element, specify an <ip> element and include the IPv4 or IPv6
address of the server you want to remove.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="302" 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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete">
<ip>192.168.10.1</ip>
</server>
</ntp>
</config>
</edit-config>
Vista de pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 621 622

Comentarios a estos manuales

Sin comentarios