Solved

ypcat hosts strange behaviour

Posted on 1997-11-13
11
387 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.
0
Comment
Question by:wiseowl
11 Comments
 

Expert Comment

by:richcasto
ID: 2007772
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?
0
 

Author Comment

by:wiseowl
ID: 2007773
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.
0
 
LVL 4

Expert Comment

by:jos010697
ID: 2007774
This might sound funny, but are you sure you didn't log in
using capital characters?

kind regards,

Jos aka jos@and.nl
0
 
LVL 2

Expert Comment

by:df020797
ID: 2007775
Are the hosts entered with capital letters in the hosts file
of the NIS server?

0
 
LVL 2

Expert Comment

by:df020797
ID: 2007776
Are the hosts entered with capital letters in the hosts file
of the NIS server?

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:df020797
ID: 2007777
Are the hosts entered with capital letters in the hosts file
of the NIS server?

0
 
LVL 2

Expert Comment

by:df020797
ID: 2007778
Are the hosts entered with capital letters in the hosts file
of the NIS server?

0
 
LVL 2

Expert Comment

by:df020797
ID: 2007779
Are the hosts entered with capital letters in the hosts file
of the NIS server?

0
 
LVL 3

Accepted Solution

by:
braveheart earned 100 total points
ID: 2007780
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.
0
 

Author Comment

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

0
 

Author Comment

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

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now