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

    Sample Perl Script for Incident and Auto Submit Filters

    The following is a sample Perl script for incident and auto submit filters:

    #!/usr/bin/perl
    $numArgs = $#ARGV + 1;
    $eventType = $ARGV[0];
    $deviceHostName = $ARGV[1];
    $problemSynopsis = $ARGV[2];
    $problemDescription = $ARGV[3];
    $devicePlatform = $ARGV[4];
    $entity = $ARGV[5];
    $junosVersion = $ARGV[6];
    $eventTime = $ARGV[7];
    $deviceId = $ARGV[8];
    
    if ("mx-80-sn2" eq $deviceHostName){
    print "\ntrue";
    }else{
    print "\nfalse";
    }
    

    Note: Do not change the ARG value assigned to a JMB attribute.

    Modified: 2017-06-14