|
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | SEE ALSO | NOTES | COLOPHON |
SYSTEMD-ID128(1) systemd-id128 SYSTEMD-ID128(1)
systemd-id128 - Generate and print sd-128 identifiers
systemd-id128 [OPTIONS...] new
systemd-id128 [OPTIONS...] machine-id
systemd-id128 [OPTIONS...] boot-id
systemd-id128 [OPTIONS...] invocation-id
id128 may be used to conveniently print sd-id128(3) UUIDs. What
identifier is printed depends on the specific verb.
With new, a new random identifier will be generated.
With machine-id, the identifier of the current machine will be
printed. See machine-id(5).
With boot-id, the identifier of the current boot will be printed.
Both machine-id and boot-id may be combined with the
--app-specific=app-id switch to generate application-specific IDs.
See sd_id128_get_machine(3) for the discussion when this is useful.
With invocation-id, the identifier of the current service invocation
will be printed. This is available in systemd services. See
systemd.exec(5).
With show, well-known UUIDs are printed. When no arguments are
specified, all known UUIDs are shown. When arguments are specified,
they must be the names or values of one or more known UUIDs, which
are then printed.
The following options are understood:
-p, --pretty
Generate output as programming language snippets.
-a app-id, --app-specific=app-id
With this option, an identifier that is the result of hashing the
application identifier app-id and the machine identifier will be
printed. The app-id argument must be a valid sd-id128 string
identifying the application.
-u, --uuid
Generate output as an UUID formatted in the "canonical
representation", with five groups of digits separated by hyphens.
See the wikipedia[1] for more discussion.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
On success, 0 is returned, a non-zero failure code otherwise.
systemd(1), sd-id128(3), sd_id128_get_machine(3)
1. wikipedia
https://en.wikipedia.org/wiki/Universally_unique_identifier#Format
This page is part of the systemd (systemd system and service manager)
project. Information about the project can be found at
⟨http://www.freedesktop.org/wiki/Software/systemd⟩. If you have a bug
report for this manual page, see
⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩. This
page was obtained from the project's upstream Git repository
⟨https://github.com/systemd/systemd.git⟩ on 2020-08-13. (At that
time, the date of the most recent commit that was found in the repos‐
itory was 2020-08-11.) If you discover any rendering problems in
this HTML version of the page, or you believe there is a better or
more up-to-date source for the page, or you have corrections or
improvements to the information in this COLOPHON (which is not part
of the original manual page), send a mail to man-pages@man7.org
systemd 246 SYSTEMD-ID128(1)
Pages that refer to this page: sd-id128(3) , sd_id128_const_str(3) , SD_ID128_CONST_STR(3) , sd_id128_equal(3) , sd_id128_format_str(3) , SD_ID128_FORMAT_STR(3) , sd_id128_format_val(3) , SD_ID128_FORMAT_VAL(3) , sd_id128_get_boot(3) , sd_id128_get_boot_app_specific(3) , sd_id128_get_invocation(3) , sd_id128_get_machine(3) , sd_id128_get_machine_app_specific(3) , sd_id128_is_null(3) , sd_id128_make(3) , SD_ID128_MAKE(3) , sd_id128_make_str(3) , SD_ID128_MAKE_STR(3) , sd_id128_null(3) , SD_ID128_NULL(3) , sd_id128_randomize(3) , sd_id128_t(3) , sd_id128_uuid_format_str(3) , SD_ID128_UUID_FORMAT_STR(3) , 30-systemd-environment-d-generator(7) , systemd.directives(7) , systemd.index(7)