Skip to main content
Question

NAV 11 Scheduler Setting Script to run as current logged in User (additional ideas)

  • August 4, 2011
  • 1 reply
  • 0 views

Forum|alt.badge.img+26

The symsched commandwill setup a schedule for the computer, not for specific
users. Even though it works, the scheduled tasks will not appear when a
user views the Symantec Scheduler (GUI). You can use the symsched ­l
command to verify the scheduled tasks.

It's still a mystery to me what happens if the computer is off on Monday
around 8 am and then turned on a few hours later. I don't know if it checks
for missed tasks.

Also, the LiveUpdate (GUI) doesn't always reflect the correct last update
date/time. Some times its a few days older than what I can see when I dig
into the definition dates. Running recon with the Norton - Virus Definition
Date extension attribute enabled does list the correct date/time.

Here's more of my script, which includes a check for liveupdate prior to
setting the schedule. I run this once per computer. (I am always looking
for a better way to do this.)

#!/bin/sh
############################################################################
########################
# # LOGGING FUNCTION
#
############################################################################
########################
logFile="/private/var/log/MayoIT-SEPupdateSched.log"

log () { echo $1 echo $(date "+%Y-%m-%d %H:%M:%S: ") $1 >> $logFile
}
############################################################################
########################
# # SCRIPT CONTENTS
#
############################################################################
########################

if [ -f "/Applications/Symantec
Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate" ]; then
############################################################################
########################
# DELETE ALL EXISTING SYMSCHED TASKS and WRITE TO LOG
############################################################################
########################
symsched -d all
log "Deleted all existed symsched tasks."

############################################################################
########################
# CREATE SCHEDULEDS
############################################################################
########################
symsched LiveUpdate "AllUpdate monthy01" 1 1 -monthly 01 10:20 "All
Products" -quiet
symsched LiveUpdate "AllUpdate monthy15" 1 1 -monthly 15 15:45 "All
Products" -quiet
symsched LiveUpdate "Mon VDefs Update" 1 1 -weekly 1 08:00 "Virus
Definitions" -quiet
symsched LiveUpdate "Tue VDefs Update" 1 1 -weekly 2 10:00 "Virus
Definitions" -quiet
symsched LiveUpdate "Wed VDefs Update" 1 1 -weekly 3 12:00 "Virus
Definitions" -quiet
symsched LiveUpdate "Thu VDefs Update" 1 1 -weekly 4 14:00 "Virus
Definitions" -quiet
symsched LiveUpdate "Fri VDefs Update" 1 1 -weekly 5 16:00 "Virus
Definitions" -quiet

log "MayoIT 01 Symantec Schedule have been created."

else log "Error: Symantec LiveUpdate was not found on this machine." exit 1
fi
exit 0

On 8/4/11 8:46 AM, "Karthikeyan M" <karthikeyan.mac at gmail.com> wrote:

1 reply

karthikeyan_mac
Forum|alt.badge.img+17

Hi Jason,

symsched command and GUI in NAV 11 create the scheduler settings per user. It does not schedule for the computer.

It creates a file in /Library/LaunchDaemons with settings per user. Filename is like "com.symantec.SchedXXX-n", where XXX indicates the User ID and n is a counter to distinguish events. This may be different in SEP. SEP may setup a schedule for the computer;-)

Thanks & Regards,
Karthikeyan


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings