Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Running a Shell Script on JunOS

    Posted 02-16-2010 23:57

    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.



  • 2.  RE: Running a Shell Script on JunOS
    Best Answer

    Posted 02-17-2010 07:26

     


    @arsch wrote:

    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



  • 3.  RE: Running a Shell Script on JunOS

    Posted 02-18-2010 08:58

    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



  • 4.  RE: Running a Shell Script on JunOS

    Posted 03-03-2011 01:04

    Hello There

     

    If you guys dont mind . Can you tell how to delete the script.

     

    Thanks & Regards

     

    Malik



  • 5.  RE: Running a Shell Script on JunOS

    Posted 11-13-2013 00:21

    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.