1SYSTEMD-ID128(1) systemd-id128 SYSTEMD-ID128(1)
2
3
4
6 systemd-id128 - Generate and print sd-128 identifiers
7
9 systemd-id128 [OPTIONS...] new
10
11 systemd-id128 [OPTIONS...] machine-id
12
13 systemd-id128 [OPTIONS...] boot-id
14
15 systemd-id128 [OPTIONS...] invocation-id
16
18 id128 may be used to conveniently print sd-id128(3) UUIDs. What
19 identifier is printed depends on the specific verb.
20
21 With new, a new random identifier will be generated.
22
23 With machine-id, the identifier of the current machine will be printed.
24 See machine-id(5).
25
26 With boot-id, the identifier of the current boot will be printed.
27
28 Both machine-id and boot-id may be combined with the
29 --app-specific=app-id switch to generate application-specific IDs. See
30 sd_id128_get_machine(3) for the discussion when this is useful.
31
32 With invocation-id, the identifier of the current service invocation
33 will be printed. This is available in systemd services. See
34 systemd.exec(5).
35
36 With show, well-known IDs are printed (for now, only GPT partition type
37 UUIDs), along with brief identifier strings. When no arguments are
38 specified, all known IDs are shown. When arguments are specified, they
39 must be the identifiers or ID values of one or more known IDs, which
40 are then printed. Combine with --uuid to list the IDs in UUID style,
41 i.e. the way GPT partition type UUIDs are usually shown.
42
44 The following options are understood:
45
46 -p, --pretty
47 Generate output as programming language snippets.
48
49 -a app-id, --app-specific=app-id
50 With this option, an identifier that is the result of hashing the
51 application identifier app-id and the machine identifier will be
52 printed. The app-id argument must be a valid sd-id128 string
53 identifying the application.
54
55 -u, --uuid
56 Generate output as an UUID formatted in the "canonical
57 representation", with five groups of digits separated by hyphens.
58 See the wikipedia[1] for more discussion.
59
60 -h, --help
61 Print a short help text and exit.
62
63 --version
64 Print a short version string and exit.
65
67 On success, 0 is returned, a non-zero failure code otherwise.
68
70 systemd(1), sd-id128(3), sd_id128_get_machine(3)
71
73 1. wikipedia
74 https://en.wikipedia.org/wiki/Universally_unique_identifier#Format
75
76
77
78systemd 250 SYSTEMD-ID128(1)