Automation

 View Only
last person joined: 6 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  where can I download python jcs and Junos library module

    Posted 04-30-2021 01:37
    I am learning Junos automation python script. But I can't find anywhere I can download JCS and Junos python library modules.

    from junos import Junos_Configuration
    import jcs

    please help me to download these modules. thanks


  • 2.  RE: where can I download python jcs and Junos library module

     
    Posted 04-30-2021 02:10
    We need to install PyEZ to import the Junos modules, starting with "pip install junos-eznc" or "pip3 install junos-eznc" along with the dependencies.

    Please refer here: https://www.juniper.net/documentation/en_US/junos-pyez/topics/task/installation/junos-pyez-server-installing.html

    ------------------------------
    Hope this helps.

    Regards,
    -r.

    --------------------------------------------------

    If this solves your problem, please mark this post as "Accepted Solution."
    Kudos are always appreciated :).
    ------------------------------



  • 3.  RE: where can I download python jcs and Junos library module

    Posted 04-30-2021 05:23
    I have installed PyEZ . But I can't find these modules. I saw these python codes from the jncis-develop preparation video. I can't find these modules.

    from junos import Junos_Configuration
    import jcs



  • 4.  RE: where can I download python jcs and Junos library module
    Best Answer

     
    Posted 04-30-2021 05:47
    Oh ok, sorry for the particular modules you're looking at, these are only available on-box for some op-scripts etc.  You're perhaps looking at something like this:

    https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/example/junos-script-automation-op-script-changing-configuration-python.html

    ------------------------------
    Hope this helps.

    Regards,
    -r.

    --------------------------------------------------

    If this solves your problem, please mark this post as "Accepted Solution."
    Kudos are always appreciated :).
    ------------------------------