SRX

 View Only
last person joined: 14 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Automatically set resuce config on regular basis

    Posted 05-20-2016 05:19

    Dear Juniper Community,

     

    Actually running an SRX5600 cluster with Junos 12.3X48-D20.

     

    I'm looking for a command that would allow me to automatically set the rescue config on a customized regular basis. Do you know if such comman exists ?

     

    Thank you.


    #config
    #automatically
    #rescue
    #set


  • 2.  RE: Automatically set resuce config on regular basis

    Posted 05-20-2016 08:51
    It's not a single command, but a configuration.
    Explore event scripts.
    Sorry for not being more specific, but from my mobile is difficult to write a lot.


  • 3.  RE: Automatically set resuce config on regular basis

    Posted 05-20-2016 14:28

    Dear micho,

     

    Any configuration templates / examples you could share ?

     

    Best regards.



  • 4.  RE: Automatically set resuce config on regular basis

    Posted 05-21-2016 03:36

    Something like this:

    event-options {
        generate-event {
            weekly time-interval 604800;
            minute time-interval 60;
        }
        policy set_rescue {
            events weekly;
            then {
                execute-commands {
                    commands {
                        "request system configuration rescue save";
                    }
                }
            }
        }
    }
    


  • 5.  RE: Automatically set resuce config on regular basis

    Posted 05-21-2016 05:59

    Perhaps a commit script would be better than an event one.  Without a configuration change there really is no need to save a new rescue configuration.



  • 6.  RE: Automatically set resuce config on regular basis

    Posted 05-21-2016 11:58

    Dear Steve,

     

    Any configuration templates / examples you could share ?

     

    Best regards.



  • 7.  RE: Automatically set resuce config on regular basis

    Posted 05-22-2016 05:56

    On further thought the commit scripts intervene to change configuration before a commit is done.   So we still want an event script but instead of running at a particular schedule we trigger this on the event that a commit has occure.

     

    policy test {
        events ui_commit_completed;
        then {
            execute-commands {
                commands {
                    "request system configuration rescue save";
                }
            }
        }
    }
    


  • 8.  RE: Automatically set resuce config on regular basis
    Best Answer

    Posted 05-22-2016 13:53

    Dear Steve,

     

    Both approaches are very interesting. I'll study PROs/CONs.

     

    Thank you for your feedback.

     

    Best regards.