Time zone settings, Setting the time zone – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 80

Advertising
background image

48

Network OS NETCONF Operations Guide

53-1003231-02

Time zone settings

4

1. Issue the <clock-set-datetime> action located in the urn:brocade.com:mgmt:brocade-clock

namespace.

2. Under the <clock-set-datetime> node, specify the < clock> node element.

3. Under the <clock> node element, specify the <set> element and provide a value for the

desired date and time in the format CCYY-MM-DDTHH:MM:SS.

The following example sets the local time to 2:15 in the afternoon of May 17, 2012.

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

<action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">

<data>

<clock-set-datetime xmlns="urn:brocade.com:mgmt:brocade-clock">

<clock>

<set>2012-05-17T14:15:00</set>

</clock>

</clock-set-datetime>

</data>

</action>

</rpc>

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

message-id="304">

<ok/>

</rpc-reply>

Time zone settings

You can set the time zone by specifying one of the following regions with a city from that region:
Africa, America, Pacific, Europe, Antarctica, Arctic, Asia, Australia, Atlantic, and Indian. Refer to the
Network OS Administrator’s Guide for a list of accepted time zones for each region.

Setting the time zone

Use the <clock-set-timezone> action to set the time zone for a switch. This action is defied in the
urn:brocade.com:mgmt:brocade-clock namespace. You must use this operation for all switches for
which a time zone must be set. However, you must set the time zone only once on each switch
because the value is written to nonvolatile memory.

NOTE

After upgrading your switch firmware, you may need to reconfigure the time zone information.

To set the time zone, in the <clock-set-timezone>/<clock-zone> node, set the <timezone> element
to the desired time zone.

The following example sets the time zone for Los Angeles, California.

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

<action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">

<data>

<clock-set-timezone xmlns="urn:brocade.com:mgmt:brocade-clock">

<clock>

<timezone>America/Los_Angeles</timezone>

</clock>

</clock-set-timezone>

Advertising