To: | "'Bursik, Scott {PBSG}'" <Scott.Bursik@pbsg.com>, nv-l@lists.tivoli.com |
---|---|
Subject: | RE: [nv-l] Trapd.log question |
From: | "Davis, Donald" <donald.davis@firstcitizens.com> |
Date: | Thu, 26 Sep 2002 13:35:06 -0400 |
Scott,
I just
checked my 7.1.2 lab machine and it is the Unix Epoch Time, and it is NOT
unique.
It
will be the same number if multiple traps are received the same
second.
Here's
a perl script that I wrote to convert these Epoch values to "human
readable"
Don
Davis
#!/usr/bin/perl
# # unixdate.pl # # # Purpose: Converts a UnixDate string to MMM DD, YYYY HH:MM:SS # # Written by: Don Davis Date: Mar 22, 2001 # use
strict;
use Time::localtime; my $tm
= localtime($ARGV[0]);
my @Month = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); printf("%3s %02d, %04d
%02d:%02d:%02d\n",
$Month[$tm->mon], $tm->mday, $tm->year+1900, $tm->hour, $tm->min, $tm->sec);
------------------------------------------------------------------------------ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | RE: [nv-l] Trapd.log question, Davis, Donald |
---|---|
Next by Date: | RE: [nv-l] Monitored Server down, Bursik, Scott {PBSG} |
Previous by Thread: | RE: [nv-l] Trapd.log question, Davis, Donald |
Next by Thread: | [nv-l] (NV 7.1.2) Bandwidth Utilization Collects, David_Moon |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web