Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring the Script Service for Packet Mirroring

    To configure the script service for packet mirroring:

    1. 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
    2. Set the type to script.
      [edit services global service packetMirroring]user@host# set type script
    3. (Optional) Configure other properties as needed for your service.
    4. Configure the script properties.
      1. Access the script hierarchy for the configured script service.
        [edit services global service packetMirroring]user@host# edit script
      2. Specify URL as the script type.
        [edit services global service packetMirroring script]user@host# set script-type url
      3. 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
      4. 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
    5. 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;
      }
    6. Configure the parameters for the script service.

      See Configuring Parameters for the Script Service for Packet Mirroring.

    Published: 2014-06-25