Retrieving the current local clock and time zone, Removing the time zone setting – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 81

Network OS NETCONF Operations Guide
49
53-1003231-02
Time zone settings
4
</data>
</action>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="305">
<ok/>
</rpc-reply>
Retrieving the current local clock and time zone
The <show-clock> RPC in the urn:brocade.com:mgmt:brocade-clock namespace returns the local
time, date, and time zone. The local clock is used unless a switch ID is specified. Specify “all” as
the <rbridge-id> to request local clocks from all switches in the cluster.
The following example returns the clock and time zone information for the switch with routing
bridge ID 66.
<rpc message-id="307" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<show-clock xmlns="urn:brocade.com:mgmt:brocade-clock">
<rbridge-id>66</rbridge-id>
</show-clock>
</rpc>
rpc-reply message-id="307" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<clock-time xmlns="urn:brocade.com:mgmt:brocade-clock">
<rbridge-id-out>66</rbridge-id-out>
<current-time>2012-05-17T12:15:00</current-time>
<timezone>America/Los_Angeles</<timezone>
</clock-time>
</rpc-reply>
Removing the time zone setting
To clear the time zone data, issue the <no>/<clock>/<timezone> action. The <no> node is located
in the urn:brocade.com:mgmt:brocade-common-def namespace. The <clock> node element and
<timezone> leaf element are located in the urn:brocade.com:mgmt:brocade-clock node and added
to the common-def:no node by augmentation.
The following example removes the time zone setting.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="306">
<action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">
<data>
<no xmlns:"urn:brocade.com:mgmt:brocade-common-def">
<clock xmlns="urn:brocade.com:mgmt:brocade-clock">
<timezone/>
</clock>
</show>
</data>
</action>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="306">
<ok/>
</rpc-reply>