cancel
Showing results for 
Search instead for 
Did you mean: 

How to retain the missing logs in activity monitor

Abhinay077
Level 3

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

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

in addition that you can look 

http://www.symantec.com/business/support/index?page=content&id=TECH24317 (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

View solution in original post

9 REPLIES 9

Marianne
Level 6
Partner    VIP    Accredited Certified

Please help us to understand what this statement means?

i have started long run 6 days back.. 

mph999
Level 6
Employee Accredited

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

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

in addition that you can look 

http://www.symantec.com/business/support/index?page=content&id=TECH24317 (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

Abhinay077
Level 3

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
Level 6
Employee Accredited

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

Abhinay077
Level 3

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

Marianne
Level 6
Partner    VIP    Accredited Certified

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.

revarooo
Level 6
Employee

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

 

Nicolai
Moderator
Moderator
Partner    VIP   

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.