Veritas-bu

[Veritas-bu] Activity Monitor

2000-12-28 14:05:37
Subject: [Veritas-bu] Activity Monitor
From: Zufall, Ken KZufall AT officemax DOT com
Date: Thu, 28 Dec 2000 14:05:37 -0500
Ravi's solution will work, but it will affect the retention for all jobs.
However, you can try this-might want to do a bit more scripting to make it
nice and pretty, but this should get you on the right track.

/opt/openv/netbackup/bin/admincmd/bpdbjobs -report > some_file  # output is
same as default settings for job monitor

for job_id in `cat some_file | grep class_name | egrep -vi "active | queued"
| awk '{print $1}`; do  # provides Job_ID for selected class, will exclude
active
                                or queued jobs

        bpdbjobs -delete ${job_id}      #  deletes job from job monitor

done

I don't know of any other way to get the Job_ID than by running the bpdbjobs
-report command, though it might be possible (Job_ID is not stored in image
file).  It's also not necessary to dump the output from bpdbjobs -report to
a text file, but it's might be a good idea for record keeping-deleting a
failed job from the Job Monitor also removes all info about it from the
error database.  Any backup failures that get deleted by a cron job would be
completely invisible to you.

Hope this helps,

Ken Zufall
Technical Analyst
Phone: 216.471.3613
Pager: 440.303.1656
Fax: 216.491.4051

"It's not the most intellectual job, but I do have to know all the letters."
Vanna White



                -----Original Message-----
                From:   Ravi Channavajhala
[mailto:ravi.channavajhala AT csfb DOT com]
                Sent:   Thursday, December 28, 2000 1:35 PM
                To:     Porter, Eric
                Cc:     'John_Wang AT enron DOT net';
Veritas-bu AT mailman.eng.auburn DOT edu
                Subject:        RE: [Veritas-bu] Activity Monitor

                Eric,

                You can manipulate the keep_days in job.conf.  Set it to 1,
                thsi will keep job retentiondays to 1.

                [/usr/openv/netbackup/db/jobs] 9672 #cat job.conf
                keep_days 2
                verbose

                -ravi

                PS:  I'm writing my own utility to actually inquire the job
                database.  I will make it public one it is available.

                On Thu, 28 Dec 2000, Porter, Eric wrote:

                Eric>Thanks,
                Eric>
                Eric>I guess I should clarify.  I would like to do this from
a cron job.  By the
                Eric>time I get in to clean it each day I have 4000+ entries
in the activity
                Eric>monitor.
                Eric>
                Eric>Eric
                Eric>
                Eric>-----Original Message-----
                Eric>From: John_Wang AT enron DOT net [mailto:John_Wang AT 
enron DOT net]
                Eric>Sent: Thursday, December 28, 2000 1:17 PM
                Eric>To: Eric.Porter AT marriott DOT com
                Eric>Cc: Veritas-bu AT mailman.eng.auburn DOT edu
                Eric>Subject: Re: [Veritas-bu] Activity Monitor
                Eric>
                Eric>
                Eric>
                Eric>
                Eric>Hello
                Eric>
                Eric>On the Unix GUI, you can filter by class, apply, select
all, and delete.
                Eric>
                Eric>Regards,
                Eric>John I Wang
                Eric>Sr. Systems Engineer
                Eric>Steverson Information Professionals
                Eric>
                Eric>---
                Eric>Enron Broadband Services
                Eric>3 Allen Center 3AC872e
                Eric>ph (713) 345-6863
                Eric>
                Eric>
                Eric>
                Eric>
                Eric>|--------+------------------------>
                Eric>|        |          Eric.Porter@ma|
                Eric>|        |          rriott.com    |
                Eric>|        |                        |
                Eric>|        |          12/28/00 12:12|
                Eric>|        |          PM            |
                Eric>|        |                        |
                Eric>|--------+------------------------>
                Eric>
>------------------------------------------------------------------------|
                Eric>  |
|
                Eric>  |       To:     Veritas-bu AT mailman.eng.auburn DOT edu
|
                Eric>  |       cc:     (bcc: John Wang/Contractor/Enron
Communications)         |
                Eric>  |       Subject:     [Veritas-bu] Activity Monitor
|
                Eric>
>------------------------------------------------------------------------|
                Eric>
                Eric>
                Eric>
                Eric>Hi,
                Eric>
                Eric>We are using SQL backtrack for our Oracle backups.
Unfortunately it tends
                Eric>to generate a lot of small jobs, and we have hundreds
of databases.  This
                Eric>make the activity monitor very slow, and difficult to
use.
                Eric>
                Eric>Is it possible to selectively delete log files (say by
class).  I would like
                Eric>to clean-up all the jobs for the sql-backtrack class
once a day, while
                Eric>leaving the other logs alone.
                Eric>
                Eric>Thanks
                Eric>
                Eric>Eric
                Eric>
                Eric>_______________________________________________
                Eric>Veritas-bu maillist  -
Veritas-bu AT mailman.eng.auburn DOT edu
        
Eric>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
                Eric>
                Eric>
                Eric>
                Eric>_______________________________________________
                Eric>Veritas-bu maillist  -
Veritas-bu AT mailman.eng.auburn DOT edu
        
Eric>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
                Eric>


                This message is for the named person's use only.  It may
contain 
                confidential, proprietary or legally privileged information.
No 
                confidentiality or privilege is waived or lost by any
mistransmission.
                If you receive this message in error, please immediately
delete it and all
                copies of it from your system, destroy any hard copies of it
and notify the
                sender.  You must not, directly or indirectly, use,
disclose, distribute, 
                print, or copy any part of this message if you are not the
intended 
                recipient. CREDIT SUISSE GROUP and each of its subsidiaries
each reserve
                the right to monitor all e-mail communications through its
networks.  Any
                views expressed in this message are those of the individual
sender, except
                where the message states otherwise and the sender is
authorised to state 
                them to be the views of any such entity.
                Unless otherwise stated, any pricing information given in
this message is 
                indicative only, is subject to change and does not
constitute an offer to 
                deal at any price quoted.
                Any reference to the terms of executed transactions should
be treated as 
                preliminary only and subject to our formal written
confirmation.




                _______________________________________________
                Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
                http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



<Prev in Thread] Current Thread [Next in Thread>