View Only


This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.

Expand all | Collapse all

Question on remotely running SLAX op script.

This thread has been viewed 7 times
  • 1.  Question on remotely running SLAX op script.

    Posted 04-14-2022 13:21



    Juniper documentation says that running the op url <http location of slax script> command on the Junos device makes the Junos device run an op script located on a remote server.


    1: What sort of message is sent from the Junos device to the remote host in order to run that script.

    2: What is SLAX syntax to communicate with the Junos device?

    3: Does the SLAX script use REST or NETCONF to communicate with the Junos device?





    Juniper Business Use Only

  • 2.  RE: Question on remotely running SLAX op script.

    Posted 05-04-2022 06:06

    Hi Deepak!

    My understanding of the op url <url>  command is that it's pulling the script to be run locally on the device, not executing the script on the remote server. It accesses the remote server via https, and pulls the script to be run.

    If that answers question 1 from yourself, then it negates the other 2 questions, as the SLAX script runs locally on the device communicating with XML API in JUNOS.

    If your question was to run a script on a remote server, there are ways to do this, such as Python; importing paramiko and getting the .py script to ssh into the remote server, specifying the commands to be run in its CLI (including any scripts on that server).

    Hopefully this helps. 

    Daniel Jones