Self-Solve Knowledge Search

Minimize Maximize
How to Change the reporting timezone in NA without changing the host operating s...
Title :
How to Change the reporting timezone in NA without changing the host operating system's timezone
Document ID :
KM01582647
Product - Version:
network automation ;
OS :
Linux,Windows
Updated :
Tue Jun 02 20:22:40 GMT 2015
Summary :
Network Automation(NA): How to Change the reporting timezone in NA without changing the host operating system's timezone.
How to Change the reporting timezone in NA without changing the host operating system's timezone?
Solution
By default the TimeZone (TZ) of NA is set by the TZ configured in Java Virtual Machine (JVM). That, by default, is the same as the operating system TZ.

Change the JVM TZ by editing the file:

$<NA_INSTALLDIR>/server/ext/wrapper/conf/jboss_wrapper.conf

Add and modify appropriately (Double check if it doesn't exist already) the following line:

wrapper.java.additional.9=-Duser.timezone=[EST]

or [GMT+2], [UTC], [CST], [MST] or the time desired [GMT+/- (hour offset)].

Note: Pay particular attention to the numbering of additional lines for JVM. Do not replace the wrapper.java.additional.9 if the line already exists. Find the highest wrapper.java.additional.[number] and insert the new line with incrementing the number one greater than the last line number used.

For example: if the last line that exists is wrapper.java.additional.9  then place the next one.

wrapper.java.additional.10=-Duser.timezone=[Any time zone needed]

Then restart the NA services in order for the changes to take effect

/etc/init.d/truecontrol restart