Logtool (246 Views)
Reply
Advisor
kevin h_2
Posts: 49
Registered: ‎04-16-2007
Message 1 of 8 (246 Views)
Accepted Solution

Logtool

Is there a way to print a system logfile or a selected range of it to a disc/spoolfile?
Please use plain text.
Esteemed Contributor
Dan Clifford
Posts: 201
Registered: ‎03-25-1998
Message 2 of 8 (246 Views)

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
Please use plain text.
Advisor
kevin h_2
Posts: 49
Registered: ‎04-16-2007
Message 3 of 8 (246 Views)

Re: Logtool

thanks Dan for the info. Is there a way to print the conlog info to a file?
Please use plain text.
Esteemed Contributor
Dan Clifford
Posts: 201
Registered: ‎03-25-1998
Message 4 of 8 (246 Views)

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
Please use plain text.
Respected Contributor
Stan Sieler
Posts: 321
Registered: ‎10-16-1996
Message 5 of 8 (246 Views)

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
Please use plain text.
Honored Contributor
Kwan Fong, Emile
Posts: 1,162
Registered: ‎07-10-2000
Message 6 of 8 (246 Views)

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!
Please use plain text.
Regular Advisor
NPD USER
Posts: 154
Registered: ‎09-02-1996
Message 7 of 8 (246 Views)

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.
Please use plain text.
Respected Contributor
Stan Sieler
Posts: 321
Registered: ‎10-16-1996
Message 8 of 8 (246 Views)

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)
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation