We help IT Professionals succeed at work.

ypcat hosts strange behaviour

wiseowl
wiseowl asked
on
Medium Priority
496 Views
Last Modified: 2013-12-27
When I run "ypcat hosts" command on a Solaris 2.4 system, all the entries appear as lower case. This only happens on this one system as far as I've seen so far. The Server is an AIX system.
Comment
Watch Question

Are you saying that some of the entries are in the database in UPPER case? Hostnames in Unix are case-insensitive, so why does it matter?

Author

Commented:
It matters because I'm trying to add a network printer and the applications that use this printer have a standard of using upper case. Actually, I've worked around it by dissecting the script we have and manually adding the printer. However, I would still like to know why we are experiencing this. It works fine on other Solaris system that we have, even using the same OS.
This might sound funny, but are you sure you didn't log in
using capital characters?

kind regards,

Jos aka jos@and.nl

Commented:
Are the hosts entered with capital letters in the hosts file
of the NIS server?

Commented:
Are the hosts entered with capital letters in the hosts file
of the NIS server?

Commented:
Are the hosts entered with capital letters in the hosts file
of the NIS server?

Commented:
Are the hosts entered with capital letters in the hosts file
of the NIS server?

Commented:
Are the hosts entered with capital letters in the hosts file
of the NIS server?

Executing "ypcat hosts" on any UNIX system on our site, including
HP-UX, OSF-1, AIX, Solaris, Ultrix, all give output in lower case
because that it is how it is stored in our NIS database. When I
log on to any other machine the case of the hostname is
immaterial. If you wish to retain the uppercase convention, you
could always use "tr" to translate the hostname to uppercase in
your print script.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Helped to fix my problem, though I still don't really know what's causing it.

Author

Commented:
Helped to fix my problem, though I still don't really know what's causing it.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.