108.1 Maintain System Time Flashcards

1
Q

Format for date command.

A

date MonthDayHourMinuteYear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Command to print ntp query info.

A

ntpq -p
* indicates the main server
+ indicates a good time server
- indicates the server is out of range and is ignored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ntpq uses random time servers that change every _ and shows the three _ _ last used.

A

hour

IP addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command to show the network time synchronization status.

A

ntpstat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Command to manually synchronize the system time with an NTP server when the ntp daemon (ntpd) is not running.

A

ntpdate -s [fqdn of ntp server]
Will call function settimeofday() if clock is more than 0.5 seconds off.
Will decline to set the date if ntpd is running.
Must be run as root.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Function which initializes the tzname variable from the TZ environment variable.

A

tzset()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Command to set the hardware clock (BIOS) to the system time.

A

hwclock –systohc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Command to set the hardware clock (BIOS) to UTC.

A

hwclock –utc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Command to set the hardware clock (BIOS) date and time.

A

hwclock –date=[YYYY-MM-DD hh:mm:ss]

hwclock –date=’2 days ago’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Locale environment variable that specifies date and time format for the system.

A

LC_TIME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Path to the conf file where the TZ environment variable is set for the system time zone.

A

/etc/profile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How is UTC different from GMT?

A

UTC includes leap seconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

NTP pool time servers are selected based on which are _ _.

A

geographically closest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

NTP stratum:

A
  • A stratum-1 device receives its time signal from a stratum-0 device.
  • NTP handles up to 16 stratum levels.
  • Multiple stratum are used in large networks to prevent overloading the network with time synchronization requests.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Path to configuration options for the NTP server and the option to help prevent amplification attacks.

A

/etc/ntp.conf

disable monitor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly