Please read the man page on trapd
All this is explained there.
When trap.log fills it gets renamed to trapd.log.old and a new trapd.log
created.
You can specify a script to run to automatically rename or archive your
trapd.log.old file with the -r option
You can write your own script or use one that we provide primarily for
RDBMS users: /usr/OV/bin/trapd.log_Maint
If you use the script /usr/OV/bin/trapd.log_Maint with no options as your
script it just renames trapd.log.old to trapd.log.timestamp, where the
timestamp is based on the Julian date.
James Shanks
Level 3 Support
Tivoli NetView for UNIX and NT
Please note that my new id is jshanks@us.ibm.com
"kaveh taghi-zadeh" <kaveh_t@hotmail.com>@tkg.com on 08/28/2001 02:16:38 PM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: nv-l@tkg.com
cc:
Subject: Re: [NV-L] Event log
Hi James,
well ok,
I understand that.
/usr/OV/log/trapd.log contains just the same information in
ASCII format as /usr/OV/log/ovevent.log.
is there a NV mechanism for automatically backing up
trapd.log when its max size of 4096KB is reached?
like writing the contents of trapd.log to trapd.log.bak
or something?
Or is the only way of storing a large number of events
increasing the size of trapd.log?
thanks,
Kaveh.
----Original Message Follows----
From: "James Shanks" <SHANKS@us.tivoli.com>
Reply-To: IBM NetView Discussion <nv-l@tkg.com>
To: IBM NetView Discussion <nv-l@tkg.com>
Subject: Re: [NV-L] Event log
Date: Mon, 27 Aug 2001 22:01:55 -0400
MIME-Version: 1.0
Received: from [198.3.130.68] by hotmail.com (3.2) with ESMTP id
MHotMailBD544C2F009F4004371EC6038244B9970; Mon, 27 Aug 2001 19:25:53 -0700
Received: from localhost (daemon@localhost)by westlake.tkg.com
(8.9.3/8.9.3)
with SMTP id VAA105086;Mon, 27 Aug 2001 21:05:19 -0500
Received: by westlake.tkg.com (bulk_mailer v1.12); Mon, 27 Aug 2001
21:05:00
-0500
Received: (from mjrdomo@localhost)by westlake.tkg.com (8.9.3/8.9.3) id
VAA44496for nv-l-outgoing; Mon, 27 Aug 2001 21:04:59 -0500
>From owner-nv-l@tkg.com Mon, 27 Aug 2001 19:25:59 -0700
Importance: Normal
Message-ID: <OFC935F779.70AEF24B-ON85256AB6.000A4D6B@raleigh.ibm.com>
X-MIMETrack: Serialize by Router on D04NM206/04/M/IBM(Release 5.0.6
|December 14, 2000) at 08/27/2001 10:04:54 PM
Sender: owner-nv-l@tkg.com
Precedence: bulk
You have misunderstanding of how all this works.
There is no point to saving old ovevent logs because there is no good way
to view them.
The Events History display requires that the Event Log daemon (ovelmd), the
Event Sieve daemon (ovesmd), and trapd all be active, and that the file of
events to be viewed be called ovevent.log. And as soon as you rename an
old copy to this name, the log daemon will start storing current events
into that log and rolling the old ones off. Events History is not designed
to let you view more than the last 2048 KB worth of events, and like
Current Events this is constantly changing.
Want to save old events? Either save your trapd.logs or get an RDBMS and
get trapdtosql to store them there.
NetView for UNIX does not give you a way to save them in GUI form.
James Shanks
Level 3 Support
Tivoli NetView for UNIX and NT
"kaveh taghi-zadeh" <kaveh_t@hotmail.com>@tkg.com on 08/27/2001 09:48:25 AM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: nv-l@tkg.com
cc:
Subject: [NV-L] Event log
Hi all,
the max size of
/usr/OV/log/ovevent.log is 2048KB.
As far as I've understood this, when the max size
is reached the content of ovevent.log is
written to ovevent.log.bak and ovevent is cleared.
Is there a max size for ovevent.log.bak, too?
What if I want to store events of, say, the past
2 years? Do I have to manually store ovevent.log.bak
away?
Thanks in advance.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|