- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- figure out all ntp clinets
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 05:51 AM
05-16-2003 05:51 AM
figure out all ntp clinets
I have a hp-ux NTP server that I'm decommissioning and want to find out all clients that are using it. It's a 10.20 hosts so I believe tcpdump will not work. Other than a network sniffer, is there a way to tell which clients are connecting to my NTP server. I played w/ ntpq for a while but didn't get what I was looking for.
tia,
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 06:00 AM
05-16-2003 06:00 AM
Re: figure out all ntp clinets
run this command on all hosts you have. Those pointing to you are using this server(which you plan to decommission) as ntp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 06:19 AM
05-16-2003 06:19 AM
Re: figure out all ntp clinets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 06:29 AM
05-16-2003 06:29 AM
Re: figure out all ntp clinets
Ideally your clients have specified more than one ntp source to which they listen, so the disappearance of your old server should not precipitate catastrophe for them.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 06:34 AM
05-16-2003 06:34 AM
Re: figure out all ntp clinets
do
ntpq -p $i|grep "your host"
done
Those pointing to your server are using your server as ntp server.
(You need to have list of servers in your environment to further check it)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 06:40 AM
05-16-2003 06:40 AM
Re: figure out all ntp clinets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 07:10 AM
05-16-2003 07:10 AM
Re: figure out all ntp clinets
netstat -an |grep 123
you will get any tcp connections on the server's ntp port 123 at that instant in time. However the ntp faq says:
"For xntp3-5.93e the smallest and largest allowable polling values are 4 (16 seconds) and 14 (4.5 hours) respectively."
so there is no guarantee that you would catch all (or even any of the clients) unless you just happened to get lucky.
IF there is a router in the network and most of your potential clients pass through the router your network admin can probably help you. It is simple on a Cisco router to build a logging access list which permit all traffic but which log traffic which meets a certain requirement.
conf t
logging buff
access-list 100 permit tcp any host "ipaddressof10.20" eq 123 log
access-list 100 permit ip any any
int e0/0 (or whatever interface the 10.20 lives on)
ip access-list 100 out
end
wr me
now wait overnight and
show log
will show any traffic to the 10.20's ntp port which passed through the router.
Actually tcpdump used to work for 10.20. The problem is finding the old version. The faq at http://www.pimpworks.org/hp/hpuxfaq.html
says:
"HP-UX 10.20 and 11.X can use tcpdump/libpcap as found at
ftp://ftp.ee.lbl.gov./ To select the interface to trace, one uses the -i
option and gives the interface name as "/dev/dlpiN" where N is the PPA
of the device. One uses lanscan to find PPAs. On 10.20, the PPA happens
to be the same as the Network Management ID (NMID) and is not the same
as the N in "lanN." On 11.X, the PPA happens to be the same as the Card
Instance number and happens to be the same as the N in "lanN." The
/dev/dlpiN specified to tcpdump/libpcap is not the same as the device
file /dev/dlpiM. What actually happens is tcpdump/libcap opens /dev/dlpi
and bind to PPA N. The /dev/dlpiM device files are for other uses."
This appears to be a quote from our own Rick Jones. Note you will need libpcap installed before you install tcpdump.
Ron