Automation

 View Only
last person joined: 6 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Can I run python script directly frrm Juniper shell prompt ?

    Posted 12-21-2020 16:48

    root@vMX-1# run start shell user root
    root@vMX-1:/var/db/scripts/commit # ls
    demo-1.py
    root@vMX-1:/var/db/scripts/commit # ls -l
    total 2
    -rwxr-xr-x 1 root wheel 502 Dec 21 20:58 demo-1.py
    root@vMX-1:/var/db/scripts/commit # ./demo-1.py
    ./demo-1.py: Authentication error.

    Any insights ?

    thanks in advance !!



  • 2.  RE: Can I run python script directly frrm Juniper shell prompt ?
    Best Answer

    Posted 12-21-2020 21:37

    HI, executing unsigned binaries  or scripts is not allowed. 



    ------------------------------
    Anatoliy Kushner
    ------------------------------



  • 3.  RE: Can I run python script directly frrm Juniper shell prompt ?

    Posted 12-21-2020 21:41

    thanks for clarification !!




  • 4.  RE: Can I run python script directly frrm Juniper shell prompt ?

    Posted 07-20-2021 02:37
    You can find available command from
    root@vMX-1% cd /bin/​

    ------------------------------
    SHISHEER TELI
    ------------------------------



  • 5.  RE: Can I run python script directly frrm Juniper shell prompt ?

    Posted 07-20-2021 06:06

    Using Python Interactive Mode on Devices Running Junos OS

    Using Python Interactive Mode on Devices Running Junos OS
    To invoke Python 2.7 or Python 3 in interactive mode on supported devices running Junos OS, enter the python or python3 command, respectively, at the shell prompt. Python 3 is available on devices running Junos OS Release 19.4R1 or later.
    so which vmx version are you running? in shell mode, Ithink you can run a python test.py




  • 6.  RE: Can I run python script directly frrm Juniper shell prompt ?

    Posted 07-20-2021 09:07
    thanks !!