Sponsored Content
Operating Systems Solaris BIOS Serial Number on Sun Fire V240 Post 302312838 by TonyFullerMalv on Sunday 3rd of May 2009 06:24:47 PM
Old 05-03-2009
A Sparc based machine has a unique "hostid" number based on the network MAC address, the hostid can be obtained by typing hostid and is what is used by licensing software like Flexlm.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Help: Sun Disk partitioning for Sun V240 & StorEdge 3300

Dear Sun gurus, I have Sun Fire V240 server with its StorEdge 3300 disk-array. Following are its disks appeared in format command. I have prepared its partitions thru format and metainit & metattach (may be i have made wrong steps, causing the errors below because I have done thru some document... (1 Reply)
Discussion started by: shafeeq
1 Replies

2. Solaris

connecting laptop to V240 serial port

Well...I hope I am in the right forum to post this question. Here is what I am trying to do. I have a laptop (Dell I believe) running Windows. I am trying to connect this laptop to a V240 serial port (the port with l0l0l). Here lies the problem, I am not sure if I have the correct cable. I do... (6 Replies)
Discussion started by: bluridge
6 Replies

3. Solaris

Sun 280r serial number

is there a command i can run at the ksh that will give me the serial number on solaris? solaris 8, and 9 280r servers (16 Replies)
Discussion started by: BG_JrAdmin
16 Replies

4. Solaris

Sun Fire 280R Sun Solaris CRT/Monitor requirements

I am new to Sun. I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor? Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies

5. Solaris

Sun Fire V890 - Unable to access RSC or Serial console

Hello Folks, I am having trouble to login to rsc or serial console of V890. The rsc2.2.3 has been configured with required parameters, resetrs and even rebooted. When serial port is connected to laptop, The hyper terminal does not get the console or POSt messages when the server is rebooting... (8 Replies)
Discussion started by: defflepord
8 Replies

6. Solaris

Alom Sun V240

hallo anybody know how to set alom mail alerty server with yahoomail ? thank u?where i can find mail server address for yahoomail?thank (1 Reply)
Discussion started by: yanto85
1 Replies

7. Red Hat

CLI for serial number or tag for BIOS

what file or command can be used to get information that can represent unique ID for BIOS installed, it could be serial number or some tag. I used "/usr/sbin/dmidecode | egrep -i 'BIOS Information' -A 20" command, it shows some information about BIOS but not some information that can be used as... (4 Replies)
Discussion started by: epriya2003
4 Replies

8. Hardware

Sun fire 4270 reset BIOS settings after reboot

Hello, I am trying to perform Suse 10 SP3 installation via network in 6 Sun Fire 4270 M2 servers. The problem is that even if i set first prio boot device the hard disk the system always try to boot from network.And after the first restart the BIOS setting has been lost(and PXE come first... (2 Replies)
Discussion started by: @dagio
2 Replies

9. Solaris

Sun Fire V240 server Fan replacement

I have a sun fire v240 server. The output of prtdiag -v shows a failed fan. There are 3 fans for cooling system board. There is 1 fan for each of the powersupply (There are 2 powersupplies) From the below output how do i know which fan is bad and whats its location... (3 Replies)
Discussion started by: Tirmazi
3 Replies
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.44 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)
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy