Sponsored Content
Top Forums UNIX for Beginners Questions & Answers DHCP Issue Possibly due to Hardware Clock? Post 303005101 by mrm5102 on Thursday 12th of October 2017 05:30:22 PM
Old 10-12-2017
Hey Guys, thanks again for the replies. Much appreciated!

All good ideas. I do have the ability to do any of those that you suggested, as I have access to the DHCP server(s) that we run. But, these little mini-PCs are located in each of our branch locations, and their local Router/Switches are running as their DHCP servers, so that would be a lot of editing I would need to do in each location in order to statically assign the IP Address. And occasionally I need them to ship the PC back as it runs off an SDCard and gets all screwy, so I need to re-image the SDCard. When this happens I usually ship them a new one before they ship back the current one, so the MAC Address changes from time to time.

I guess I could modify each CuBox PC to assign its own address statically, that's another good option...

The date/time thing on these little PCs is annoying though. Not only does it have the DHCP thing going on, all the log's timestamps are all screwy inside the log files, as well as their file's modification times. It's like every file was modified 7-8-2014 or whatever the current day's date is. When looking at the boot log file, or messages, etc... You can see at boot it shows "7-8-2014 00:xx" and then during the boot you see NTP start, (*and then the Network services) which corrects the time. Like this below:
Code:
2014-07-08T00:00:12.180148-04:00 CuBox-PC2 ntpd[515]: ntpd 4.2.6p5@1.2349-o Tue Jul 22 08:39:03 UTC 2014 (1)
2014-07-08T00:00:12.186116-04:00 CuBox-PC2 ntpd[516]: proto: precision = 0.666 usec
2014-07-08T00:00:12.192294-04:00 CuBox-PC2 ntpd[516]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
2014-07-08T00:00:12.195052-04:00 CuBox-PC2 ntpd[516]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
2014-07-08T00:00:12.208862-04:00 CuBox-PC2 ntp[487]: Starting network time protocol daemon (NTPD)..done
2014-07-08T00:00:12.219279-04:00 CuBox-PC2 systemd[1]: Started LSB: Network time protocol daemon (ntpd).
2014-07-08T00:00:12.221496-04:00 CuBox-PC2 systemd[1]: Starting System Time Synchronized.
2014-07-08T00:00:12.227680-04:00 CuBox-PC2 ntpd[516]: Listen and drop on 1 v6wildcard :: UDP 123
2014-07-08T00:00:12.231513-04:00 CuBox-PC2 ntpd[516]: Listen normally on 2 lo 127.0.0.1 UDP 123
2014-07-08T00:00:12.239589-04:00 CuBox-PC2 ntpd[516]: Listen normally on 3 lo ::1 UDP 123
2014-07-08T00:00:12.249842-04:00 CuBox-PC2 ntpd[516]: peers refreshed
2014-07-08T00:00:12.252038-04:00 CuBox-PC2 ntpd[516]: Listening on routing socket on fd #20 for interface updates
................
......cut.....
................
2014-07-08T00:00:22.035161-04:00 CuBox-PC2 systemd[1]: Starting Network Manager Script Dispatcher Service...
2014-07-08T00:00:22.122828-04:00 CuBox-PC2 dbus[405]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
2014-07-08T00:00:22.129075-04:00 CuBox-PC2 systemd[1]: Started Network Manager Script Dispatcher Service.
2014-07-08T00:00:24.438413-04:00 CuBox-PC2 ModemManager[410]: <info>  Creating modem with plugin 'Generic' and '1' ports
2017-10-12T12:50:42.697027-04:00 CuBox-PC2 systemd[670]: Time has been changed
2017-10-12T12:50:42.702891-04:00 CuBox-PC2 systemd[640]: Time has been changed
2017-10-12T12:50:42.708762-04:00 CuBox-PC2 systemd[1]: Time has been changed
2017-10-12T12:50:42.959656-04:00 CuBox-PC2 systemd[1]: mgetty.service: main process exited, code=exited, status=20/n/a

I guess it's not really a huge problem, its just gotten very annoying. So maybe trying to get the date to write to a file and then write it back at boot-up (*maybe as soon as the shell starts) would kill a few birds with one stone...

Thanks Again,
Matt
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

hardware (BIOS) clock

Guys could you please tell me which appropriate command is used to set hardware (BIOS) clock so that the system keeps time when it reboots & how it's used. I use Linux Thank you (2 Replies)
Discussion started by: joseph kembo
2 Replies

2. Red Hat

how to reset the hardware clock

Hi all Hi could anyone tell me how i can set the Hardware Clock to the System Time, and set the System Time from the Hardware Clock. i am using RHEL 4.0. Thanks in advance. (1 Reply)
Discussion started by: daya.pandit
1 Replies

3. Red Hat

not able to Send mail due to Security Issue

Hi All, I am trying to send a mail from my application through SMTP in solaris 9 but unable to send a mail.Same code is able to send mail in Windows. As unix has more security,So as per me,it is due to security reason.. So please let me know what I need to do to send a mail properly. what... (5 Replies)
Discussion started by: smartgupta
5 Replies

