Solved

ypcat hosts strange behaviour

Posted on 1997-11-13
11
388 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to backup and restore the DHCP configuration on Solaris 9 7 46
SSH commands for Nas4free 21 423
Problem logging tar errors 11 58
Wrap Oraccle SQL*Plus executable Command 4 84
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
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.

773 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