Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command for schedules

Status
Not open for further replies.

oskhan

Technical User
Sep 26, 2005
23
US
hello all

I am impementing some changes in our policies.

I read a thread few months ago that mentioned a command which could tell what backups will run in a particular window.(for example, 13/6/06 9:00:00 - 15/6/06 9:00:00) Unfortuantely I cannot find that thread, And that command could really help metroubleshoot some scenarios.

could some one please remind, what that command,if any existed, was?

thanks
osk
 
DOCUMENTATION: What is the "nbpemreq" command used for in VERITAS NetBackup (tm) 6.0?
Details:
Manual: NetBackup (tm) 6.0 Commands for UNIX
Page(s): 391
Modification Type: Supplement

Modification:
The NetBackup (tm) 6.0 Commands for UNIX manual mentions the nbpemreq command, but doesn't explain what the command can be used for.

There are three options available for the nbpemreq command:
usage: nbpemreq -updatepolicies
usage: nbpemreq -predict -date <mm/dd/yyyy HH:MM:SS>
usage: nbpemreq -predict -dateu <unixtime>

The "nbpemreq -updatepolicies" will cause the NetBackup Policy Execution Manager (nbpem) to reread the existing policy configuration. The nbpem daemon will check for changes based on the Global attribute "Policy Update Interval". By default, this is set to ten minutes. The -updatepolicies option can be issued after making a change to a policy to allow the changes to take effect immediately. TechNote 278492 contains additional information for the -updatepolicies option (this TechNote can be found below, in the Related Documents section).

# cd /usr/openv/netbackup/bin/admincmd
# ./nbpemreq -updatepolicies
The command will simply return the prompt after being run.

The "nbpemreq -predict" option replaces the functionality that used to be available from the "bpschedreq -predict" command. The "-date <date>" or the "-dateu <unixtime>" option must also be specified. The -predict option will display backup policies that are due to run on a specific day and time. This command will not display when a specific policy will run, rather it will display policies that are eligible to run and that have open backup windows during the time specified. Factors such as drive availability, max jobs per client, etc., will impact when a job can actually run.

# cd /usr/openv/netbackup/bin/admincmd
# ./nbpemreq -predict -date 9/15/2005 16:00:00
Predicted worklist for Thu Sep 15 16:00:00 2005
rl client policy schedule type
-- ---------- ---------- ---------- -----
01 starfury test-dlt2 FULL 0
This will display the Retention level (rl), Client Name (client), Policy name (policy), Schedule Name (schedule) and Policy type (type). The rl and type values will display the numeric equivalent of the retention level and policy type.

The following caveats exist for the nbpemreq -predict command:

Running the -predict option without specifying a time will use a default time of 23:59:59 hours.
Running the -predict option and specifying a time in the past will display the nbpemreq usage.
Running the -predict option will only show backups that are eligible to run. It is not an indication of what jobs will run at a specific time.


Related Documents:

278492: DOCUMENTATION: How to update the "nbpem" daemon after making changes to a policy without waiting for the Policy Update Interval to take effect


279299: VERITAS NetBackup (tm) 6.0 Commands for UNIX





Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 

Running the command "bpschedreq -predict" and specifying a date, but not a time, can give misleading results.
Details:
The command bpschedreq -predict will display a list of scheduled jobs that could run at a specified date and time. A current or future date must be specified with the command, the format of which is given by querying the command with the -help option (bpschedreq -help). The time value, however may be as follows:


if the time is not specified, by default the current time is used;
if a time before the current time is specified, the command will request for a time after the current date/time;
if the time specified is a time after the current time, the command will list jobs that could be due to run between the current time and the time being specified.

Therefore, if the backup windows of Classes or Schedules include neither the current time, nor the time span between the current time and the time specified on the command, then the list will be empty.

Examples of Command usage

If jobs are scheduled to start every day at 07:00:00 with a window open for 3 hours, these jobs will not be listed by the command
bpschedreq -predict 05/22/01 06:00:00
as the window defined for these jobs is not open.

Similarly, the jobs would not be listed by the command
bpschedreq -predict 05/22/01 11:00:00
as the backup window has closed.

However, using the command
bpschedreq -predict 05/22/01 09:00:00
will list these jobs correctly. A typical output would be of the format:

<retention level> <client name> <class name> <schedule type> <day due> <approximate time due/backup window open from>

such as:

1 37bl20jx test Differential-Inc INCR Tuesday 07:00:00
1 sprsunnb15 test Differential-Inc INCR Tuesday 07:00:00
0 sprsunnb15 marko Full FULL Tuesday 07:00:00
0 sptibmnb3 marko Full FULL Tuesday 07:00:00



Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
Is there a way to forecast when a backup job will run?
Details:
From the master server, open a command prompt to the following path:

<install_path>\VERITAS\Netbackup\bin

Run bpsched from the command prompt with the -predict option.

The -predict option requires that a date and time follow it. This will be the date and time you wish to analyse against.

Example:

bpsched -predict 02/12/02 12:00:00 -L

Sample output:

Predicted Worklist for 02/12/2002 12:00:00 PM


ret client class schedule
--------------------------------------------------------------------------------

0 rock sched-predict-test-class full FULL
Tuesday 04:00:00

The command can also be run without the -L

Here is what that result would look like:

bpsched -predict 02/12/02 12:00:00

output:

0 rock sched-predict-test-class full FULL Tuesday 04:00:00


The results of the command should read as follows:
With retention level 0 Host "rock" will be backed up using class name "sched-predict-test-class" and a Full schedule type called "FULL" is due to run on Tuesday at 04:00 AM.

Alternative command:
bpschedreq

For more information on the concepts discussed here, see Technote 237286 (link below text of this technote)



Related Documents:

237286: Running the command "bpschedreq -predict" and specifying a date, but not a time, can give misleading results.



Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
everything has proceeded like a charm,
thanks a lot everyone,

Osk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top