How to Create a Schedule that Spans Two Days

Printer Friendly Page

Steps

To create a schedule which spans more than one day, for example from 10pm to 5am:

  • Create a schedule, go to Objects > Schedules.

    schedule.pngSchedule that spans past midnight should be split between PM and AM

  • Add the schedule to a policy, go to Policies tab.  Click on the Options link for a security policy.

    security policy with schedule.pngSecurity Policy Actions with a Schedule

  • To display the schedule setting, run command: 
    admin@myNGFW# show schedule    (add 'shared|vsys1|vsys2|...' for multiVSYS)
    schedule {
      multiday {
        schedule-type {
          recurring {
            daily [ 22:00-23:59 00:00-05:00];
          }
        }
      }
    }
    [edit]                     

 

 

If time spanning multiple days is put in a single schedule (eg. start 22:00 end 05:00) an error message will appear:

error message.pngEnd time is earlier that start time error message

 

owner: kkondo

Tags (4)
Comments

PAN 8.0.5 does not allow me to save the schedule if it spans over 2 days. Because of this, I cannot commit the action to proceed with this tutorial. Is there an updated tutorial that covers 8.0.5? Also, is there a better way to do this through the GUI rather than having to go through the CLI? Thanks

hi @javigliano

 

you can span 2 days (eg. from 22:00/10pm the first day to 5:00am the next day) by creating a schedule up until the end of the fist day at 23:59 and then starting again at 00:00 which is the first minute of the new day:

 

reaper@myNGFW# show shared schedule
schedule {
  multiday {
    schedule-type {
      recurring {
        daily [ 22:00-23:59 00:00-05:00];
      }
    }
  }
  week {
    schedule-type {
      recurring {
        weekly {
          friday 22:00-23:59;
          saturday 00:00-05:00;
        }
      }
    }
  }
}
[edit]                    

every day starts at 00:00 and ends at 23:59

 

In the GUI: Objects > Schedules

schedule.pngSchedule spanning 2 days