A Summary of Commands

logDstPri

After changing the rules file, it is recommended that the rules be checked before they are put into service. The -cflag causes logDstPri to read the rules file and report any rules that are misformatted or not understood. The return value from logDstPri is the number of errors detected.

To see the error complaints and install the rules all at once, specify the -vflag. This causes the verbose complaints to be generated. The -cflag implies the -vflag.

When logDstPri is resetting the values in shared memory, as opposed to creating the shared memory for the first time, it can be requested to delete the old shared memory and create a new segment by specifying the -dflag. Do not use the -dflag on a running system because any process that is already using the old shared memory continues to use it even after it is “deleted.” This means that two different rules files might be in force at the same time. It may be necessary to specify the -dflag if a large number of new messages have been added to the rules file. Currently, logDstPri creates the shared memory 200 entries larger than the highest logging message index found in its rule file. This means that as long and the new rules file does not go beyond 200 entries higher than the current highest entry, everything is okay. The number of extra entries can be altered by specifying the -xoption.

Files

 

${LOGROOT}Default is /usr/spool/log
${LOGROOT}/msgDst.rules

The message priority and destination file

${LOGROOT}/head/*.h

Header files used by the logging system

UCS 1000 R4.2 Administration 585-313-507

Issue 3 April 2000 521