Creating the COA Script Service (SRC CLI)
To create the script service:
- From configuration mode, enter the service configuration.
In this sample procedure, the service is configured in the global
service scope, and COAservice is the name of the service. user@host# edit services global service COAservice
- Configure the type of service. [edit services global service COAservice]user@host# set type script
- (Optional) Specify whether the service is visible only
to administrators who have permission to see secret information. [edit services global service COAservice]user@host# set secret
- Configure URL as the type of script that the sample COA
script service uses. [edit services global service COAservice]user@host# set script script-type url
- Configure net.juniper.smgt.sae.coa.CoaService as the name
of the class that implements the script service.[edit services global service COAservice]user@host# set script class-name net.juniper.smgt.sae.coa.CoaService
- Configure the URL of the script service or the path and
filename of the service. Copy the /lib/coa.jar file used by the script service to a location that is accessible
by a URL (such as an FTP or HTTP server). In this sample procedure,
the coa.jar file was copied to the /opt/UMC/sae/var/run directory. [edit services global service COAservice]user@host# set file file:///opt/UMC/sae/var/run/coa.jar
- (Optional) Verify your configuration.
[edit services global service COAservice] user@host# show type script; status active; available; script { script-type url; class-name net.juniper.smgt.sae.coa.CoaService; file file:///opt/UMC/sae/var/run/coa.jar; }
After you create the script service, you need to configure parameters for the script service. For more information about configuring script services and parameters, see SRC Script Services Overview.