07-24-2009
Generate UUID for a host
Hello Experts,
Is there a way to generate Universally Unique identifiers on all Unix flavours such as Solaris, RHELinux,Suse Linux, MacOS,HP UX etc?
If i can get a system command or a system call or an algorithm/script/program to generate a unique identifier, it will be helpful.
Thanks in advance.
9 More Discussions You Might Find Interesting
1. IP Networking
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
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
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
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
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
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
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
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
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
LEARN ABOUT REDHAT
uuidgen
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 a new universally unique identifier (UUID) using the libuuid(3) library. The new UUID can reasonably be con-
sidered 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 UUID's which uuidgen can generate: time-based UUID's and random-based UUID's. By default uuidgen will generate a
random-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.
RETURN VALUE
The UUID of the form 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in printf(3) format "%08x-%04x-%04x-%04x-%012x") is output to the standard out-
put.
CONFORMING TO
OSF DCE 1.1
AUTHOR
uuidgen was written by Andreas Dilger for libuuid.
AVAILABILITY
uuidgen is part of libuuid from the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.
SEE ALSO
libuuid(3)
E2fsprogs version 1.32 November 2002 UUIDGEN(1)