Log Central provides a number of testing and debugging utilities. This appendix describes how to:
Log Central provides a program called To generate test messages, run the The
This command simply generates three random messages:
The following two commands are equivalent; each generates three messages. The subsystem name of the first message is The The To read the current log file, run the The
The following command invokes The following command prints messages to Use the following command to specify your own parameters:
Generating Test Messages
msg_test
to test the flow of messages. You can observe the results of your test messages with the Message Browser of the Log Central Console. The msg_test
utility generates a user-defined number of messages and sends them according to the settings specified in its options. You can also use msg_test
to print performance data.
msg_test
command at a command prompt on the central host or a managed node, with the following syntax:
msg_test [-h] [-i] [-l
length
] [-m log_level
] [-n messages
]
[-s subsystem
[subsystem
]] [-t interval
]msg_test
command options definitions follow.
Examples
msg_test -n 3
LC
, the second is TUXEDO
, and that of the third is LC
(because it is not specified, and thus uses the default).
msg_test -n 3 -s "LC TUXEDO"
msg_test -n 3 -s LC -s TUXEDO
Reading the Current Intermediate Log File
msg_reader
utility continuously reads the current intermediate log file that the msg_receiver
process constructs, and writes the contents of this file to the standard output stream. The data appears in stdout
in message format (that is, in a string containing header data and body text).
msg_receiver
process creates a new intermediate log file every hour. The msg_reader
process automatically switches to reading the current log file, which the msg_server
process updates hourly. It tracks the current log file, and automatically switches to a new log file whenever the msg_server
closes an old log file and opens a new one. The msg_reader
process displays the contents of the intermediate log file on the standard output, allowing you to monitor the file without going through the Console.
msg_reader
command at a command prompt on the central host, with the following syntax:
msg_reader [ -e ] [ -n ] [ -h ]
pathname
msg_reader
command options definitions follow.
Examples
msg_reader
with formatting options and opens the file named /tmp/log1
for reading:
msg_reader -n /tmp/log1 &
stdout
with formatting:
msg_reader -n pathname &
msg_reader [-e] [-n] pathname &