Junos Automation (Scripting)
Junos Automation (Scripting)

REST API on vSRX

‎07-04-2016 05:05 AM

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?

 

Best Regards,
PK

Juniper Ambassador, Juniper Networks Certified Instructor,
JNCIE-SEC #98, JNCIE-ENT #393, JNCIE-SP #2253
Twitter: @JuniperTrain
GitHub: https://github.com/pklimai
[Juniper Authorized Education & Support in Russia]
3 REPLIES 3
Junos Automation (Scripting)
Solution
Accepted by topic author pk
‎07-04-2016 09:15 AM

Re: REST API on vSRX

‎07-04-2016 06:13 AM

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

Edward Arcuri
Architect - Automation & Programmability, JDI
Junos Automation (Scripting)

Re: REST API on vSRX

‎12-24-2016 04:21 AM

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>

Regards,
Pradeep 2xJNCIE(SEC/ENT)
Junos Automation (Scripting)

Re: REST API on vSRX

‎12-24-2016 08:48 AM

Hi

 

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

 

Best Regards,
PK

Juniper Ambassador, Juniper Networks Certified Instructor,
JNCIE-SEC #98, JNCIE-ENT #393, JNCIE-SP #2253
Twitter: @JuniperTrain
GitHub: https://github.com/pklimai
[Juniper Authorized Education & Support in Russia]