wiki:Internal/Blackout

Version 4 (modified by seskar, 7 years ago) ( diff )

Blackouts

script location:

external1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_autoapprover/scripts

run: export GEM_PATH=/usr/share/omf-common-5.4/gems:/usr/share/omf-aggmgr-5.4/gems ruby -I/usr/share/omf-common-5.4 -I/usr/share/omf-aggmgr-5.4 addBlackouts.rb

with parameters:

Usage: addBlackouts.rb -d date -t hour -w weeks

-d, —date DATE Date to start creating blackouts

in format dd/mm/yyyy

-t, —hour HOUR Hour when starts 2 hours of blackout -w, —week WEEK Number of weeks to repeat blackout -h, —help Show this usage message and quit.

EXAMPLES:

addBlackouts.rb -d 5/25/2014 -t 15 -w 4

Approved Reservations

script location:

external1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_autoapprover/scripts

run: export GEM_PATH=/usr/share/omf-common-5.4/gems:/usr/share/omf-aggmgr-5.4/gems ruby -I/usr/share/omf-common-5.4 -I/usr/share/omf-aggmgr-5.4 addApprovedReservations.rb

with parameters (help printout):

Usage: addApprovedReservations.rb -d date -t hour -n days

-d, —date DATE Date to start create approve reservation in format dd/mm/yyyy -t, —hour HOUR Hour when starts first of 12 consecutive 2 hours reservations -r, —days DAYS Number of days to repeat reservations -h, —help Show this usage message and quit.

EXAMPLES:

addApprovedReservations.rb -d 5/26/2014 -t 15 -r 4 
Note: See TracWiki for help on using the wiki.