Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Difference between Clock and date in F5

Guys,

Can you let me know the exact difference for clock and date in f5. When I check the logs from bash the log time it shows matches to the "date" output. When I check the logs from tmsh the log time matches to "date" output. Is there a way to change the clock timing?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Very confused about what you're asking here - all of those things are taken from the system clock which is controlled by NTP normally or if not then can be set using the date command.

0
Comments on this Answer
Comment made 1 month ago by Raghunaath 58

Hi Pete,

Thanks for your reply.

Actually I am noticing two different time when checking the ltm logs from bash and through tmsh (show sys log ltm).

Output from bash shows the correct timezone whatever is configured and as per NTP timezone(Malaysia)

But output for ltm log when viewed from tmsh shows GMT timezone.

Can you advise if this behaviour is normal.

My output for date, clock and "show sys clock" shows the same data.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

AFAIK, the dates should match whether you are using the tmsh show sys clock command or the date / clock commands from bash

The LTM logs should reflect the time zone too.

Do you have a timezone configured?

tmsh list sys ntp timezone

The output should be something like this

sys ntp {
    timezone US/Eastern
}
0
Comments on this Answer
Comment made 1 month ago by Pete White

Actually I am noticing two different time when checking the ltm logs from bash and through tmsh (show sys log ltm)

I am confused by this - it is the same log entry which is written at the time of sending by syslogd.

Are you sure you are checking on the actual BIG-IP and not checking on a remote syslog server which has a different timezone?

0
Comment made 1 month ago by Bobow 176

Agree with Michael Saleem, the dates should whether you are using the tmsh show sys clock command or the date / clock commands from bash.

Image Text

The BIG-IP system uses the following two clocks to track time:

  1. The hardware clock, which tracks time even when the system is unplugged. It initializes the operating system clock when the system is started.
  2. The operating system clock, which is a software clock used when the system is running that stores time according to the local time zone that you configure when you initially set up the system.

I am suggest to set the operating system and the time zone on the BIG-IP system:

https://support.f5.com/csp/article/K3381

https://support.f5.com/csp/article/K9098

0
Comment made 1 month ago by Raghunaath 58

Hi Pete,

I am checking the log entry for a specific time(as per configured timezone) which shows up the log entry for the same event. In my case this is MYT timezone.

Image Text

0