Create Package Including Custom Settings

jondowd
New Contributor II

We employ Symantec Endpoint Protection v12 and I have created a package using Composer which includes current updates. One additional feature we'd like to include are custom settings for the Symantec Scheduler for periodic product updates and file system scans. Can that be done?

1 ACCEPTED SOLUTION

talkingmoose
Moderator
Moderator

You can schedule via command line or script using Symantec's symsched command.

http://www.symantec.com/business/support/index?page=content&id=TECH105502 or run symsched -h in the Terminal.

View solution in original post

2 REPLIES 2

talkingmoose
Moderator
Moderator

You can schedule via command line or script using Symantec's symsched command.

http://www.symantec.com/business/support/index?page=content&id=TECH105502 or run symsched -h in the Terminal.

nessts
Valued Contributor II

we did something like this, it was for v11, we are on SEP now so not sure if this translates to twelve, this creates a job to DL the updates and runs scans weekly i think. and does it randomly so every person does not download at the same time of day.

#!/usr/bin/perl -w

use strict;
use Getopt::Std;
use vars qw($opt_h $opt_t $opt_v);

(my $progname =$0) =~ s#.*/##;
$ENV{PATH} = '/bin:/usr/bin';
umask 0022;

my $schedtool = "/Library/Application Support/Symantec/Scheduler/SymSecondaryLaunch.app/Contents/symsched";
my $scanscheduled = 0;
my $updatescheduled = 0;
my $username;

my $hr = (int rand 10) + 7;
my $min = int rand 59;
my $time = sprintf("%2d:%2d", $hr, $min);

$username = $ENV{USER};

open SS, ""$schedtool" -u $username -l -U |" or die "$progname: $schedtool: $! ";
while (<SS>) { $updatescheduled = 1 if (/^LiveUpdate/); $scanscheduled = 1 if (/^VirusScan/);
}

unless ($updatescheduled) { print "Update Schedule needs to be created "; system("logger "$progname: \"$schedtool\" -u $username LiveUpdate \"Daily Update\" 1 1 -daily $time \"All Products\"""); system(""$schedtool" -u $username LiveUpdate "Daily Update" 1 1 -daily $time "All Products"");
}

$hr = (int rand 10) + 7;
$min = int rand 59;
my $day = int rand 28;
$time = sprintf("%2d:%2d", $hr, $min);
unless ($scanscheduled) { print "Scan Schedule needs to be created "; system("logger "$progname: \"$schedtool\" -u $username VirusScan \"Monthly Scan\" 1 1 Monthly $day $time \"/\" \"/UserData\"""); system(""$schedtool" -u $username VirusScan "Monthly Scan" 1 1 Monthly $day $time "/" "/UserData"");
}
exit 0;