ITM v6 log files use a hexadecimal timestamp (to save space? who the hell knows), which adds unnecessary effort when the reason you’re looking at the logs is to determine an issue in the first place. In any case… Here’s the script I wrote when I first encountered the nonsense in ITM v6 logs a few years ago:
#!/bin/perl
foreach (<STDIN>) {
if (/^[^\s\d\w]+([\w\d]*)/) {
@t=localtime(hex($1));
$time=sprintf(“%02d:%02d:%02d %02d/%02d/%04d”,
$t[2],$t[1],$t[0],$t[4]+1,$t[3],$t[5]+1900);s/^[^\s\w\d]+[\w\d]*/$time/;}print $_;}
Here’s a one-liner that Venkat.Saranathan at Gulfsoft.com cranked out, rendering my script pretty much obsolete
perl -lane ‘if ($_ =\ /^(.)([\dA-F]+)(\..*)/) { printf “%s%s%s”, $1, scalar(localtime(oct(“0x$2″))),$3; }’
Tags: foreach, hexadecimal, itm, localtime, perl, printf, script, stdin, time, time print, unnecessary effort
Posted in ITM6.x | Comments (0)
ITM v6 log files use a hexadecimal timestamp (to save space? who the hell knows), which adds unnecessary effort when the reason you’re looking at the logs is to determine an issue in the first place. In any case…
Here’s the script I wrote when I first encountered the nonsense in ITM v6 logs a few years ago:
#!/bin/perl
foreach (<STDIN>) {
if (/^[^\s\d\w]+([\w\d]*)/) {
@t=localtime(hex($1));
$time=sprintf("%02d:%02d:%02d %02d/%02d/%04d",
$t[2],$t[1],$t[0],$t[4]+1,$t[3],$t[5]+1900);
s/^[^\s\w\d]+[\w\d]*/$time/;
}
print $_;
}
Here’s a one-liner that Venkat.Saranathan at Gulfsoft.com cranked out, rending my script pretty much obsolete
perl -lane 'if ($_ =\ /^(.)([\dA-F]+)(\..*)/) { printf "%s%s%s", $1, scalar(localtime(oct("0x$2"))),$3; }'
Tags: foreach, gulfbreeze, hexadecimal, itm, localtime, logs, perl, printf, script, stdin, time, time print, timestamp, unnecessary effort
Posted in ITM6.x | Comments (0)
ITM 6.2 FP1 contains several new and changed T/EC class changes, ranging from new classes, new slots, and only ONE new slot (omnux_value replacing kux_value).
**I have not seen an ITM event containing kux_value nor omnux_value, but to be safe, I added the old ‘kux_value’ slot to the kux.baroc file.
TOTAL: 22 baroc files
|
Baroc
|
Difference
|
Desc
|
|
ka4.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
14 new classes
** JDS: Replace with new baroc
|
|
khd.baroc
|
New
|
|
|
kib.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
one new slot: link_table in ITM_Universal_Messages
** JDS: Replace with new baroc
|
|
klz.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes : File pattern, comparison and host availability
several new slot changes : file information file content changed and checksum
** JDS: Replace with new baroc
|
|
knt.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
8 new classes
several slot changes
** JDS: Replaced with new baroc
|
|
koq.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes
** JDS: Replaced with new baroc
|
|
kor.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
11 new classes
several new slots : including table space used/allocated, processes, session details, lock wait time
** JDS: Replaced with new baroc
|
|
koy.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
1 new class : Sybase segment detail
several new slots : lock wait time, engine number and status, number of databases open, logon available
** JDS: Replaced with new baroc
|
|
kp5.baroc
|
New
|
|
|
kph.baroc
|
None
|
|
|
kpk.baroc
|
None
|
|
|
kpv.baroc
|
New
|
|
|
kpx.baroc
|
None
|
|
|
kqr.baroc
|
New
|
|
|
kqv.baroc
|
New
|
|
|
kqx.baroc
|
New
|
|
|
ksy.baroc
|
New
|
|
|
kud.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes
new slots added to existing classes
** JDS: Replace with new baroc
|
|
kul.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
** JDS: Replace with new baroc
|
|
kux.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
kux_value(STRING) changed to omunx_value(STRING)
8 new classes added
** JDS: Modified new kux.baroc to include kux_value slot
|
|
kva.baroc
|
None
|
|
|
om_tec.baroc
|
None
|
|
Tags: baroc, base, class, class changes, databases, ec, file, file pattern, fp1, itm, JDS, kux, New, None, number, Omegamon, omnux, Replace, Replaced, segment, Sentry, session details, slot, slots, STRING, table, table space, time, time engine, universal messages, value
Posted in Non-Tivoli | Comments (0)
Based on http://publib.boulder.ibm.com/infocenter/tivihelp/v24r1/index.jsp?topic=/com.ibm.itm.doc/itm_admin_6284.htm
The following table describes the meaning of the situation event statuses and the setting of the common slots in the generated Tivoli Enterprise Console event.
Read the rest of this entry »
Tags: Ack, Console, ditto, Enterprise, Event, flag, hub, infocenter, integration, itm, jsp, master, meaning, monitoring server, N
None, N, publib boulder, R
Ditto, reset, S
None, server, server hub, server startup, setting, sfo, situation, slots, startup, status, statuses, table, TEC, time, Tivoli, tivoli enterprise, true hub, type, type situation, U
A
None, U
E
None, U
F, U
N
None, U
P
None, X
None
Posted in ITM, TEC | Comments (0)