-------------------------------------------
Original Message:
Sent: 07-20-2021 02:36
From: SHISHEER TELI
Subject: Can I run python script directly frrm Juniper shell prompt ?
You can find available command from
root@vMX-1% cd /bin/
------------------------------
SHISHEER TELI
------------------------------
Original Message:
Sent: 12-21-2020 16:47
From: Unknown User
Subject: Can I run python script directly frrm Juniper shell prompt ?
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
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 !!