Hello guys,
currently I'm working on migration services from physical to virtual server (RHEL 6). One form applications is binded to hostid of old server.
I put value of hostid from old server to the /etc/hostid on new server, but output of hostid command is giving nonsenses then.
Can anybody help??
Thanks.
---------- Post updated at 12:50 ---------- Previous update was at 12:37 ----------
Hi, Guys
I have to change the HostID for my SUNFire880 in lab.
Can some body help me? and give the detail procedure?
I don't think the command "mkp" can be used in SUNFire880 system.
So please help!:cool: (2 Replies)
Hello Everybody
I would like to know that I have configure the OS & other application on the SunFire V440 server
1) If suppose no hostid base software install in that v440 server & if some problem comes in the motherboard of that server. If I remove the harddisk ( on which Solaris & other... (4 Replies)
Hi,
In principle I am searching for a Perl equivalent for this sed command:
sed "/TIM_AM_ARGS=/ s/60/1440/" $EDIT_FILE > $TEMP_FILE
cp $TEMP_FILE $EDIT_FILE
I was wondering if it needs to be like this, or that there other, shorter, alternatives:
open (TIMENVFILE, "<$timenvfile") or die... (5 Replies)
Hello everybody,
please , I need an urgent help.
I reinstalled our server Sun X4150. What was changed:
our two disks were changed to raid1 and I installed a never version of Solaris 10 (previously the version from 12/2009 was used, now a version from 03/2010).
what I'm surprised, the... (3 Replies)
Hi,
I've searched the UNIX forum looking for a simple procedure how to change\control my Solaris server hostid.
I did found few threads but all of them either have broken links to all kinds of scripts or not described simply for some UNIX beginers user like me.
Can anyone assist me?
I... (21 Replies)
Dear All,
I am facing a simple problem . I have a x6270 server attached to a M6000 chasis. The server is fresh i:e O/S is not installed in it.
Now the customer is asking for the HostID of that server. I have tried every possible way but i am not able to find the HostID .I went through the... (4 Replies)
Hi,
We have a Sun M5000. I am now trying to boot the second system domain by using the boot disk (a mirrored boot disk actually) of the first domain (if succeed then no OS installation is needed for the second domain). I got the following errors:
SPARC Enterprise M5000 Server, using Domain... (21 Replies)
Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12).
I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
There is no /etc/hostid file.
I know that there is no relationship between with MAC address and hostid. There are a lot of scripts on the net but how can I exactly do in my case. :rolleyes: (4 Replies)
Discussion started by: getrue
4 Replies
LEARN ABOUT REDHAT
sethostid
GETHOSTID(2) Linux Programmer's Manual GETHOSTID(2)NAME
gethostid, sethostid - get or set the unique identifier of the current host
SYNOPSIS
#include <unistd.h>
long gethostid(void);
int sethostid(long hostid);
DESCRIPTION
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 gethostbyname(3), and thus usually never
needs to be set.
The sethostid call is restricted to the superuser.
The hostid argument is stored in the file /etc/hostid.
RETURN VALUE
gethostid returns the 32-bit identifier for the current host as set by sethostid(2).
CONFORMING TO
4.2BSD. These functions were dropped in 4.4BSD. POSIX.1 does not define these functions, but ISO/IEC 9945-1:1990 mentions them in
B.4.4.1. SVr4 includes gethostid but not sethostid.
FILES
/etc/hostid
SEE ALSO hostid(1), gethostbyname(3)Linux 0.99.13 1993-11-29 GETHOSTID(2)