HP R4.2 Manual de usuario Pagina 562

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 745
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 561
A Summary of Commands logEvent/logMsg
UCS 1000 R4.2 Administration 585-313-507 Issue 3 April 2000 523
generates messages within the logging system, but which always uses
SYSMSG as the message format for the messages it generates. The
logEvent command emulates the logEvent( ) library routine, while the
logMsg command emulates the logMsg( ) library routine.
The logEvent command requires a destination and a priority when it is
called. Messages logged via this interface are explicitly logged to the
specified destinations and at the specific priority.
The logMsg command does not take a destination mask or a priority. It gets
these pieces of information from the logging destination and a priority shared
memory maintained by the logDstPri command via the
/usr/spool/log/msgDst.rules file.
Both logEvent and logMsg require that the proper number of arguments be
supplied for the specified message and that numeric arguments in the
message format match pure numbers from the argument list. For example:
GEN012 OUT_OF_RANGE %D<<value,D>> is out of range \ for
%s<<arg,S>> in %s<<routine,S>>.
This format requires that the first argument be a number, therefore,
logMsg XXX LG_OUT_OF_RANGE -- yes var compute
will fail because yes is not a number, while
logMsg XXX LG_OUT_OF RANGE -- 10 var compute
will not fail.
Vista de pagina 561
1 2 ... 557 558 559 560 561 562 563 564 565 566 567 ... 744 745

Comentarios a estos manuales

Sin comentarios