01-18-2004
SMI hardware has a builtin unique hardware id which can
be accessed using hostid(1). I believe that the id is stored
in the NVRAM chip located on the system board.
So, if your script is for Solaris systems only and you wish to
uniquely identify the system this might be the way to go.
- Finnbarr
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic?
< VirtualHost 129.250.242.126>
ServerName www.my_domain.com
ServerAdmin admin@my_domain.com... (4 Replies)
Discussion started by: 98_1LE
4 Replies
2. UNIX for Advanced & Expert Users
I am currently going through the servers in our network and trying to compile a list of the current aliases for each box and any virtual IP addresses. I can check for the ones that are supposed to be there but how do I list the ones that I don't even know exist?
ANY help would be greatly... (1 Reply)
Discussion started by: Scott Pullen
1 Replies
3. Solaris
I have a need to write scripts that can reliably determine the virtual host of a Sun Solaris system. (1 Reply)
Discussion started by: Meridian
1 Replies
4. Solaris
Hi
I have two solaris 10 virtual machines on my Vista laptop.
I want to access both machines using putty in vista. I used DHCP while installing virtual machines. one machine gets the ip address and other does not. What is the problem? can i assign a static ip address if yes how?
... (2 Replies)
Discussion started by: ankurk
2 Replies
5. Red Hat
Hi,
I have set up the following virtual host but it cannot find the URL?
Apache is running fine and I have disabled iptables. Within the document root I have the following file index.html displaying a sample text message.
Any ideas what my problem might be?
httpd.conf:
... (2 Replies)
Discussion started by: Duffs22
2 Replies
6. Solaris
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)
Discussion started by: Matt_VB
4 Replies
7. Red Hat
Hi folks,
I recently read about Apache virtual host and was able to configure that as well. I used name based virtual host (lets say http://vhost1.example.com) and it worked just fine. Then I configured another named based virtual host on same apache server (lets say http://vhost2.example.com)... (2 Replies)
Discussion started by: freebird8z
2 Replies
8. Web Development
I am attempting to add virtual hosts to an apache web server, which has this current configuration:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
... (27 Replies)
Discussion started by: Corona688
27 Replies
9. Solaris
uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere.
How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies
10. UNIX for Advanced & Expert Users
Hello,
I am facing a very strange issue while setting a virtual host on apache to setup multiple websites using separate IPs.
Virtual host is setup but when i am browsing the website it display content under /var/www/html and displaying site1 and site2 folder instead of access the content... (2 Replies)
Discussion started by: sunnysthakur
2 Replies
hostid(1) General Commands Manual hostid(1)
NAME
hostid - Sets or displays the identifier of the local host
SYNOPSIS
/usr/sbin/hostid [hostname | hexadecimal_number | internet_address]
DESCRIPTION
The hostid command displays the 32-bit identifier of the host as a hexadecimal number in host standard byte order. The identifier must be
unique across all hosts and is commonly set to the Internet address of the specified host. The superuser can set the host ID by specifying
a hostname, internet_address, or hexadecimal_number argument. The identifier is stored in network standard byte order.
EXAMPLES
To display the identifier of the local host, enter: $ hostid
0xc009c803
The hostid command displays the identifier of the host as a hexadecimal number in host standard byte order. To set the identifier
of the local host to the local Internet address, enter: $ hostid 555.5.55.555
The hostid command converts the Internet address to its hexadecimal equivalent, and then sets the local host to this address.
Note that the sample Internet address in this example, 555.5.55.555, is not a valid Internet address and would cause hostid to
return an error.
SEE ALSO
Commands: hostname(1)
Functions: gethostid(2), sethostid(2)
hostid(1)