Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Dear Community,
Is there an option to run Shell-Scripts on a Juniper SRX240?The problem is that I am getting the Dynamic-VPN error that the configuration doesn't exist and I have to use the workaround to delete the tokens-info file. Based on this problem I wanted to write a Shell-Script that deletes the tokens-info file. But when I want to execute this script there is an error called “Authentication error” and the script won’t be executed. Juniper does not support scripts and this bug will be fixed not before JunOS 10.0R3.
Has anyone the same problem?
Thank you for your response.
@arsch wrote:Juniper does not support scripts and this bug will be fixed not before JunOS 10.0R3.
Juniper does not support scripts and this bug will be fixed not before JunOS 10.0R3.
Hello,
AFAIR, JUNOS does support SLAX/XSLT scripts and also UNIX shell scripts if they are launched as
user% sh /path/somescript.sh
as opposed to
user% /path/somescript
This may mean You have to rewrite Your script to use Bourne shell.
Rgds
Alex
Aarseniev,
Thank you for your quick response.
Everything worked fine.
In a support call I opened, Juniper Support told me that Shell-Scripting is not supported. So I think this was misunderstanding between the support team and myself.
Regards
Hello There
If you guys dont mind . Can you tell how to delete the script.
Thanks & Regards
Malik
Like you would delete any file on UNIX from shel
from ops mode e.g. if you have script in the following directory
root@srx-1> file delete /var/db/scripts/commit/data-pull.sh
Also remove corresponding set commands if you have any for that script.