10.4;uuidgen (UUID Generating Tool), NCK version 2.0, 91/12/13
uuidgen -UUID Generating Tool for NCS version 2.0
usage: /etc/ncs/uuidgen [ -c [ -p ] [ -C ] [ -P ] [ -version ]
DESCRIPTION
The uuidgen command creates a UUID string that you assign to an object to
uniquely identify it. This UUID is in the format used by NCS 2.0. To
generate a UUID in the format used by NCS 1.5.1, use the uuid_gen
command.
One use of UUIDs is in the UUID interface attribute of an IDL interface
definition. The format for representing a UUID string consists of eight
hexadecimal digits followed by a hyphen, followed by three groups of four
hexadecimal digits separated by hyphens, followed by a hyphen and twelve
hexadecimal digits:
01234567-89AB-CDEF-0123-456789ABCDEF
OPTIONS
-i Produces an interface definition language (IDL) file template
and includes the generated UUID string in the template.
-o filename
Redirects the generated UUID string to the file you specify.
-s Generates a UUID string as an initialized C structure.
-t old_style_uuid_string
Translates the old style (NCS Version 1.5.1) UUID string format
to the new style string format.
-v Displays the version number of the UUID generator but does not
generate a UUID.
-h Displays information about the uuidgen command arguments. The
arguments -h and -? can be used interchangeably.
-? Displays information about the uuidgen command arguments. The
arguments -? and -h can be used interchangeably.
-n number_of_uuid_strings
Generates a specified number of UUID strings.
EXAMPLES
1. Generate a UUID string.
$ uuidgen
23C67E00-71B6-11C9-9DFC-08002B0ECEF1
2. Generate a partial template, containing a generated UUID string, to
be used to develop an interface definition.
$ uuidgen -i
[
uuid(828BF780-71B6-11C9-B5A8-08002B0ECEF1),
version(1.0)
]
interface INTERFACENAME
{
}
3. Convert a UUID string from the old style format to the new format.
$ uuidgen -t 34DC23469EAF.AB.A2.01.7C.5F.2C.ED.A3
34DC2346-9EAF-0000-ABA2-017C5F2CEDA3
4. Generate four UUID strings.
$ uuidgen -n 4
612C0B00-71B8-11C9-973A-08002B0ECEF1
612C0B01-71B8-11C9-973A-08002B0ECEF1
612C0B02-71B8-11C9-973A-08002B0ECEF1
612C0B03-71B8-11C9-973A-08002B0ECEF1
SEE ALSO