cancel
Showing results for 
Search instead for 
Did you mean: 

Bppllsched command line.

Agent47
Level 4

Hi Team,

 

Please advice. i use the command bppllsched on command line.

 

syntax is done. but all days is tag to monday to sunday.

all i need is monday to thursday.

 

regads

1 ACCEPTED SOLUTION

Accepted Solutions

mph999
Level 6
Employee Accredited

OK, got it ...

Example, this creats a schedule for schedule 'test' in policy 'womble_basic_disk'.

bpplschedwin womble_basic_disk test  -2 1800 3600 -M womble

-2 means Tuesday  (0 is Sun, 1 is Mon etc ...)

1800 means open 1800 sec  after midnight

3600 is close 3600sec after midnight

So I could run this ...

 bpplschedwin womble_basic_disk test  -0 0 0 -1 0 0 -2 1800 3600 -3 0 0 -4 0 0 -5 0 0 -6 0 0 -M womble

No windows any day apart from Tues.

Martin

View solution in original post

22 REPLIES 22

sksujeet
Level 6
Partner Accredited Certified

Thats by default pulls schedule type FULL from Monday to Sunday, If you are running incremental from Monday to thursday you can try the switch differential incremental.

-st sched_type

This is the type of the schedule. The default schedule type is FULL. Here

are the possible values, with their meanings, for this attribute:

FULL - full

INCR - differential incremental

CINC - cumulative incremental

UBAK - user backup

UARC - user archive

Marianne
Level 6
Partner    VIP    Accredited Certified

What were the options that you used with bpplsched?

Full full list of options, usage and examples, see NetBackup Commands Reference Guide  http://www.symantec.com/docs/DOC3684 

mph999
Level 6
Employee Accredited

So I think you are seeing something like this ...

 

Schedule:              full_user
  Type:                UBAK (2)
  Frequency:           7 day(s) (604800 seconds)
  Retention Level:     0 (1 week)
  u-wind/o/d:          0 0
  Incr Type:           DELTA (0)
  Alt Read Host:       (none defined)
  Max Frag Size:       0 MB
  PFI Recovery:        0
  Maximum MPX:         1
  Number Copies:       1
  Fail on Error:       0
  Residence:           (specific storage unit not required)
  Volume Pool:         (same as policy volume pool)
  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      006:00:00  018:00:00   030:00:00  042:00:00
   Tuesday     006:00:00  018:00:00   054:00:00  066:00:00
   Wednesday   006:00:00  018:00:00   078:00:00  090:00:00
   Thursday    006:00:00  018:00:00   102:00:00  114:00:00
   Friday      006:00:00  018:00:00   126:00:00  138:00:00
   Saturday    006:00:00  018:00:00   150:00:00  162:00:00
 
 
But you wish only to see 
 
   Monday      006:00:00  018:00:00   030:00:00  042:00:00
   Tuesday     006:00:00  018:00:00   054:00:00  066:00:00
   Wednesday   006:00:00  018:00:00   078:00:00  090:00:00
   Thursday    006:00:00  018:00:00   102:00:00  114:00:00
 
You cannot do this from NetBackup commands, but, you could via OS commands ...
 
For example :
 
bpplsched womble_basic_disk -L |grep -v Sunday |grep -v Saturday |grep -v Friday 
 
Schedule:              full_user
  Type:                UBAK (2)
  Frequency:           7 day(s) (604800 seconds)
  Retention Level:     0 (1 week)
  u-wind/o/d:          0 0
  Incr Type:           DELTA (0)
  Alt Read Host:       (none defined)
  Max Frag Size:       0 MB
  PFI Recovery:        0
  Maximum MPX:         1
  Number Copies:       1
  Fail on Error:       0
  Residence:           (specific storage unit not required)
  Volume Pool:         (same as policy volume pool)
  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
   Monday      006:00:00  018:00:00   030:00:00  042:00:00
   Tuesday     006:00:00  018:00:00   054:00:00  066:00:00
   Wednesday   006:00:00  018:00:00   078:00:00  090:00:00
   Thursday    006:00:00  018:00:00   102:00:00  114:00:00
 
 
This example is Unix/ Linux - i am not sure how you run a grep command in windows, if it is even possible.
 
Hmm, quick Google ...
 
 
 
So there are 3rd party applications available.
 
Martin
 
 

 

Agent47
Level 4

Thanks for the info martin.

is that possible to initiates the command under windows box i mean 2003 server?

i'm not knowledgabel on unix/linux envi. but i'll try this one you provided:

bpplsched womble_basic_disk -L |grep -v Sunday |grep -v Saturday |grep -v Friday :)

 

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Do you only want specific days to be displayed although all week days are configured?

Or do you want to configure schedules for certain days only?

 

mph999
Level 6
Employee Accredited

grep will not work on windows.  I far as I know, windows does not have a built in command that does the same think.

