Automation

 View Only
last person joined: 7 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  script to automate upgrade

    Posted 01-05-2023 21:30
    good day folks,

    does anyone have a working script to automate an image pull of an srx firmware from a dhcp server then execute the upgrade?

    e.g:
    1.use an existing srx to be a repository of the image under the /var/tmp directory
    2.save the image to /var/tmp of an srx configured to be a dhcp server
    3.create a script to pull the image from a dhcp srx /var/tmp and save it in another srx where the upgrade has to be made under /var/tmp directory
    4.once the pull is finished, the script will run that image with all the requisites details;
         -dhcp server ip
         -root account 
        -/var/tmp folder
        -the commands and the switch (e.g no-reboot no-copy)

    The goal is to minimize the manual upgrade if I have 10 srx or EX devices.

    TIA,
    Leangf

    ------------------------------
    Leangf Leangf
    ------------------------------


  • 2.  RE: script to automate upgrade

    Posted 01-06-2023 11:01
    Hi Leangf,

    I think you can find the starting point in Juniper Day One Bookhttps://www.juniper.net/documentation/en_US/day-one-books/DO_PyEZ_Cookbook.pdf at recipe 16.

    Thanks,
    Adrian.

    ------------------------------
    Teodor Adrian Soroceanu
    ------------------------------



  • 3.  RE: script to automate upgrade

    Posted 01-09-2023 03:40
    Hello Adrian,
    I installed an Ansible in a macos. 

    Followed instructions, so far everything is working. 

    a prerequisites on the junos device, it should have nefconf enabled. In my case , i intend to use the cliconf..

    https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/junos_cliconf.html#ansible-collections-junipernetworks-junos-junos-cliconf

    any thoughts on how to add/ edit this modules?

    tia,
    leangf

    ------------------------------
    Leangf Leangf
    ------------------------------



  • 4.  RE: script to automate upgrade

    Posted 01-09-2023 08:36
    Hi Leangf,

    I am not familiar with cliconf, but if you could shed more info on what you are trying to achive or what does not work we can take a look.

    Thanks,
    Adrian.


    ------------------------------
    Teodor Adrian Soroceanu
    ------------------------------