06-21-2012 05:31 PM
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
Solved! Go to Solution.
06-25-2012 02:37 AM
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
06-21-2012 06:40 PM
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
06-21-2012 10:18 PM
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
06-22-2012 02:01 AM
So I think you are seeing something like this ...
06-22-2012 06:50 AM
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 :)
06-22-2012 07:18 AM
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?
06-22-2012 07:32 AM
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
06-22-2012 07:52 AM
i want to configure the schedules for monday to thursday only.
is there any command to eliminate the thursday to sunday?
06-22-2012 08:33 AM
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
06-22-2012 10:27 AM
its not working:-( VKumar.
06-22-2012 10:32 AM
is there a command to delete the respective day?
or add the day one by one?
06-22-2012 11:39 AM
Another how can i change the media ID?
like monday to thursday?
06-22-2012 11:57 AM
06-22-2012 12:14 PM
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
06-22-2012 01:02 PM
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...
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....
06-22-2012 01:17 PM
here's the command that i used.
06-22-2012 03:41 PM
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
06-25-2012 12:58 AM
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.....
06-25-2012 02:37 AM
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
06-26-2012 05:05 AM
Any update on this ?