| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- generate message IDs
/usr/sbin/msgid
Themsgid utility generates message IDs.
A message ID is a numeric identifier that uniquely identifies a message.Although the probability of two distinct messages having the same ID ishigh, this can be greatly reduced with the appropriate priority or facility.leveldesignator (seesyslogd(1M)). Specifically, the message ID is a hash signature onthe message's unexpanded format string, generated bySTRLOG_MAKE_MSGID() as defined in<sys/strlog.h>.
syslogd(1M) is a simple filter that takes strings as input and producesthose same strings, preceded by their message IDs, as output. Every messagelogged bysyslogd(1M) includes the message ID. The message ID is intendedto serve as a small, language-independent identifier.
Example 1 Using the msgid command to generate a message ID
The following example uses themsgid command to generate a message IDfor theecho command.
example#echo hello | msgid205790 hello
Example 2 Using the msgid command to generate a message catalog
The following example uses themsgid command to enumerate all of themessages in the binaryufs, to generate a message catalog.
example#strings /kernel/fs/ufs | msgid137713 free: freeing free frag, dev:0x%lx, blk:%ld, cg:%d, ino:%lu, fs:%s567420 ialloccg: block not in mapfs = %s845546 alloc: %s: file system full...
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |