msgid man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

MSGID(1M)							     MSGID(1M)

       msgid - generate message IDs


       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 pri‐
       ority or facility.level designator (see syslogd(1M)). Specifically, the
       message	ID  is	a  hash	 signature  on the message's unexpanded format
       string, generated by STRLOG_MAKE_MSGID() as defined in <sys/strlog.h>.

       syslogd(1M) 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(1M) includes the message ID. The  message  ID
       is intended to serve as a small, language-independent identifier.

       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 | msgid205790 hello

       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 ufs, to generate a message catalog.

	 example# strings /kernel/fs/ufs | msgid

	 137713 free:
	     freeing free frag, dev:0x%lx, blk:%ld, cg:%d, ino:%lu, fs:%s
	 567420 ialloccg: block not in mapfs = %s
	 845546 alloc: %s: file system full

       syslogd(1M), attributes(5), log(7d)

				  Oct 9, 1998			     MSGID(1M)

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net