It may be possible to find a downloadble program that can be used from the command line.

Martin

Agent47
Level 4

i want to configure the schedules for monday to thursday only.

is there any command to eliminate the thursday to sunday?

 

 

thanks for the info mph999
 

kumar3
Level 4
Certified

You can try following command

bpplsched <policy name> -add <Schedule type> -window <start window> <End window> -weekday <day_name>

Example:

bpplsched testpolicy -add full -window 82800 3600 - weekday Monday

 

You have to run this command twice to crate schedule for Monday and Thurday

Agent47
Level 4

its not working:-( VKumar.

Agent47
Level 4

is there a command to delete the respective day?

or add the day one by one?

Agent47
Level 4

Another how can i change the media ID?

like monday to thursday?

Marianne
Level 6
Partner    VIP    Accredited Certified
Why not simply use the GUI? If you are already logged on to the Windows Master server, why not simply open the Admin Console? Why the need for cmd?

Agent47
Level 4

i was creating a batch script to automate the schedule and policy.

i noticed that the whole week is tag or defined.

ill try to search the parameters for deleting a corresponding day but no luck.:-(

hope you could help me.Marianne van den Berg

 

 

Marianne
Level 6
Partner    VIP    Accredited Certified

You still have not showed us your command?

In all honesty, as much as I use cmd every day, I have never used cmd to create, or modify policies or any of policy components such as schedules....

I have just had a look at bpplsched command in Commands manual - all you can you from cmd seems to be: add, delete or list.
No way to modify existing parameters. seems you have ONE chance to get it right with cmd, otherwise - delete and start again...indecision

In the GUI I can change parameter as many times as I want to....

Sorry to disappoint you on this one... All I can suggest is to keep the Commands manual open work out what you need, delete existing schedule with unwanted days, then add again with everything you need. Check result. If still not what you need, delete, start again....

Agent47
Level 4

here's the command that i used.

 

bpplsched test -M Servername -add d_2w_f -window 82800 28800 -freq 86400
604800(week) -freq 86400 -mpxmax 3.
 
i try to use -weekday but it need to define the week which is 1-5.
ill check also the parameters for deleting a specific days but no luck:-(
 
i'll try serveral times but still issue persist.
 
:(
 

mph999
Level 6
Employee Accredited

I'm not near a server at the mn, so cannot try this out.

If you create a schedult with one day in the java console, then look in the user_ops logs, hopefully it will list the command it ran and then job done ...

To set the java logs ...

 

Edit the file /usr/openv/java/Debug.properties

Add or uncomment the following lines :

printcmds=true

printCmdLines=true

debugMask=0x0C000000

A .log file will be created under /usr/openv/netbackup/logs/user_ops/nbjlogs for each instance of Java GUI you have open.

Martin

Andy_Welburn
Level 6

there's also bpplschedrep which you can use to 'modify NetBackup schedule attributes'.

/usr/openv/netbackup/bin/admincmd/bpplschedrep   policy_name
     sched_label   [   -M   master_server,...]    [-v]  [-st
     sched_type]    [-freq    backup_frequency]     [-mpxmax
     mpx_factor]  [-cal  0|1|2]  [-incl  mm/dd/yyyy]  [-excl
     mm/dd/yyyy] [-delincl mm/dd/yyyy] [-delexcl mm/dd/yyyy]
     [-weekday day_name week] [-dayomonth 1-31|l] [-delweek-
     day day_name week] [-deldayomonth 1-31|l]  [-ci]  [-ce]
     [-cw]       [-cd]      [-number_copies      number][-rl
     retention_level[,rl-copy2,...,rl-copyn]]
     [-fail_on_error      0|1[,0|1,...,0|1]]     [-residence
     storage_unit_label     [,stunit_copy2,...stunit_copyn]]
     [-pool  volume_pool_label  [,pool_copy2,...pool_copyn]]
     [-sg     share_group     [,share_copy2,...share_copyn]]
     [-(0..6) start duration] [-res_is_stl 0|1]

 

Personally, I have no issues with using command line but for creating/amending policies, alongside other things such as adding tape drives, I would much rather go with the GUI.....

mph999
Level 6
Employee Accredited

OK, got it ...

Example, this creats a schedule for schedule 'test' in policy 'womble_basic_disk'.

bpplschedwin womble_basic_disk test  -2 1800 3600 -M womble

-2 means Tuesday  (0 is Sun, 1 is Mon etc ...)

1800 means open 1800 sec  after midnight

3600 is close 3600sec after midnight

So I could run this ...

 bpplschedwin womble_basic_disk test  -0 0 0 -1 0 0 -2 1800 3600 -3 0 0 -4 0 0 -5 0 0 -6 0 0 -M womble

No windows any day apart from Tues.

Martin

mph999
Level 6
Employee Accredited

Any update on this ?