Solved

ypcat hosts strange behaviour

Posted on 1997-11-13
11
398 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
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.
Suggested Courses

627 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