Advertisement

05.16.2008 at 08:52AM PDT, ID: 23408735
[x]
Attachment Details

hostname returning 0

Asked by lkurugan in Unix Operating Systems, Sun Solaris

Tags: sun, solaris, 10, hostname command returning 0

Gurus,

Any idea why a hostname command returns 0? none of the files are changed..

pasting partial output of truss from the end..

brk(0x0003A1B8)                                 = 0
brk(0x0003A3B8)                                 = 0
stat("/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1", 0xFFBFF378) = 0
resolvepath("/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1", "/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 37
open("/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF260000
munmap(0xFF262000, 24576)                       = 0
close(3)                                        = 0
brk(0x0003A5B8)                                 = 0
brk(0x0003A7B8)                                 = 0
getuid()                                        = 0 [0]
getuid()                                        = 0 [0]
getgid()                                        = 0 [0]
getgid()                                        = 0 [0]
open64("/bin/hostname", O_RDONLY)               = 3
close(19)                                       Err#9 EBADF
fcntl(3, F_DUPFD, 0x00000013)                   = 19
close(3)                                        = 0
fcntl(19, F_SETFD, 0x00000001)                  = 0
ioctl(2, TCGETA, 0xFFBFFA44)                    = 0
ioctl(19, TCGETA, 0xFFBFFA44)                   Err#25 ENOTTY
read(19, " # ! / u s r / b i n / s".., 128)     = 128
read(19, " C E   C O D E   O F   A".., 128)     = 128
read(19, " y r i g h t   ( c )   1".., 128)     = 128
read(19, " N = S U N W _ O S T _ O".., 128)     = 128
read(19, " b i n / g e t t e x t  ".., 128)     = 49
schedctl()                                      = 0xFF254000
0
fork1()                                         = 476
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
waitid(P_PID, 476, 0xFFBFF870, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF88C)                 = 0
ioctl(0, TCGETS, 0x00039178)                    = 0
waitid(P_PID, 476, 0xFFBFF870, WEXITED|WTRAPPED) = 0
read(19, 0x00039610, 128)                       = 0
ioctl(19, TCGETA, 0xFFBFF9DC)                   Err#25 ENOTTY
ioctl(19, TCGETA, 0xFFBFFA3C)                   Err#25 ENOTTY
close(19)                                       = 0
_exit(0)
...
0 # hostname
0
0 #

0 # cat /etc/hostname.eri0
tester
0 # cat /etc/nodename
tester
0 # grep tester /etc/hosts

xxx.xx.xx.xxx   tester  
0 #


Start Free Trial
[+][-]05.16.2008 at 09:23AM PDT, ID: 21584133

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 09:25AM PDT, ID: 21584152

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 09:54AM PDT, ID: 21584374

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Unix Operating Systems, Sun Solaris
Tags: sun, solaris, 10, hostname command returning 0
Sign Up Now!
Solution Provided By: sentner
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.11.2008 at 03:15PM PDT, ID: 21764583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 05:39PM PDT, ID: 21765293

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 06:00PM PDT, ID: 21765366

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 12:56AM PDT, ID: 21767002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 06:21AM PDT, ID: 21769120

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 11:11AM PDT, ID: 21772141

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 05:30AM PDT, ID: 21778068

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 09:40AM PDT, ID: 21780584

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 03:52PM PDT, ID: 21783282

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.16.2008 at 09:30PM PDT, ID: 21799587

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628