You’ve just deployed the DCNM appliance and you notice that the reports are displayed in the PDT timezone format. How do you change this into your own timezone?
For this you can log on to the command line of the appliance using SSH.
Check if DNS is working by performing a ping to your favorite NTP server.
To edit your timezone settings use your favorite editor (like “vi”).
vi /etc/ntp.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
If you want to use your own NTP server, put a hashtag in front of the 4 example servers in the config file and put your own NTP server in.
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
ntp.mycompany.com iburst
The “iburst” parameter will try 8 times to collect new time info if necessary, instead of the default, which is only once per interval.
To change the timezone, remove the /etc/localtime file and create a new symbolic link to the file you need.
rm /etc/localtime
The list of location files can be found here:
/usr/share/zoneinfo
for example “Europe/Amsterdam” would be the file /usr/share/zoneinfo/Europe/Amsterdam. You can simply list the available locations by listing the available files in these folders.
ln -s /usr/share/zoneinfo/Europe/Amsterdam localtime
Now restart the NTP daemon:
service ntpd restart
And check the current date and time:
root@dcnm01 etc]# date
Tue Jun 19 13:22:06 CEST 2018
[root@dcnm01 etc]# date
Tue Jun 19 13:26:00 CEST 2018
[root@dcnm01 etc]#
Follow me on social media