Search code examples
solarisuuid

How to generate uuid in solaris 11?


How to generate UUID in solaris 11?

In Solaris 10 i was using makeuuid command to generate.

I can not find it in solaris 11 while it exist as per oracle documents https://docs.oracle.com/cd/E23824_01/html/821-1462/makeuuid-1m.html

but I can't find it, also I can not find the container package.


Solution

  • You can also use the very small Python program below. Would this help?

    $ cat bin/uuidgen.py
    #!/usr/bin/python
    import uuid
    print(uuid.uuid4())
    $ uuidgen.py
    c4f248e9-c398-4054-9208-6badd366f857