Sponsored Content
Full Discussion: Generate UUID for a host
Top Forums UNIX for Advanced & Expert Users Generate UUID for a host Post 302337401 by GajendraSharma on Friday 24th of July 2009 04:51:19 AM
Old 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

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
uuid_gen(1ncs)															    uuid_gen(1ncs)

Name
       uuid_gen - UUID generating program

Syntax
       /etc/ncs/uuid_gen [ -c ] [ -C ] [ -version ]

Description
       The  program  generates	Universal  Unique Identifiers (UUIDs).	Without options, it generates a character-string representation of a UUID.
       The -c option enables you to generate a template for Network Interface Definition Language (NIDL) files.  The -C option enables you to gen-
       erate source-code representations of UUIDs, suitable for initializing variables of type

Options
       -c	 Generate a template, including a UUID attribute, for an interface definition in the C syntax of NIDL.

       -C	 Generate a C source-code representation of a UUID.

       -version  Display  the  version of the Network Computing Kernel (NCK) that this belongs to but do not generate a UUID.  (NCK is part of the
		 Network Computing System (NCS) on which DECrpc is based.)

Examples
       Generate a character-string representation of a UUID:
       $ /etc/ncs/uuid_gen
       34dc23469000.0d.00.00.7c.5f.00.00.00
       Generate a template for an interface definition in the C syntax of NIDL:
       $ /etc/ncs/uuid_gen -c
       %c
       [
       uuid(34dc239ec000.0d.00.00.7c.5f.00.00.00),
       version(1)
       ]
       interface INTERFACENAME {

       }
       Generate a template for an interface definition in the C syntax of NIDL.  Redirect the output to the file
       $ /etc/ncs/uuid_gen -c >myfile.idl
       Generate a C source-code representation of a UUID:
       $ /etc/ncs/uuid_gen -C
       = { 0x34dc23af,
       0xf000,
       0x0000,
       0x0d,
       {0x00, 0x00, 0x7c, 0x5f, 0x00, 0x00, 0x00} };

See Also
       DECrpc Programming Guide

																    uuid_gen(1ncs)
All times are GMT -4. The time now is 09:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy