makeuuid - generate Universal Unique Identifiers
makeuuid [-e ether] [-n count] [-R root]
The makeuuid command generates UUIDs (Universal Unique Identifiers) conforming to the OSF DCE specification for UUIDs. The specification states:
"A UUID is an identifier that is unique across both space and time, with respect to the space of all UUIDs. A UUID can be used for multiple purposes, from tagging objects with an extremely short lifetime, to reliably identifying very persistent objects across a network.
"The generation of UUIDs does not require a registration authority for each single identifier. Instead, it requires a unique value over space for each UUID generator. This spatially unique value is [normally] specified as an IEEE 802 address, which is usually already applied to network-connected systems."
The makeuuid command generates one or more UUIDs on the standard output.
The makeuuid command supports the following options:
-e ether
-n count
-R root
Note -
Normally, you run the makeuuid command with root privileges, as the Ethernet address and state files can be easily accessed and updated. If this is not possible, you must use the -R and -e options to specify an alternate root and Ethernet address to use when calculating the UUIDs.
Example 1 Generating Multiple UUIDs
The following command generates 3000 UUIDs:
example# makeuuid -n 3000
Example 2 Invoking Without Root Privileges
If you cannot obtain root privileges, you must specify an alternate Ethernet address and state file location:
example% makeuuid -e 11:22:33:44:55:66 -R /export/root/example2
See the caveat on the use of the -R option in the description of that option, above.
The following exit values are returned:
0
1
-1
/var/sadm/system/uuid_state
See attributes(5) for descriptions of the following attributes:
|
prodreg(1M), intro(3), libwsreg(3LIB), attributes(5)
The formal UUID specification is in the OSF DCE specification, available at www.opengroup.org. As of the date of publication of this man page, a copy of the specification is available at:
http://www.opengroup.org/onlinepubs/9629399/apdxa.htm
Sun has no control over the availability of documents on the www.opengroup.org web site.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |