root/scripts/stat_ntpd @ 96ba0c24
#!/bin/sh
|
|
|
|
# http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm
|
|
|
|
PARAM=${1:-noexistent}
|
|
|
|
ntpq -c rv | perl -ne "print \$1 if m/\b${PARAM}=([-]?\d+\.\d+)/"
|
|
|