1UUID(1)                  Universally Unique Identifier                 UUID(1)
2
3
4

NAME

6       uuid - OSSP Universally Unique Identifier Command-Line Tool
7

VERSION

9       OSSP uuid 1.6.2 (04-Jul-2008)
10

SYNOPSIS

12       uuid [-v version] [-m] [-n count] [-1] [-F format] [-o filename]
13       [namespace name]
14
15       uuid -d [-r] [-o filename] uuid
16

DESCRIPTION

18       OSSP uuid is a ISO-C:1999 application programming interface (API) and
19       corresponding command line interface (CLI) for the generation of DCE
20       1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally Unique
21       Identifier (UUID). It supports DCE 1.1 variant UUIDs of version 1 (time
22       and node based), version 3 (name based, MD5), version 4 (random number
23       based) and version 5 (name based, SHA-1). Additional API bindings are
24       provided for the languages ISO-C++:1998, Perl:5 and PHP:4/5. Optional
25       backward compatibility exists for the ISO-C DCE-1.1 and Perl Data::UUID
26       APIs.
27
28       UUIDs are 128 bit numbers which are intended to have a high likelihood
29       of uniqueness over space and time and are computationally difficult to
30       guess. They are globally unique identifiers which can be locally
31       generated without contacting a global registration authority. UUIDs are
32       intended as unique identifiers for both mass tagging objects with an
33       extremely short lifetime and to reliably identifying very persistent
34       objects across a network.
35
36       This is the command line interface (CLI) of OSSP uuid. For a detailed
37       description of UUIDs see the documentation of the application
38       programming interface (API) in uuid(3).
39

OPTIONS

41       -v version
42          Sets the version of the generated DCE 1.1 variant UUID. Supported
43          are version "1", "3", "4" and "5". The default is "1".
44
45          For version 3 and version 5 UUIDs the additional command line
46          arguments namespace and name have to be given. The namespace is
47          either a UUID in string representation or an identifier for
48          internally pre-defined namespace UUIDs (currently known are
49          "ns:DNS", "ns:URL", "ns:OID", and "ns:X500"). The name is a string
50          of arbitrary length.
51
52       -m Forces the use of a random multi-cast MAC address when generating
53          version 1 UUIDs. By default the real physical MAC address of the
54          system is used.
55
56       -n count
57          Generate count UUIDs instead of just a single one (the default).
58
59       -1 If option -n is used with a count greater than 1, then this option
60          can enforce the reset the UUID context for each generated UUID.
61          This makes no difference for version 3, 4 and 5 UUIDs. But version 1
62          UUIDs are based on the previously generated UUID which is remembered
63          in the UUID context of the API. Option -1 deletes the remembered
64          UUID on each iteration.
65
66       -F format
67          Representation format for importing or exporting an UUID. The
68          following (case insensitive) format identifiers are currently
69          recognized:
70
71          BIN (binary representation)
72              This is the raw 128 bit network byte order binary representation
73              of a UUID. Example is the octet stream 0xF8 0x1D 0x4F 0xAE 0x7D
74              0xEC 0x11 0xD0 0xA7 0x65 0x00 0xA0 0xC9 0x1E 0x6B 0xF6.
75
76          STR (string representation)
77              This is the 36 character hexadecimal ASCII string representation
78              of a UUID. Example is the string
79              "f81d4fae-7dec-11d0-a765-00a0c91e6bf6".
80
81          SIV (single integer value representation)
82              This is the maximum 39 character long single integer value
83              representation of a UUID. Example is the string
84              "329800735698586629295641978511506172918".
85
86       -o filename
87          Write output to filename instead of to stdout.
88
89       -d Decode a given UUID (given as a command line argument or if the
90          command line argument is "-" the UUID is read from stdin) and dump
91          textual information about the UUID.
92

EXAMPLES

94        # generate DCE 1.1 v1 UUID (time and node based)
95        $ uuid -v1
96        01c47915-4777-11d8-bc70-0090272ff725
97
98        # decode and dump DCE 1.1 v1 UUID (time and node based)
99        $ uuid -d 01c47915-4777-11d8-bc70-0090272ff725
100        encode: STR:     01c47915-4777-11d8-bc70-0090272ff725
101                SIV:     2349374037528578887923094374772111141
102        decode: variant: DCE 1.1, ISO/IEC 11578:1996
103                version: 1 (time and node based)
104                content: time:  2004-01-15 16:22:26.376322.1 UTC
105                         clock: 15472 (usually random)
106                         node:  00:90:27:2f:f7:25 (global unicast)
107
108        # generate DCE 1.1 v3 UUID (name based)
109        $ uuid -v3 ns:URL http://www.ossp.org/
110        02d9e6d5-9467-382e-8f9b-9300a64ac3cd
111
112        # decode and dump DCE 1.1 v3 UUID (name based)
113        $ uuid -d 02d9e6d5-9467-382e-8f9b-9300a64ac3cd
114        encode: STR:     02d9e6d5-9467-382e-8f9b-9300a64ac3cd
115                SIV:     3789866285607910888100818383505376205
116        decode: variant: DCE 1.1, ISO/IEC 11578:1996
117                version: 3 (name based, MD5)
118                content: 02:D9:E6:D5:94:67:08:2E:0F:9B:93:00:A6:4A:C3:CD
119                         (not decipherable: MD5 message digest only)
120
121        # generate DCE 1.1 v4 UUID 4 (random data based)
122        $ uuid -v4
123        eb424026-6f54-4ef8-a4d0-bb658a1fc6cf
124
125        # decode and dump DCE 1.1 v4 UUID 4 (random data based)
126        $ uuid -d eb424026-6f54-4ef8-a4d0-bb658a1fc6cf
127        encode: STR:     eb424026-6f54-4ef8-a4d0-bb658a1fc6cf
128                SIV:     312712571721458096795100956955942831823
129        decode: variant: DCE 1.1, ISO/IEC 11578:1996
130                version: 4 (random data based)
131                content: EB:42:40:26:6F:54:0E:F8:24:D0:BB:65:8A:1F:C6:CF
132                         (no semantics: random data only)
133

SEE ALSO

135       uuid(3), OSSP::uuid(3).
136
137
138
13904-Jul-2008                     OSSP uuid 1.6.2                        UUID(1)
Impressum