Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: MadeInGermany
Forum: HP-UX 06-20-2018
11,423
Posted By MadeInGermany
Looks like the "ntpq -c rl" changes with every...
Looks like the "ntpq -c rl" changes with every update of the NTP package.
Take the "ntpq -pn" output instead! To be processed like this in the shell script:
offset=$(
ntpq -pn | awk '/^
/...
Forum: HP-UX 05-23-2018
11,423
Posted By MadeInGermany
No, this is monitoring. Once monitoring detects...
No, this is monitoring. Once monitoring detects an offset you must do a root cause analysis why your sync mechanism has failed.
Your sync mechanism:
ensure there is either ntpd running (needs a...
Forum: HP-UX 05-16-2018
11,423
Posted By MadeInGermany
This ntpq is a measurement. If you trust your...
This ntpq is a measurement.
If you trust your NTP setup then you do not need a measurement.

BTW I just have changed my last post, added another check for the case that NTP service does not work...
Forum: HP-UX 05-14-2018
11,423
Posted By MadeInGermany
The following is even simpler, because sed simply...
The following is even simpler, because sed simply strips a leading - and a trailing .xxx.
This would even run in bash or dash.
#!/bin/ksh
PATH=/bin:/usr/bin:/usr/sbin:/sbin
offset=$(
ntpq -c rl...
Forum: HP-UX 05-14-2018
11,423
Posted By MadeInGermany
ntpdate requires root rights. Better is ntpq as...
ntpdate requires root rights.
Better is ntpq as hicksd8 wants to propose (but got mispelled).
The following ksh script does it
#!/bin/ksh
PATH=/bin:/usr/bin:/usr/sbin:/sbin
offset=$(
ntpq -c rl...
Showing results 1 to 5 of 5

 

Featured Tech Videos

All times are GMT -4. The time now is 06:28 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy