Automation

  • 1.  REST API on vSRX

     
    Posted 07-04-2016 05:06

    Hi All

     

    I am trying to enable REST API service on vSRX 15.1X49-D50.3 with no luck. Whatever I do, the log shows

     

    Jul  4 14:43:15  vSRX-15.1X49-D50.3 init: rest-api (PID 4635) started
    Jul  4 14:43:15  vSRX-15.1X49-D50.3 init: rest-api (PID 4635) exited with status=0 Normal Exit
    Jul  4 14:43:15  vSRX-15.1X49-D50.3 init: rest-api (PID 4640) started
    Jul  4 14:43:20  vSRX-15.1X49-D50.3 init: rest-api (PID 4640) exited with status=0 Normal Exit
    Jul  4 14:43:20  vSRX-15.1X49-D50.3 init: rest-api (PID 4649) started
    Jul  4 14:43:25  vSRX-15.1X49-D50.3 init: rest-api (PID 4649) exited with status=0 Normal Exit
    Jul  4 14:43:25  vSRX-15.1X49-D50.3 init: rest-api (PID 4656) started
    Jul  4 14:43:30  vSRX-15.1X49-D50.3 init: rest-api (PID 4656) exited with status=0 Normal Exit
    Jul  4 14:43:30  vSRX-15.1X49-D50.3 init: rest-api is thrashing, not restarted

    The services configuration is as follows

    lab@vSRX-15.1X49-D50.3# show system services 
    ssh;
    telnet;
    netconf {
        ssh;
    }
    rest {
        http;
        traceoptions {
            flag all;
        }
        enable-explorer;
    }
    web-management {
        http;
    }
    

    Web interface and telnet work fine. Can anyone advice?

     



  • 2.  RE: REST API on vSRX
    Best Answer

    Posted 07-04-2016 06:13

    Unfortunately, it is only supported in the MX/PTX/M & T series right now.  We had this same issue with the QFX at one time - e.g. the cli was there but the subsystem was not. 

     

    HTH



  • 3.  RE: REST API on vSRX

    Posted 12-24-2016 04:21

    With 15.1X49-D70, it is supported now on vSRX as well .

     

    pradga-mbp:~ pradga$ curl http://192.168.100.10:3000/rpc/get-software-information -u "root:Juniper" -H "Content-Type: application/xml" -H "Accept: application/xml"
    <software-information>
    <host-name>pradga-vSRX</host-name>
    <product-model>vsrx</product-model>
    <product-name>vsrx</product-name>
    <junos-version>15.1X49-D70.3</junos-version>
    <package-information>
    <name>junos</name>
    <comment>JUNOS Software Release [15.1X49-D70.3]</comment>
    </package-information>
    </software-information>



  • 4.  RE: REST API on vSRX

     
    Posted 12-24-2016 08:49

    Hi

     

    Thanks a lot for the info, Pradeep. Very glad to hear that.