Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
Configuring the Script Service for Packet Mirroring
To configure the script service for packet mirroring:
- Create a script service in the services global service name hierarchy or the services scope name service name hierarchy. For example:[edit]user@host# edit services global service packetMirroring
- Set the type to script.[edit services global service packetMirroring]user@host# set type script
- (Optional) Configure other properties as needed for your service.
- Configure the script properties.
- Access the script hierarchy for the configured script
service.[edit services global service packetMirroring]user@host# edit script
- Specify URL as the script type.[edit services global service packetMirroring script]user@host# set script-type url
- Specify the name of the Java class that implements the
script service.[edit services global service packetMirroring script]user@host# set class-name net.juniper.smgt.sae.packetMirroring.LiService
- Configure the URL of the script service or the path and
filename of the service.[edit services global service packetMirroring script]user@host# set file file:///opt/UMC/sae/var/run/pm.jar
- Access the script hierarchy for the configured script
service.
- Verify the configuration.
[edit services global service packetMirroring script] user@host# show type script; status active; available; script { script-type url; class-name net.juniper.smgt.sae.packetMirroring.LiService; file file:///opt/UMC/sae/var/run/pm.jar; }
- Configure the parameters for the script service.
See Configuring Parameters for the Script Service for Packet Mirroring.