Posts Tagged ‘time’

ITM Logs Timestamp Conversion

July 8th, 2009

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; }’

  • Share/Bookmark

Tags: , , , , , , , , , ,
Posted in ITM6.x | Comments (0)

ITM Logs Timestamp Conversion

June 29th, 2009

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; }'
  • Share/Bookmark

Tags: , , , , , , , , , , , , ,
Posted in ITM6.x | Comments (0)

ITM62 T/EC Rulebase Changes

October 2nd, 2008

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 

 

 

 

  • Share/Bookmark

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Posted in Non-Tivoli | Comments (0)

ITM6 Situations as TEC Events

August 27th, 2008

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 »

  • Share/Bookmark

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Posted in ITM, TEC | Comments (0)

  • LinkedIn

    If you want to see my LinkedIn profile, click on this button:

    Jim Sander
  • Save MySQL

JDS Media is Digg proof thanks to caching by WP Super Cache