1msgid(1M) System Administration Commands msgid(1M)
2
3
4
6 msgid - generate message IDs
7
9 /usr/sbin/msgid
10
11
13 The msgid utility generates message IDs.
14
15
16 A message ID is a numeric identifier that uniquely identifies a mes‐
17 sage. Although the probability of two distinct messages having the same
18 ID is high, this can be greatly reduced with the appropriate priority
19 or facility.level designator (see syslogd(1M)). Specifically, the mes‐
20 sage ID is a hash signature on the message's unexpanded format string,
21 generated by STRLOG_MAKE_MSGID() as defined in <sys/strlog.h>.
22
23
24 syslogd(1M) is a simple filter that takes strings as input and produces
25 those same strings, preceded by their message IDs, as output. Every
26 message logged by syslogd(1M) includes the message ID. The message ID
27 is intended to serve as a small, language-independent identifier.
28
30 Example 1 Using the msgid command to generate a message ID
31
32
33 The following example uses the msgid command to generate a message ID
34 for the echo command.
35
36
37 example# echo hello | msgid205790 hello
38
39
40
41 Example 2 Using the msgid command to generate a message catalog
42
43
44 The following example uses the msgid command to enumerate all of the
45 messages in the binary ufs, to generate a message catalog.
46
47
48 example# strings /kernel/fs/ufs | msgid
49
50 137713 free:
51 freeing free frag, dev:0x%lx, blk:%ld, cg:%d, ino:%lu, fs:%s
52 567420 ialloccg: block not in mapfs = %s
53 845546 alloc: %s: file system full
54 ...
55
56
57
59 See attributes(5) for descriptions of the following attributes:
60
61
62
63
64 ┌─────────────────────────────┬─────────────────────────────┐
65 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │Availability │SUNWcsu │
68 └─────────────────────────────┴─────────────────────────────┘
69
71 syslogd(1M), attributes(5), log(7d)
72
73
74
75SunOS 5.11 9 Oct 1998 msgid(1M)