svcadm(1M)을 검색하려면 섹션에서 1M 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
msgid(8)
System Administration Commands msgid(8)
NAME
msgid - generate message IDs
SYNOPSIS
/usr/sbin/msgid
DESCRIPTION
The msgid utility generates message IDs.
A message ID is a numeric identifier that uniquely identifies a mes‐
sage. Although the probability of two distinct messages having the same
ID is high, this can be greatly reduced with the appropriate priority
or facility.level designator (see syslogd(8)). Specifically, the mes‐
sage ID is a hash signature on the message's unexpanded format string,
generated by STRLOG_MAKE_MSGID() as defined in <sys/strlog.h>.
msgid is a simple filter that takes strings as input and produces those
same strings, preceded by their message IDs, as output. Every message
logged by syslogd(8) includes the message ID. The message ID is
intended to serve as a small, language-independent identifier.
EXAMPLES
Example 1 Using the msgid command to generate a message ID
The following example uses the msgid command to generate a message ID
for the echo command.
example# echo hello | msgid
205790 hello
example#
Example 2 Using the msgid command to Generate a Message Catalog
The following example uses the msgid command to enumerate all of the
messages in the binary zfs, on an x86 machine, to generate a message
catalog.
example# strings /kernel/fs/amd64/zfs | msgid
...
726970 stride_hits
766819 stride_misses
929857 reclaim_successes
412490 reclaim_failures
234331 streams_resets
737841 streams_noresets
471619 bogus_streams
878613 onloan_read_buf
...
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/core-os
SEE ALSO
log(4D), attributes(7), syslogd(8)
Oracle Solaris 11.4 8 Sep 2020 msgid(8)