|
|
uuidgen(1)
Name
uuidgen - generate a Universal Unique Identifier (UUID)
Synopsis
uuidgen [-o filename] [{-i | -n number}] [-v] [-h] [-?]
Description
uuidgen, by default, generates a Universal Unique Identifier (UUID) on the standard output.The UUID is used to uniquely identifier an IDL interface definition. The format for a UUID string consists of eight hexadecimal digits followed by a dash, followed by three groups of four hexadecimal digits separated by dashes, followed by a dash and twelve hexadecimal digits. (For samples of this format, see "Examples.")
The following uuidgen(1) options are supported.
Network Address
The generation of the UUID requires the availability of a 48-bit IEEE 802 address. Because this type of address is not available in all environments and the method of determination is not portable, several methods are available for use with the BEA Tuxedo system version of uuidgen.
num.num.num.num
it is assumed to be an Internet-style address and converted accordingly.
0xnnnnnnnnnnnnnnnn
it is assumed to be a hexadecimal network address, as used in Workstation.
Note that in each of these cases, a 32-bit address is formed and the remainder of the address (for 48-bits) is treated as 00.00.
Diagnostics
uuidgen exits with a non-zero exit code if an invalid command-line option is specified, or if it cannot open the output file. A warning is printed if an invalid network address value is given and the value 00.00.00.00 is used.
Examples
To generate a UUID string, enter the following command.
uuidgen
23C67E00-71B6-11C9-9DFC-08002B0ECEF1
To generate an IDL template for developing an interface definition, enter the following command.
uuidgen -i
[uuid(B5F8DB80-3CCA-14F8-1E78-930269370000)]
interface INTERFACE
{
}
To generate two UUID strings, enter the following command.
uuidgen -n 2
C0B37080-3CCA-14F8-265F-930269370000
C0B37081-3CCA-14F8-2CDB-930269370000
See Also
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|