1819824 Members
3025 Online
109607 Solutions
New Discussion юеВ

Re: ntp version

 
SOLVED
Go to solution
so.nimda
Super Advisor

ntp version

Hi,

I would like to find out the ntp version of a server and I got the following :

#ntpq version
***Can't find host version
ntpq>

Does this mean that ntp is not installed?

Thanks
10 REPLIES 10
Ganesan R
Honored Contributor
Solution

Re: ntp version

Hi,

If you want to know the ntp verion, type version on ntpq> prompt. Should return like this.

#ntpq>verion

@(#)ntpq version=3.5f, PHNE_31822; Thu Aug 12 15:21:21 IST 2004
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: ntp version

Hi again,

>>Does this mean that ntp is not installed?<<

NTP is not a product or bundle to install. It is a daemon which we can either start or stop it.

If it is NTP server, check this command to find ntp daemon is running or not.

#ps -ef |grep -i xntpd

also you can check the configuration file /etc/rc.config.d/netdaemons and look for these entries

NTPDATE_SERVER=
XNTPD=1
export XNTPD_ARGS=

To start and stop ntp

#/sbin/init.d/xntpd start
#/sbin/init.d/xntpd stop
Best wishes,

Ganesh.
Michal Kapalka (mikap)
Honored Contributor

Re: ntp version

Hi,

i receive the same error as you, but the ntpd is working.

server:/#swlist -l fileset |grep -i ntp
# PHNE_31739 1.0 NTP timeservices upgrade plus utilities

mikap.

Hakki Aydin Ucar
Honored Contributor

Re: ntp version

Which flavors of HP UX do you use?
in my environment HP UX 11iv1 I can say does not work; I got two errors:

# ntpq version
***Can't find host version

OR

# ntpq
ntpq> version
See 'what(1)' string value.

BUT READLIST works

ntpq> readlist
status=0674 leap_none, sync_ntp, 7 events, event_peer/strat_chg
system="UNIX/HPUX", leap=00, stratum=12, rootdelay=0.60,
rootdispersion=10.64, peer=26684, refid=netaspnm,
reftime=cd9c285e.48be8000 Fri, Apr 24 2009 15:00:30.284, poll=6,
clock=cd9c2885.7c39c000 Fri, Apr 24 2009 15:01:09.485, phase=-0.396,
freq=-30677.87, error=0.08


Hakki Aydin Ucar
Honored Contributor

Re: ntp version

But ntpversion is working :

ntpq> ntpversion
NTP version being claimed is 3

it is weird.
Viktor Balogh
Honored Contributor

Re: ntp version

Aydin:

# ntpq
ntpq> version
See 'what(1)' string value.

the above means that you should try it with the 'what' command.

# what ntpq



****
Unix operates with beer.
Hakki Aydin Ucar
Honored Contributor

Re: ntp version

Viktor: the above means that you should try it with the 'what' command.
# what ntpq
->>

# ntpq
ntpq> version
See 'what(1)' string value.
ntpq> what ntpq
***Command `what' unknown
ntpq> what version
***Command `what' unknown
ntpq> ntpversion
NTP version being claimed is 3
ntpq> exit
# what ntpq
can't open ntpq (26)

Actually "what" is used for get SCCS identification information.
Viktor Balogh
Honored Contributor

Re: ntp version

if you use fullapth it works ;)

# what /usr/sbin/ntpq
/usr/sbin/ntpq:
ntpq version=3.5f, PHNE_31822; Thu Aug 12 15:21:21 IST 2004
#
****
Unix operates with beer.
Hakki Aydin Ucar
Honored Contributor

Re: ntp version

which flavor of unix do you use ? following is mine:

net2pnm # uname -a
HP-UX net2pnm B.11.11 U 9000/785 2010833916 unlimited-user license

I got this:

net2pnm # what /usr/sbin/ntpq
/usr/sbin/ntpq:
$Revision: vw: cheriv_JAGad35417 selectors: CUPI80_BL2000_1025 'cup_cheriv_jagad35417'
Thu Oct 26 23:32:57 PDT 2000 $

thanks for your information.
Viktor Balogh
Honored Contributor

Re: ntp version

on PA-RISC 11iv1:

# uname -a
HP-UX hpigni1 B.11.11 U 9000/800 1708284819 unlimited-user license
# whereis ntpq
ntpq: /usr/sbin/ntpq /usr/share/man/man1m.Z/ntpq.1m
# what /usr/sbin/ntpq
/usr/sbin/ntpq:
ntpq version=3.5f, PHNE_31822; Thu Aug 12 15:21:21 IST 2004
#

on Itanium 11iv2:

# uname -a
HP-UX hpcras01 B.11.23 U ia64 2092965878 unlimited-user license
# whereis ntpq
ntpq: /usr/sbin/ntpq /usr/share/man/man1m.Z/ntpq.1m
# what /usr/sbin/ntpq
/usr/sbin/ntpq:
$Revision: B11.23.0409LR
#
****
Unix operates with beer.