cancel
Showing results for 
Search instead for 
Did you mean: 

bpplschedwin

When I set a calendar based schedule in gui then check my debug log I see that the bpplschedwin command does the work, I am trying to understand the parameters it uses and how it works. This is on a Netbackup 6.5.3.1 version running on a Solaris 10 box.

9:20:28.210 [21437] <2> bpplschedwin: VERBOSE = 8
09:20:28.210 [21437] <2> bpplschedwin: INITIATING: version NetBackup 6.5 created
: 2008103100
09:20:28.210 [21437] <2> logparams: reggie reggie_weekly -0 0 0 -1 0 0 -2 0 0 -3
 0 0 -4 0 0 -5 64800 43200 -6 0 0 -M xxxx.xxxx

I uderstand that 64800 converts to a day and 43200 is the start time in seconds. The other parameters I don't understand.

1 Solution

Accepted Solutions
Accepted Solution!

generation isn't being used in your example - here's your answer

It's pretty much exactly what Stumpr and Darren said - let's apply what they're saying to your log entry.

09:20:28.210 [21437] <2> logparams: reggie reggie_weekly -0 0 0 -1 0 0 -2 0 0 -3 0 0 -4 0 0 -5 64800 43200 -6 0 0 -M xxxx.xxxx

This specifies seven sets of windows; one for each day of the week.

-0 0 0 No window on Sunday
-1 0 0 No window on Monday
-2 0 0 No window on Tuesday
-3 0 0 No window on Wednesday
-4 0 0 No window on Thursday
-5 64800 43200 Open window from 18:00 (aka "64800 seconds after midnight") to 06:00 Saturday (aka "43200 seconds 12 hours") on Friday
-6 0 0 No window on Saturday
-M xxxx.xxxx your master

I don't know what "-generation" is used for (SLP?) but you're not using it here so I can weasel out of telling you THAT answer.  ;)

View solution in original post

7 Replies

bpplschedwin -help

# bpplschedwin -help
USAGE: bpplschedwin policy name sched label [-verbose]
           [-M master_server,...] [-generation generation]
           [-(0..6) <seconds past midnight> <duration seconds>]
           [-close <day number (0..6)>]
    used to modify an existing schedule window

In your example the "-5"

In your example the "-5" converts to the day of the week (Friday), 64800 is the opening of the start window after that day or 18:00, 43200 is the length of the window (12 hours).

--
Darren

Yeah I got that much too.

Yeah I got that much too. What I am trying to understand is what generation means.
Accepted Solution!

generation isn't being used in your example - here's your answer

It's pretty much exactly what Stumpr and Darren said - let's apply what they're saying to your log entry.

09:20:28.210 [21437] <2> logparams: reggie reggie_weekly -0 0 0 -1 0 0 -2 0 0 -3 0 0 -4 0 0 -5 64800 43200 -6 0 0 -M xxxx.xxxx

This specifies seven sets of windows; one for each day of the week.

-0 0 0 No window on Sunday
-1 0 0 No window on Monday
-2 0 0 No window on Tuesday
-3 0 0 No window on Wednesday
-4 0 0 No window on Thursday
-5 64800 43200 Open window from 18:00 (aka "64800 seconds after midnight") to 06:00 Saturday (aka "43200 seconds 12 hours") on Friday
-6 0 0 No window on Saturday
-M xxxx.xxxx your master

I don't know what "-generation" is used for (SLP?) but you're not using it here so I can weasel out of telling you THAT answer.  ;)

View solution in original post

Re: generation isn't being used in your example - here's your answer

-Generation shows up in other Schedule-related commands.  It looks like, at some point, there was going to be some concept of versioning for schedules, but it certainly isn't obvious from the GUI that that ever really took hold, but the parameter seems to have persisted.

Re: bpplschedwin -help

What I find really annoying is that bpplschedwin isn't documented online.

Re: bpplschedwin -help

There is honestly no point in digging up every undocumented command in old forum posts. 

If it was meant to be used by NBU users/admins, it would be documented in the Commands manual.