man-pages/man1/systemd-id128.1.html
2021-03-31 01:06:50 +01:00

180 lines
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SYSTEMD-ID128</TITLE>
</HEAD><BODY>
<H1>SYSTEMD-ID128</H1>
Section: systemd-id128 (1)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
systemd-id128 - Generate and print sd-128 identifiers
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>systemd-id128</B> [OPTIONS...] new
<DT id="2">
<B>systemd-id128</B> [OPTIONS...] machine-id
<DT id="3">
<B>systemd-id128</B> [OPTIONS...] boot-id
<DT id="4">
<B>systemd-id128</B> [OPTIONS...] invocation-id
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>id128</B>
<DD>may be used to conveniently print
<B><A HREF="/cgi-bin/man/man2html?3+sd-id128">sd-id128</A></B>(3)
UUIDs. What identifier is printed depends on the specific verb.
<P>
With
<B>new</B>, a new random identifier will be generated.
<P>
With
<B>machine-id</B>, the identifier of the current machine will be printed. See
<B><A HREF="/cgi-bin/man/man2html?5+machine-id">machine-id</A></B>(5).
<P>
With
<B>boot-id</B>, the identifier of the current boot will be printed.
<P>
Both
<B>machine-id</B>
and
<B>boot-id</B>
may be combined with the
<B>--app-specific=</B><B></B><I>app-id</I>
switch to generate application-specific IDs. See
<B><A HREF="/cgi-bin/man/man2html?3+sd_id128_get_machine">sd_id128_get_machine</A></B>(3)
for the discussion when this is useful.
<P>
With
<B>invocation-id</B>, the identifier of the current service invocation will be printed. This is available in systemd services. See
<B><A HREF="/cgi-bin/man/man2html?5+systemd.exec">systemd.exec</A></B>(5).
<P>
With
<B>show</B>, 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.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
The following options are understood:
<P>
<B>-p</B>, <B>--pretty</B>
<DL COMPACT><DT id="5"><DD>
Generate output as programming language snippets.
</DL>
<P>
<B>-a </B><B></B><I>app-id</I>, <B>--app-specific=</B><B></B><I>app-id</I>
<DL COMPACT><DT id="6"><DD>
With this option, an identifier that is the result of hashing the application identifier
<I>app-id</I>
and the machine identifier will be printed. The
<I>app-id</I>
argument must be a valid sd-id128 string identifying the application.
</DL>
<P>
<B>-u</B>, <B>--uuid</B>
<DL COMPACT><DT id="7"><DD>
Generate output as an UUID formatted in the &quot;canonical representation&quot;, with five groups of digits separated by hyphens. See the
m[blue]<B>wikipedia</B>m[]<FONT SIZE="-2">[1]</FONT>
for more discussion.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="8"><DD>
Print a short help text and exit.
</DL>
<P>
<B>--version</B>
<DL COMPACT><DT id="9"><DD>
Print a short version string and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXIT STATUS</H2>
<P>
On success, 0 is returned, a non-zero failure code otherwise.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?3+sd-id128">sd-id128</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+sd_id128_get_machine">sd_id128_get_machine</A></B>(3)
<A NAME="lbAH">&nbsp;</A>
<H2>NOTES</H2>
<DL COMPACT>
<DT id="10"> 1.<DD>
wikipedia
<DL COMPACT><DT id="11"><DD>
<A HREF="https://en.wikipedia.org/wiki/Universally_unique_identifier#Format">https://en.wikipedia.org/wiki/Universally_unique_identifier#Format</A>
</DL>
<P>
</DL>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="12"><A HREF="#lbAB">NAME</A><DD>
<DT id="13"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="14"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="15"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="16"><A HREF="#lbAF">EXIT STATUS</A><DD>
<DT id="17"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="18"><A HREF="#lbAH">NOTES</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:28 GMT, March 31, 2021
</BODY>
</HTML>