This is a discussion on domainname returns exit code 9 within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi! On one of my machines, I've got the problem, that domainname returns an exit code of 9: root@dph03:# ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi! On one of my machines, I've got the problem, that domainname returns an exit code of 9: root@dph03:# /usr/bin/domainname ; echo exit code $? domainname.com.example exit code 9 Instead of "domainname.com.example" the domainname as set in /etc/defaultdomain and with domainname `cat /etc/defaultdomain` is returned. Because this exit code is not == 0, I get the following error when running ypinit: root@dph03:# ypinit -c Can't get local host's domain name. Please check your path. root@dph03:# uname -a SunOS dph03 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-60 I found a message on the SunHELP mailing list, saying that the check for the exitcode in ypinit should be removed, but that can't be the proper solution, can it? http://lists.sunhelp.org/pipermail/s...er/014359.html Same has been suggested at http://groups.google.de/groups?hl=de...L%40bath.ac.uk I also double checked nsswitch.conf for errors - I compared it to one on a working Solaris 8 box, and there are no differences. Any ideas? Alexander Skwar -- If the very old will remember, the very young will listen. -- Chief Dan George ------------------------------------------------------------------------- |
| |||
| Alexander Skwar <from@alexander.skwar.name> writes: >root@dph03:# uname -a >SunOS dph03 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-60 >I found a message on the SunHELP mailing list, saying >that the check for the exitcode in ypinit should be removed, >but that can't be the proper solution, can it? It is, actually. >http://lists.sunhelp.org/pipermail/s...er/014359.html >Same has been suggested at http://groups.google.de/groups?hl=de...L%40bath.ac.uk >I also double checked nsswitch.conf for errors - I compared >it to one on a working Solaris 8 box, and there are no >differences. Install a patch: 112138-01: SunOS 5.8:: usr/bin/domainname patch |
| ||||
| In comp.unix.solaris Alexander Skwar <from@alexander.skwar.name> wrote: > Hi! > On one of my machines, I've got the problem, that domainname > returns an exit code of 9: > root@dph03:# /usr/bin/domainname ; echo exit code $? > domainname.com.example > exit code 9 Sounds like an old bug, long ago patched to me. http://www.sunmanagers.org/pipermail...er/000396.html -- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > |