Video Screencast Help

commande line bpschedule

Created: 13 Nov 2012 • Updated: 13 Nov 2012 | 11 comments
This issue has been solved. See solution.


i would like to add the recurring day of the week into the schedule

with this command

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpschedule.exe -add test -weekday Monday 5

if i understand, in the gui the last monday of the week shoud be check

and when i look into the gui is not checked, so the command return when already exist

have got an idea why in the gui the monday is not check ?



Comments 11 CommentsJump to latest comment

Andy Welburn's picture

Can you confirm this has actually been applied, via command line:

bpschedule -L -label sched_label


bpschedule - add, delete, or list disk staging storage  unit
(DSSU) schedules .......

 To modify an existing NetBackup schedule, use the  NetBackup
 command bpschedulerep.

fdassonville's picture

despite applying the result of the command is not good

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpschedule.exe -L  -label full

Schedule:              full
  Type:                FULL (0)
  Frequency:           7 day(s) (604800 seconds)
  Retention Level:     1 (2 weeks)
  u-wind/o/d:          0 0
  Incr Type:           DELTA (0)
  Alt Read Host:       (none defined)
  Max Frag Size:       0 MB
  Synthetic:           0
  Checksum Change Detection: 0
  PFI Recovery:        0
  Stage Priority:      90000
  Maximum MPX:         1
  Number Copies:       1
  Fail on Error:       0
  Residence:           (specific storage unit not required)
  Volume Pool:         *NULL*
  Server Group:        (same as specified for policy)
  Residence is Storage Lifecycle Policy:         0
  Schedule indexing:  0
  Daily Windows:
   Day         Open       Close       W-Open     W-Close
   Sunday      000:00:00  000:00:00
   Monday      000:00:00  000:00:00
   Tuesday     000:00:00  000:00:00
   Wednesday   000:00:00  000:00:00
   Thursday    000:00:00  000:00:00
   Friday      000:00:00  000:00:00
   Saturday    000:00:00  000:00:00

RamNagalla's picture


please check schedule in Command line..

and per my understading , it will only select if there is a 5th monday on  particular month, if it has only 4 mondays on the month it wont select it.

try to select 4th or 3 rd monday and check if it works.. 

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpschedule.exe -add test -weekday Monday 4

Andy Welburn's picture

The output you've provided is for a different schedule to that in your original post.

If it *is* this 'full' schedule that you want to change, have you tried using bpschedulerep per my earlier post?

 To modify an existing NetBackup schedule, use the  NetBackup
 command bpschedulerep.


D:\Program Files\Veritas\NetBackup\bin\admincmd>bpschedulerep.exe full -weekday Monday 5

fdassonville's picture

my schedule is full

i have try your command

look the attachment please

Yasuhisa Ishikawa's picture

For which you are trying to set run day, schedule of BasicDisk disk stagong or schedule of backup policy?
For former,bpschedule or bpshedulerep command is OK. But for later, you have to use bpplsched or bpplschedrep command.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

fdassonville's picture

i use the calendar execution so if i don't specify the runing day no job du to run

Andy Welburn's picture

It's not something I'm in a position to test, but you *may* also have to change the 'type' of schedule too.

Looking at your original output (sorry but cannot see everything on your attachment):

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpschedule.exe -L  -label full

Schedule:              full
  Type:                FULL (0)
  Frequency:           7 day(s) (604800 seconds)

the type is set to Frequency-based, you *may* also need to ensure it's set to Calendar-based.

So, a further option for bpschedulerep:

-cal 0|1|2
          Indicates   whether   bpschedulerep   follows    a
          calendar-based   schedule   or  a  frequency-based
          0 = frequency-based schedule
          1 = calendar-based schedule with no retries  after
          run day
          2 = calendar-based schedule with retires after run

If the type is incorrect it may well not be applying your specific run day

fdassonville's picture

sorry but on the gui is calendar base with run day

see attachment

Andy Welburn's picture

*That* looks to me like a NORMAL policy schedule, all your previous commands etc were indicating that you wished to change a DSSU schedule, hence my responses.

Look at the bpplschedrep command to change NORMAL policy schedules

fdassonville's picture

i have the solution,

if i modifie the schedule, it's wrong, so if i create the schedule with runday it's ok

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpplsched schedule -add toto -window 72000 28800 -cal 2 -rl 0 -weekday monday 1 monday 2 monday 3 monday 4 monday 5