- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why it prompt duplicated alias when ypcat?
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
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
11-25-2002 12:52 AM
11-25-2002 12:52 AM
I have record
135.252.abc.def hostaa
in my NIS databas, but when I do a ypcat on one NIS client, it prompted:
hostser: ypcat hosts|grep hostaa
135.252.abc.def hostaa
135.252.abc.def hostaa
Why?
Thanks a lot!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 01:04 AM
11-25-2002 01:04 AM
Re: Why it prompt duplicated alias when ypcat?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 01:49 AM
11-25-2002 01:49 AM
Re: Why it prompt duplicated alias when ypcat?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 01:52 AM
11-25-2002 01:52 AM
Re: Why it prompt duplicated alias when ypcat?
touch /etc/hosts
ypmake hosts
so it pushes the map out again then see if that fixes it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 02:07 AM
11-25-2002 02:07 AM
Solutionhostaa has some aliases defined in /etc/hosts.
eg:-
135.xxx.xxx.xxx hostaa myhost host1
you might have created the NIS database with the above hosts file. Remove the hosts aliases
of hostaa and rebuild hosts map.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 05:16 PM
11-25-2002 05:16 PM
Re: Why it prompt duplicated alias when ypcat?
You are absolutely right. I gave a try and the result is:
For the hosts who have five aliase, the result is file duplicated lines like:
# ypcat hosts|grep hostcc
135.252.hde.wer hostcc loghost mailhost dns elsename
135.252.hde.wer hostcc loghost mailhost dns elsename
135.252.hde.wer hostcc loghost mailhost dns elsename
135.252.hde.wer hostcc loghost mailhost dns elsename
135.252.hde.wer hostcc loghost mailhost dns elsename
For the hosts who have two alias,the result contain two duplicated lines:
# ypcat hosts|grep hostaa
135.252.abc.def hostaa movei
135.252.abc.def hostaa movei
What the root cause?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 10:16 PM
11-25-2002 10:16 PM
Re: Why it prompt duplicated alias when ypcat?
This is the normal behaviour of NIS when hostname in /etc/hosts contains aliases.
If you don't want aliases remove it from /etc/hosts file and rebuild NIS hosts map.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 10:24 PM
11-25-2002 10:24 PM
Re: Why it prompt duplicated alias when ypcat?
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 12:04 AM
11-26-2002 12:04 AM
Re: Why it prompt duplicated alias when ypcat?
I think this is a known issue with solaris
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 06:18 PM
11-26-2002 06:18 PM
Re: Why it prompt duplicated alias when ypcat?
How to resolve it?
Thanks a lot!