01-28-2013
And ... you've tried a boot -s? You're still not giving us much to go on.
How about the last few lines of console output with the hostname/hostid/MAC/etc removed (depending on how far it's got or what is displayed)?
10 More Discussions You Might Find Interesting
1. Solaris
When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error.
cannot find mis/krtld
boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies
2. AIX
I've got an RS6K B50, and i've installed AIX 5.3, TL5. It installs fine, the only customisations i make to the BOS are to change the locale / keyboard layout to UK, and to choose not to install graphical software.
I have no video card in this box, and i connect via a serial console (null modem... (4 Replies)
Discussion started by: craigp84
4 Replies
3. Solaris
Hi all,
I have a SUN server Sun-Fire-V890 running solaris 9, with a remote system console .
Both the IP adresses of the server and the console are in a private network (address 10.67.xxx).
For some reasons I need to give the access to the server from outside address 194.xxx, but I prefer that... (2 Replies)
Discussion started by: aribault
2 Replies
4. AIX
Hi guys,
Got a tiny bit of a problem on one of our servers here at work. I installed AIX 5.3 on the server and that went fine. Then I upgraded to ML 5300-05-01, but now the system just hangs on boot.
The system starts up and the monitor comes on in few minutes, but a few seconds later when... (6 Replies)
Discussion started by: drchris
6 Replies
5. AIX
To All:
I have this AIX machine (see boot process below). The problem was it hangs at:
The ctrmc Subsystem has been started. Subsystem PID is 11906..
I checked with other forums but their advise were just "strong punches in the air" with no specific explanation.
I really appreciate if... (6 Replies)
Discussion started by: aix_xia
6 Replies
6. Ubuntu
Boot process hangs after reaching the following line:
Adding 5853176k swap on /dev/mapper/mch-swap_1. Priority:-1 extents:1 across:5853176kUsing knoppix 6.2 as LiveCD, and mounting the partitions, I got the following:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s... (0 Replies)
Discussion started by: fzaker
0 Replies
7. AIX
Hi all,
We have a old Power4 server with AIX version 5.3 installed. Upon boot up, it hangs right after the AIX welcome screen. On the diagnostic load progress LED indicator, I saw that it stopped at '0c32' then after awhile the LED would be blank. The screen on the monitor will hang at the black... (15 Replies)
Discussion started by: a_sim
15 Replies
8. Solaris
I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies
9. Solaris
Got a strange problem.
I have 4 Solaris servers all configured the same, Solaris 10 x86 update 10.
When I try to ssh from one Solaris 10 server to another server ssh hangs.
I have an identical server and when I try this everything works fine.
The weird thing is if I am root on the server... (1 Reply)
Discussion started by: ccj4467
1 Replies
10. Solaris
Hi Guys,
I have a SunBlade 1500 which I use to practice at home. Suddenly when I power on the server it just displays the solaris banner and Boot device: disk File and args: Then it stops and says " rebooting with command: boot"
It doesn't boot to the kernel. Is there anyway I can possibly... (5 Replies)
Discussion started by: cjashu
5 Replies
LEARN ABOUT LINUX
gethostid
GETHOSTID(3) Linux Programmer's Manual GETHOSTID(3)
NAME
gethostid, sethostid - get or set the unique identifier of the current host
SYNOPSIS
#include <unistd.h>
long gethostid(void);
int sethostid(long hostid);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
gethostid()
_BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
sethostid():
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
DESCRIPTION
gethostid() and sethostid() respectively get or set a unique 32-bit identifier for the current machine. The 32-bit identifier is intended
to be unique among all Unix systems in existence. This normally resembles the Internet address for the local machine, as returned by geth-
ostbyname(3), and thus usually never needs to be set.
The sethostid() call is restricted to the superuser.
RETURN VALUE
gethostid() returns the 32-bit identifier for the current host as set by sethostid().
On success, sethostid() returns 0; on error, -1 is returned, and errno is set to indicate the error.
ERRORS
sethostid() can fail with the following errors:
EACCES The caller did not have permission to write to the file used to store the host ID.
EPERM The calling process's effective user or group ID is not the same as its corresponding real ID.
CONFORMING TO
4.2BSD; these functions were dropped in 4.4BSD. SVr4 includes gethostid() but not sethostid(). POSIX.1-2001 specifies gethostid() but not
sethostid().
NOTES
In the glibc implementation, the hostid is stored in the file /etc/hostid. (In glibc versions before 2.2, the file /var/adm/hostid was
used.)
In the glibc implementation, if gethostid() cannot open the file containing the host ID, then it obtains the hostname using gethostname(2),
passes that hostname to gethostbyname_r(3) in order to obtain the host's IPv4 address, and returns a value obtained by bit-twiddling the
IPv4 address. (This value may not be unique.)
BUGS
It is impossible to ensure that the identifier is globally unique.
SEE ALSO
hostid(1), gethostbyname(3)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-20 GETHOSTID(3)