Video Screencast Help

How to retain the missing logs in activity monitor

Created: 17 Dec 2012 • Updated: 17 Dec 2012 | 9 comments
This issue has been solved. See solution.

Hi,

 

Please let me know how to retain the missing logs in activity monitor..

i have started long run 6 days back.. now i see jobs from 1 to 350 are missing out of 1660 jobs in total.

 

Please do help me

Discussion Filed Under:

Comments 9 CommentsJump to latest comment

Marianne's picture

Please help us to understand what this statement means?

i have started long run 6 days back.. 

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

mph999's picture

I don't know what that means either, but I guess he wants to change the number of dayys (or more accurately hours) the jobs history is kept in activity monitor).

Create a file, eg call settings and put in these lines:

 

KEEP_JOBS_SUCCESSFUL_HOURS = 156
KEEP_JOBS_HOURS = 156
 
Then run
bpsetconfig -h <master> <filename>
 
This will change the number of hours the history is kept in activity monitor.  CAnge the 156 to however many hours you want.
 
Check the settings by running
 
bpgetconfig 

(The commands are in netbackup/bin/admincmd directory)

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Nagalla's picture

in addition that you can look 

http://www.symantec.com/business/support/index?pag... (for windods)

 

from Unix admin guide 7.5 page 926:-

 

About the BPDBJOBS_OPTIONS environment variable
The BPDBJOBS_OPTIONS environment variable provides a convenient method to
set job retention options with a script. The bpdbjobs process determines how long
to retain a job by checking for the BPDBJOBS_OPTIONS environment variable. If
present, BPDBJOBS_OPTIONS overrides the bp.conf settings.
The following options can be used to determine the length of time NetBackup
retains jobs. The options should be entered in lower case in the BPDBJOBS_OPTIONS
environmental variable.
Table 21-7 BPDBJOBS_OPTIONS environment variable options
Option Description
Use with the -clean option to specify how many hours
bpdbjobs keeps unsuccessfully completed jobs. Default: 78
hours.
To keep both successful and both failed jobs longer than the
default of 78 hours, keep_successful_hours must be used
with keep_hours.
-keep_hours hours
Use with the -clean option to specify how many hours
bpdbjobs keeps successfully completed jobs. The number of
hours must be less than or equal to keep_hours.
Values outside the range are ignored. Default: 78 hours.
-keep_successful_hours hours
Use with the -clean option to specify how many days
bpdbjobs keeps completed jobs. Default: 3 days.
-keep_days days
This value must be less than the -keep_days value.
Use with the -clean option to specify how many days
bpdbjobs keeps successfully completed jobs. Default: 3 days.
-keep_successful_days days
A script (cleanjobs) was used in the following example. You can copy the script
directly from this document and changed as needed.
■ The first line specifies how long to keep unsuccessful jobs (24 hours) and
successful jobs (five hours).
■ The second line specifies the path to the bpdbjobs command. Indicate the
correct location of bpdbjobs in the.bat file. In this example, NetBackup was
installed in the default location:
■ setenv BPDBJOBS_OPTIONS "-keep_hours 24 -keep_successful_hours 5 -clean"
/usr/openv/netbackup/bin/admincmd/bpdbjobs ${*}
Monitoring NetBackup activity
About the jobs database
926
You can store the .bat file anywhere, as long as it is run from the appropriate
directory.
bpdbjobs command
SOLUTION
Abhinay077's picture

Thanks for the solution.

 

But i have already started backup jobs without changing the specified change.. So now is there any way to retain the missing logs back to the activity monitor ?

 

 

mph999's picture

No, unfortunately not - once they have been deleted they are gone.

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Abhinay077's picture

Thanks :) Finally i got the solution :) .. But im unhappy for not having a way to retain the logs in activity monitor which are gone :(

revaroo's picture

If you want to retain them, change the settings that mph999 gave.

 

Marianne's picture

You can only retain something that you have - not something that is GONE!

You should still be able to get job info from NBU reports - Job status or All Logs report. The default retention for the error database (where these reports take info from) is 28 days.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Nicolai's picture

The activity monitor is not intended to be a complete log for all backup. It's only intended to see what going on right now and some days back. 

To see what backup you have you would use the report part of the Netbackup GUI.

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.