4. Shell Programming and Scripting

Date increment issue due to day light saving

The date increment worked fine until date reached 25/10, which is DLS change date. /bin/date --date="091025 1 day" +%y%m%d; the output is 091025 Is this a bug or something missing from the code ! (3 Replies)
Discussion started by: rajbravo
3 Replies

5. IP Networking

DHCP config issue?

I searched the forum and found a similar question (https://www.unix.com/ip-networking/119108-dhcpd-related-questions.html), but my config is already utilizing the suggested fix... :( My setup: eth0 connected to Motorola DSL Modem via bridged mode (giving the public IP to the interface), IP... (1 Reply)
Discussion started by: macwunder
1 Replies

6. UNIX for Dummies Questions & Answers

need help in fixing the hangup issue due to nohup command

Hi All, I am very new to unix and to this forum.Suggest me a solution in fixing the below issue. Actually ia m executing java program through script. The command is like java pgm & The above cmd runs the java program continuous as a background thread. This script is executed from a... (1 Reply)
Discussion started by: sahan
1 Replies

7. UNIX for Dummies Questions & Answers

What are the two ways the hardware clock can be configured under Linux?

What are the two ways the hardware clock can be configured under Linux? Thanks (3 Replies)
Discussion started by: lemon_06
3 Replies

8. Red Hat

Due to hardware crash the linux server /sda5 var partation is not able to mount.

Hello Folks, My RHEL 4.3 server got crashed due to hardware crash,system hard disk and motherboard replaced and RAID rebuilt done. while rebooting the server the server is gone into single user mode due to /sda5 var partition not able to mount. Error :- " wrong fs type, bad... (1 Reply)
Discussion started by: kmvinay
1 Replies

9. Linux

Linking issue due to so version number

Hi all, currently I'm facing a issue in linking a .so file. In my build machine, I've libcrypto.so.6 and there is a softlink as libcrypto.so. In my make file I'm trying to link to the lib using -L -lcrypto and it is success and created my test.exe. When I copy this test.exe to other... (4 Replies)
Discussion started by: vijkrr
4 Replies

10. SCO

Unsuccessful install due to unrecognized disk issue

Dear Community! i try to instaled the sco 6 in hp proliant ML350g8 but unsucces, the trouble when i do instaled it undetected hardisk please help me :(:o (7 Replies)
Discussion started by: mnr
7 Replies
NTPD.CONF(5)							File Formats Manual						      NTPD.CONF(5)

NAME
ntpd.conf - Network Time Protocol daemon configuration file DESCRIPTION
This manual page describes the format of the ntpd(8) configuration file. The optional weight keyword permits finer control over the relative importance of time sources (servers or sensor devices). Weights are specified in the range 1 to 10; if no weight is given, the default is 1. A server with a weight of 5, for example, will have five times more influence on time offset calculation than a server with a weight of 1. ntpd.conf has the following format: Empty lines and lines beginning with the `#' character are ignored. Keywords may be specified multiple times within the configuration file. They are as follows: listen on address OpenNTPd has the ability to sync the local clock to remote NTP servers and, if this directive is specified, can act as NTP server itself, redistributing the local clock. Specify a local IP address or a hostname the ntpd(8) daemon should listen on to enable remote clients synchronization. If it appears multiple times, ntpd(8) will listen on each given address. If `*' is given as an address, ntpd(8) will listen on all local addresses. ntpd(8) does not listen on any address by default. For example: listen on * or listen on 127.0.0.1 listen on ::1 sensor device [correction microseconds] [weight weight-value] Specify a timedelta sensor device ntpd(8) should use. The sensor can be specified multiple times: ntpd(8) will use each given sen- sor that actually exists. Non-existent sensors are ignored. If `*' is given as device name, ntpd(8) will use all timedelta sensors it finds. ntpd(8) does not use any timedelta sensor by default. For example: sensor * sensor udcf0 An optional correction in microseconds can be given to compensate for the sensor's offset. The maximum correction is 127 seconds. For example, if a DCF77 receiver is lagging 15ms behind actual time: sensor udcf0 correction 15000 server address [weight weight-value] Specify the IP address or the hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to syn- chronize to all of the servers specified. If a hostname resolves to multiple IPv4 and/or IPv6 addresses, ntpd(8) uses the first address. If it does not get a reply, ntpd(8) retries with the next address and continues to do so until a working address is found. For example: server 10.0.0.2 weight 5 server ntp.example.org weight 1 To provide redundancy, it is good practice to configure multiple servers. In general, best accuracy is obtained by using servers that have a low network latency. servers address [weight weight-value] As with server, specify the IP address or hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to synchronize to all of the servers specified. Should the hostname resolve to multiple IP addresses, ntpd(8) will try to syn- chronize to all of them. For example: servers pool.ntp.org FILES
/etc/openntpd/ntpd.conf default ntpd(8) configuration file SEE ALSO
ntpd(8), sysctl(8) HISTORY
The ntpd.conf file format first appeared in OpenBSD 3.6 . $Mdocdate: October 2 2007 $ NTPD.CONF(5)
All times are GMT -4. The time now is 03:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy