Solved

ypcat hosts strange behaviour

Posted on 1997-11-13
11
385 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sudo logging 5 68
LastLogonTimeStamp Attribute 7 47
Unix/bash: scripted arithmetic 13 83
Python Assistance 7 36
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

743 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

9 Experts available now in Live!

Get 1:1 Help Now