To configure the script service for the MX-series router:
- [edit]
- user@host# edit services global service cos-service
- [edit services global service cos-service]
- user@host# set type script
- [edit services global service cos-service]
- user@host# edit script
- [edit services global service cos-service script]
- user@host# set script-type url
- [edit services global service cos-service script]
- user@host# set class-name net.juniper.smgt.scriptServices.coa.CoaService
- [edit services global service cos-service script]
- user@host# set file file:///opt/UMC/sae/lib/coa.jar
If you specify a file URL, you must copy the file to the C-series Controller. If you specify an ftp or http URL, the file can reside on a centralized server. You can find the coa.jar file in the application and SDK distribution on the Juniper Networks Web site at:
https://www.juniper.net/support/csc/swdist-erx/src.html
in the SDK+AppSupport+Demos+Samples.tar.gz archive file with the pathname:
AppSupport+Demos+Samples/SDK/scriptServices/coa/lib/coa.jar
[edit services global service cos-service script]
user@host# show
type script;
status active;
available;
script {
script-type url;
class-name net.juniper.smgt.scriptServices.coa.CoaService;
file file:///opt/UMC/sae/lib/coa.jar;
}