HP Clustered Gateway Device Management Software manual Mxlogger add a log message, Eentity, Llevel

Models: Clustered Gateway Device Management Software

1 95
Download 95 pages 29.82 Kb
Page 21
Image 21

Chapter 1: Matrix Server Commands

16

mxlogger – add a log message

Synopsis

/opt/polyserve/bin/mxlogger -e <entity> -l <level> [-G-L]

<log-text>

/opt/polyserve/bin/mxlogger [-h]

Description

You can use the mxlogger command to add your own messages to the matrix.log file. For example, you may want to add messages about the state of your applications.

The arguments are:

-h

Print a help message.

-eentity

The type of message that you are adding. entity can be USER1, USER2, USER3, USER4, USER5, USER6, USER7, or USER8. You will need to determine how you want to use these entities.

-llevel

The severity of the message. level can be ERROR, WARN, INFO, EVENT, FATAL, STATE, TRACE, or DEBUG.

-GL

-Gspecifies that the message to be added is global; -Lspecifies that it is local. The default is local.

log-text

The text of the message. If log-textcontains special characters or spaces, it must be enclosed in quotation marks.

The following command adds a local message to the matrix.log file:

mxlogger -l info -e User2 “hello, world.”

The message appears like this in the log file:

Server

Level

Date/time

Facility

Entity

Message

192.168.0.1

[Info]

[2001-10-07 14:16:27] User

USER2

hello, world

Copyright © 1999-2006 PolyServe, Inc. All rights reserved.

Page 21
Image 21
HP Clustered Gateway Device Management Software manual Mxlogger add a log message, Eentity, Llevel, Log-text