- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nis clients in a domain
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО04-23-2003 06:19 AM
тАО04-23-2003 06:19 AM
nis clients in a domain
Quick 10 points. Whats the easiest way to check the number of and hostnames of clients in a NIS domain ?
Thanks in advance
Ste
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 06:58 AM
тАО04-23-2003 06:58 AM
Re: nis clients in a domain
Isnt it just one of the yp commands maybe ypcat hosts.
Ta
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 06:59 AM
тАО04-23-2003 06:59 AM
Re: nis clients in a domain
# man rpcinfo
and what you can do is run ..
# rpcinfo -b ypbind 1 | more
==> That should list all machines that has ypbind running. Just run it again and pipe it to "wc -l" to get the total. Just keep in mind ypbind is also run on the master and slaves. To get just those you would ..
# rpcinfo -b ypserv 1 | more
or simply ..
# ypcat -k ypservers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:05 AM
тАО04-23-2003 07:05 AM
Re: nis clients in a domain
use ypcat -k ypservers.
Ours is not a NIS setup, but I am sure it's a ypcat command
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:15 AM
тАО04-23-2003 07:15 AM
Re: nis clients in a domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:25 AM
тАО04-23-2003 07:25 AM
Re: nis clients in a domain
will return info for hosts on your local subnet. You would need to repeat this for each subnet that is served by your NIS domain.
Check the output from ypcat -k hosts.byname. Presumably, if you are sharing a hosts file by NIS, it will be updated to include the local client names as well as key servers in your domain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:33 AM
тАО04-23-2003 07:33 AM
Re: nis clients in a domain
Thanks for the replies
ypcat -k ypservers - I had looked at this but it gives me the master and slave
S.K you have given me the number of hosts , thanks
Still not got the names of the hosts in the domain
Ste
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:36 AM
тАО04-23-2003 07:36 AM
Re: nis clients in a domain
from the O'Reilly book:
"NFS and NIS"
#! /usr/bin/ksh
( for host in $(ypcat hosts | awk '{print $2}')
do
ypwhich $host
done ) | grep -v 'not-bound' | sort | uniq -c
#EOF
Output:
Maybe helpful
Regards,
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:37 AM
тАО04-23-2003 07:37 AM
Re: nis clients in a domain
# rpcinfo -b ypbind 1 | more
should give you the IP address in the first column(field) and follow by the hostname in the 2nd column (field).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:38 AM
тАО04-23-2003 07:38 AM
Re: nis clients in a domain
We are using dns for resolution
had checked hosts.byname
Thanks
Ste
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:41 AM
тАО04-23-2003 07:41 AM
Re: nis clients in a domain
ypcat -k ypservers
Only shows you the NIS Database of listed servers.
ypcat hosts
Only shows the NIS map of /etc/hosts from the master server.
rpcinfo will not show you much, because the way NIS works, it is not bound and constantly chatting like winblows. Only when clients need data is there network activity.
So, Im not sure that you can easily do what you want. When I go to a new site, I will usually nmap the whole site, then start telnetting to see how things are configured one at a time.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:46 AM
тАО04-23-2003 07:46 AM
Re: nis clients in a domain
I'm off home now. Will respond tomorrow after man utd have beat madrid 3 - 0 (fingers crossed)
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:55 AM
тАО04-23-2003 07:55 AM
Re: nis clients in a domain
# /sbin/init.d/nis.client stop
and run ..
# rpcinfo -p
the ypbind srvice does not show. Start nis.client again and it appears.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 08:03 AM
тАО04-23-2003 08:03 AM
Re: nis clients in a domain
The main problem with achieving the desired results is the way NIS works. Clients are not on "bound" connections.
Historically, this was done for performance. Lord knows we see how slow windblows is with locking connections, and Novell is not much better (used to be worse).
Regards,
Shannon