Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ypcat hosts strange behaviour

Posted on 1997-11-13
11
Medium Priority
?
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
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 300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses

715 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