Sponsored Content
Full Discussion: Generate UUID for a host
Top Forums UNIX for Advanced & Expert Users Generate UUID for a host Post 302338161 by sysgate on Monday 27th of July 2009 07:01:13 AM
Old 07-27-2009
Your post is incomplete. How will you need to generate / parse / collect / compare those values, what will they serve ? 'hostid' command, for example, is present on both Linux and Solaris, it returns something like : 0x7f0200
You can, however, write your own application to do the host mapping and reporting, but it will still depend on what exactly you need to achieve.
Update : just thought of 'dmidecode' - according to its man pages, it's known to work on multiple OSes.
 

9 More Discussions You Might Find Interesting

1. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies

2. Linux

How to give UUID to a swap partition?

Dear Folks Is there anyway to give a UUID to a swap partition? mkswap on CentOS 5 (util-linux-2.13-0.45.el5_1.1) appears to override this option ;-( # swapoff -a # mkswap -L swap1 /dev/sda3 Setting up swapspace version 1, size = 4293591 kB LABEL=swap1, no uuid And there's no... (3 Replies)
Discussion started by: Santi
3 Replies

3. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

4. UNIX for Dummies Questions & Answers

Transfer large number of files host to host

Hello.... I have two servers, one has an empty / and the other has a subdirectory with a large number (4 gig) with many, many files. I need a way to transfer the files en masse from the server with the large number of files to the one that is essentially blank. I don't have space on the used... (16 Replies)
Discussion started by: blaine.miller
16 Replies

5. Shell Programming and Scripting

Help with UUID replacement in fstab and menu.lst

I am trying to write a small backup application for Linux systems file by file if partitions are created by the user using fdisk. I am facing a problem when I am done with restoring the files. The problem is with UUID mismatch in restored fstab and menu.lst. Using C I could create a partlist.txt... (6 Replies)
Discussion started by: arunj
6 Replies

6. Red Hat

How to generate UUID for 2nd Ethernet card?

Dear all, I have two NIC's on my machine. UUID for the first interface (eth0) was generated by the machine automatically. Now I want to generate UUID for the 2nd interface (eth1) please help me out. Thanks in advance...:) (2 Replies)
Discussion started by: saqlain.bashir
2 Replies

7. Solaris

Need to recover/move diskgroup from failed host to another host

Hi All I am having VxVm on two Solaris hosts. host1 is using disk group dgHR. right now this server went down due to hardware fault. Not I need to import this dgHR into host2 server. Please let me know the procedure for the same. (1 Reply)
Discussion started by: amity
1 Replies

8. Shell Programming and Scripting

Script to unmount and mount by UUID

Hi, Need a bit of help on this one as I am a scripting noob. I have a linux based NAS that mounts USB hard drives in an inconsistent location and to make matters worse, seems to lose the mount for an unknown reason and doesn't remount automatically unless the drive is removed and re-inserted.... (4 Replies)
Discussion started by: gtr33m
4 Replies

9. BSD

Find Partition/Slice UUID

I thought I had figured this out at one point, but I can't remember. Is there a way/command to get the UUIDs of a disk's partitions/slices in FreeBSD? Linux has the blkid command, which doesn't seem to be available. (2 Replies)
Discussion started by: AntumDeluge
2 Replies
UUIDGEN(1)						      General Commands Manual							UUIDGEN(1)

NAME
uuidgen - command-line utility to create a new UUID value SYNOPSIS
uuidgen [-r|-t] DESCRIPTION
The uuidgen program creates (and prints) a new universally unique identifier (UUID) using the libuuid(3) library. The new UUID can reason- ably be considered unique among all UUIDs created on the local system, and among UUIDs created on other systems in the past and in the future. There are two types of UUIDs which uuidgen can generate: time-based UUIDs and random-based UUIDs. By default uuidgen will generate a ran- dom-based UUID if a high-quality random number generator is present. Otherwise, it will chose a time-based UUID. It is possible to force the generation of one of these two UUID types by using the -r or -t options. OPTIONS
-r Generate a random-based UUID. This method creates a UUID consisting mostly of random bits. It requires that the operating system have a high quality random number generator, such as /dev/random. -t Generate a time-based UUID. This method creates a UUID based on the system clock plus the system's ethernet hardware address, if present. CONFORMING TO
OSF DCE 1.1 AUTHOR
uuidgen was written by Andreas Dilger for libuuid. AVAILABILITY
The uuidgen command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. SEE ALSO
libuuid(3) Linux May 2009 UUIDGEN(1)
All times are GMT -4. The time now is 12:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy