- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS Command/Script help.
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
Forums
Discussions
Discussions
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
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
06-25-2002 11:22 AM
06-25-2002 11:22 AM
NIS Command/Script help.
I am installing a fileset on a hp-ux 11.0 box which would have to go and check the box on which it is installed and then pick out the master and the slave servers from that.(I have one master and 3 slaves) What would be the best way to accomplish this. ypwhich returns tha master name. But how would i extract the master and all the slave names out of a NIS box. Please Help.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:40 AM
06-25-2002 11:40 AM
Re: NIS Command/Script help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:42 AM
06-25-2002 11:42 AM
Re: NIS Command/Script help.
On NIS master or slave (assuming your NIS domain name is "engr")
# cd /var/yp/engr
# makedbm -u ypservers > /tmp/nis-list
Take a look at the file /tmp/nis-list, at the last line it should say ..
YP_MASTER_NAME
and all the other lines before that shows the list of master and slaves. Extract it accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:45 AM
06-25-2002 11:45 AM
Re: NIS Command/Script help.
# ypcat -k ypservers
but I'm not sure how to distinguish which is the master server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:53 AM
06-25-2002 11:53 AM
Re: NIS Command/Script help.
Thanks Clay. But yes, how do i identify the master and the slave from that list. Please advise.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 02:08 PM
06-25-2002 02:08 PM
Re: NIS Command/Script help.
ypcat -k ypservers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 02:09 PM
06-25-2002 02:09 PM
Re: NIS Command/Script help.
ypcat -k ypservers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 02:44 PM
06-25-2002 02:44 PM
Re: NIS Command/Script help.
MASTER=$(ypwhich -m ypservers)
echo "Master NIS Server is ${MASTER}"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 09:15 PM
06-25-2002 09:15 PM
Re: NIS Command/Script help.
# rpcinfo -p
if you get the ypserv running on the server that means the server is a NIS Master server.
you can have a small script to check this on the
# ypcat -k ypserves
result
-Niraj