SRX

last person joined: 16 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Policy scheduler config

    Posted 07-30-2012 01:25

    Hi

     

    I am closely following the example in doc

    http://www.juniper.net/techpubs/en_US/junos12.1/information-products/topic-collections/security/software-all/security/index.html

    to create a policy scheduler that will work only this year and only on working days.

     

    scheduler sched-pk {
        start-date 2012-01-01.11:00 stop-date 2013-01-01.11:00;
        sunday exclude;
        saturday exclude;
    }

     However, I see that it is actually not working:

     

    lab@srx240# run show schedulers 
    Scheduler name: sched-pk, State: active
      Next deactivation: Tue Jan  1 11:00:00 2013

     It should be deactivating policy on next saturday, shouldn't it? Using Junos 12.1R2.

     



  • 2.  RE: Policy scheduler config
    Best Answer

     
    Posted 07-30-2012 05:58
    I've seen the same, it seems it only works as expected if you skip the start/stop date and do daily, with exclusions as before.
    I guess you could just use two schedulers and two policies, one which does the opposite on the specific days.

    help reference schedulers exclude says this:


    Use the exclude statement to exclude a day from a daily schedule created
    with the daily statement. You cannot use the exclude statement for a
    particular day unless it is in conjunction with the daily statement in a
    schedule.


  • 3.  RE: Policy scheduler config

    Posted 07-30-2012 11:53

    Thanks, Adam,

     

    So I will assume this is working as designed and the doc is wrong...