systemd-id128systemdsystemd-id1281systemd-id128Generate and print sd-128 identifierssystemd-id128OPTIONSnewsystemd-id128OPTIONSmachine-idsystemd-id128OPTIONSboot-idsystemd-id128OPTIONSinvocation-idDescriptionid128 may be used to conveniently print
sd-id1283
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-id5.
With boot-id, the identifier of the current boot will be
printed.Both machine-id and boot-id may be combined
with the switch to
generate application-specific IDs. See
sd_id128_get_machine3
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.exec5.
OptionsThe following options are understood:Generate output as programming language snippets.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.Generate output as an UUID formatted in the "canonical representation", with five
groups of digits seperated by hyphens. See the
wikipedia
for more discussion.Exit statusOn success, 0 is returned, a non-zero failure code otherwise.See Alsosystemd1,
sd-id1283,
sd_id128_get_machine3