Showing results for 
Search instead for 
Do you mean 

Logtool

SOLVED
Go to Solution
Highlighted
Advisor

Logtool

Is there a way to print a system logfile or a selected range of it to a disc/spoolfile?
7 REPLIES
Esteemed Contributor Esteemed Contributor

Re: Logtool

Have you tried running LOGTOOL.PUB.SYS? At the prompt type "HELP LIST" and that should show you what you want.

There is also a command file called CONLOG.PUBXL.TELESUP that will also print logfiles out. PRINT the file and at the beginning of it you will see instructions and examples.

Dan
Advisor

Re: Logtool

thanks Dan for the info. Is there a way to print the conlog info to a file?
Esteemed Contributor Esteemed Contributor

Re: Logtool

Kevin,

This is from the PRINT of the file CONLOG.PUBXL.TELESUP:

To list contents of currently active log file to a printer
# :FILE L;DEV=LP
# :CONLOG CUR >*LP
# Output can also be directed to a disk file, if search for
# a specific text is needed:
# :CONLOG 357 >loki357
# Above command creates temporary diskfile LOKI357 with MPE
# default i/o-redirection attributes. The file can hold
# approx. 40 000 to 50 000 loglines depending on the length
# of lines.

Dan
Respected Contributor

Re: Logtool

Yes.

:logtool (or, on old releases: sysdiag / logtool)

list log=###; to = foo

will create a file called foo with the log
listed in it. On older releases, foo will
be in the group diagxl.sys. IIRC, on newer
releases, foo will be in your logon group.

To list a subset of a log (by date/time, or by log entry type), see the help text for
the list command ... inside logtool, do:

help list

and it will show you the syntax.

Stan
Honored Contributor Honored Contributor

Re: Logtool

Hi Kevin,

Within LOGTOOL, use the following commands to retrieve console messages (event type=115) for a specific date/time and send result to a permanent file called PURGEME; this file is built on your logon group:

logtool>st detail

Log File Rec #1 Rec #1 Total
Name Date Time #Records
========== ============ ======== ========
LOG0001 06/28/07 9:52 AM 2
LOG0002 06/28/07 10:09 AM 24
LOG0003 06/28/07 10:18 AM 623
LOG0004 06/28/07 11:37 AM 114

LOGTOOL>list log=3 type=115 date time outfile=purgeme
Reading log file layout formats - Please wait ...
Enter the starting date [03/12/08] ?06/28/07
Enter the ending date [] ?06/28/07
Do you have more dates to enter (Y/N) [N] ?
Enter the starting time [6:41 AM] ?10:30 AM
Enter the ending time [] ?10:45 AM
Do you have more times to enter (Y/N) [N] ?
Processing LOG0003.PUB.SYS ...

Total records checked = 623. Records selected = 29.
LOGTOOL>


Next, you can use your favorite text editor to search for a specific string. Example:

:editor
HP32201A.09.00 EDIT/3000 WED, MAR 12, 2008, 6:44 AM
(C) HEWLETT-PACKARD CO. 1993
/t purgeme
FILE UNNUMBERED
/f"CLEANING" in all
12 (OUTPUT)10:44/24/LDEV # 7 REQUIRES CLEANING, PLEASE USE CLEANING
1 LINES FOUND
/
King is the customer!
Regular Advisor

Re: Logtool

Dan, Stan, Emile,

If I could assign points to this post I would because your answers helped me resolve an issue I was having regarding reading hp3000 log files. Thanks.

10 Virtual Points to each of you.
Respected Contributor

Re: Logtool

Dear NPD user,
thanks for the thought! And, good to hear
that NPD is still using HP 3000s! I remember when NPD was on the fore-front of computer technology, using the giant addressability that MPE/iX supplied (and HP-UX didn't) -- you guys did amazing stuff! Is R.. Jo.... still there?

thanks, Stan (sieler@allegro.com)