Sponsored Content
Full Discussion: new NVRAM
Operating Systems Solaris new NVRAM Post 302515961 by fpmurphy on Thursday 21st of April 2011 08:48:38 AM
Old 04-21-2011
It depends on the applications running on the system. If they are third party licensed, they typically have a dependency on the hostid and/or MAC address.
This User Gave Thanks to fpmurphy For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

nvram reset or crack password

Hello guys ,and girls. Im having a very interesting problem. I have a Netra SUN machine and i had it here for quite a while now...i wanted to install it as a new server and todo so i needed to mount a cd rom and to change the boot at the prom level to cdrom. this could work but i forgot the... (5 Replies)
Discussion started by: talroze
5 Replies

2. UNIX for Dummies Questions & Answers

Nvram?

what is its signifance and how do you flush it. i was reading this book that said something about flushing the nvram before un-installing it. how do you do that and also whats the purpose of this nvram when the regular RAM is available (2 Replies)
Discussion started by: TRUEST
2 Replies

3. Solaris

Nvram

I have Ultra1 SUN machine, its NVRAM got damaged. I purchased new NVRAM. now the host id of the new nvram is by default different than the old one.Any way to program it to change the new host id to be the same like the host id of the damaged one? (3 Replies)
Discussion started by: adol3
3 Replies

4. UNIX for Advanced & Expert Users

Hostid "nvram"

Hi; what are the steps to modify the hostid and ethernet address "nvram content" of Sun ultra 5 and Sun ultra 10 machines, simple steps if available would be appreciated Ultra 5 P/N 380-0176-01 ultra 10 P/N 600-3796-02 (2 Replies)
Discussion started by: adol3
2 Replies

5. Solaris

NVRAM change

I have replaced the nvram on my Sun V480 and now the system stops at the "ctrl-d for normal startup, or root password for maintenance" part. The nvram auto-boot=true, but it still stops here. Any help would be appreciated. Thanks. (4 Replies)
Discussion started by: kjbaumann
4 Replies

6. Solaris

Need help with nvram

Hi Gurus, Can somebody explain me actually how a NVRAM works on a sparc server. I am really confused and the same level of confusion with eeprom . (1 Reply)
Discussion started by: rama krishna
1 Replies

7. AIX

Resetting the NVRAM

Does anybody know how to reset the NVRAM on a System p 520 (power 5)? (7 Replies)
Discussion started by: livehho
7 Replies

8. Solaris

Can Missing mpk Code be added via NVRAM

Guys, I'm fighting a real bitch of a problem. I've got 2 Tadpole Bullfrog sun4u laptops. One just lost is NVRAM battery - invalid IDPROM. The idprom is virtually all zeros. Clock ticks, NVRAM appears good...testing with and with battery out. Our damn Tadpole boys removed virtually every method of... (6 Replies)
Discussion started by: forjack842
6 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 sethostid(): Since glibc 2.21: _DEFAULT_SOURCE In glibc 2.19 and 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) Up to and including glibc 2.19: _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. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +------------+---------------+---------------------------+ |Interface | Attribute | Value | +------------+---------------+---------------------------+ |gethostid() | Thread safety | MT-Safe hostid env locale | +------------+---------------+---------------------------+ |sethostid() | Thread safety | MT-Unsafe const:hostid | +------------+---------------+---------------------------+ CONFORMING TO
4.2BSD; these functions were dropped in 4.4BSD. SVr4 includes gethostid() but not sethostid(). POSIX.1-2001 and POSIX.1-2008 specify 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 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 GETHOSTID(3)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy