"Error: 1 is not a valid scheduler time mode" or similar errors when using Symsched command line to schedule LiveUpdate or a virus scan

Article:TECH102881  |  Created: 2007-01-12  |  Updated: 2011-06-02  |  Article URL http://www.symantec.com/docs/TECH102881
Article Type
Technical Solution


Issue



Symantec Antivirus for Macintosh (SAV for Mac) client displays the error "Error: 1 is not a valid scheduler time mode" or similar when using Symsched (Symantec Scheduler) command line to schedule LiveUpdate or a virus scan.



Error



 "Error: 1 is not a valid scheduler time mode" or similar errors when using Symched command line to schedule LiveUpdate or a virus scan


Cause



Symsched was updated beginning with LiveUpdate 4.0.4 for the Macintosh. This is a common cause of command-line errors, because the newer version requires an extra "UI" parameter (1 or 0) that specifies whether the scheduled task will appear in the Symantec Scheduler's GUI.


Solution



Run symsched without parameters (or with the -h option) to see its usage. See "Technical Information" below for symsched 3.0 and 4.0.1 usage.



Technical Information

/usr/bin/symsched version 3.0 (051)
© 2005 Symantec Corporation, All rights reserved.

Usage:
symsched -V // show version info
symsched -h // print this message
symsched -l [-U] // list all scheduled tasks (-U => unformatted)
symsched -d | all // delete named tasks or all tasks
symsched [-f] module name on frequency [day] time arguments
// to add new task
Optional argument for add: -f forces overwrite of existing task
Required arguments for add/edit:
module is one of: VirusScan LiveUpdate
name is a UTF8 string for the task name ( escape shell special chars )
unless the -f option is specified it is an error if a task already
exists with the same module and name
on is 1 if task is enabled, 0 if disabled
frequency is one of the localized or non-localized frequencies shown below
non-localized: -monthly -weekly -daily -annually
localized: Monthly Weekly Daily Annually
only enough characters needed to guarantee uniqueness
day is according to frequency:
for Monthly day is day of month (1-28)
for Weekly day is day of week (0-7)
for Daily day not used (leave out)
for Annually day is MM/DD date
time is HH:MM in 24 hour format
arguments according to the module:
for VirusScan [-niceness [-20..20]] pathname [[pathname]...]
for LiveUpdate "All Products" | "LiveUpdate" | "Norton AntiVirus" | "Virus Definitions" [-quiet]





/usr/bin/symsched version 4.0.1f1 (02/23/07 15:00:07)
© 2007 Symantec Corporation, All rights reserved.

Usage:
symsched -V                 // show version info
symsched -h                 // print this message
symsched -l [-U]            // list all scheduled tasks (-U => unformatted)
symsched -d | all    // delete named tasks or all tasks
symsched [-f] module name on UI frequency [day] time arguments
                            // to add new task
    Optional argument for add: -f forces overwrite of existing task
    Required arguments for add/edit:
    module    is one of:    VirusScan   LiveUpdate
    name      is a UTF8 string for the task name ( escape shell special chars )
              unless the -f option is specified it is an error if a task already
              exists with the same module and name
    on        is 1 if task is enabled, 0 if disabled
    UI        is 1 if task is shown on Scheduler UI, 0 if not shown
    frequency is one of the localized or non-localized frequencies shown below
              non-localized: -monthly -weekly -daily -annually -hourly
              localized: Monthly Weekly Daily Annually Hourly
              only enough characters needed to guarantee uniqueness
    day       is according to frequency:
              for Monthly day is day of month (1-28)
              for Weekly day is day of week (0-7)
              for Daily day not used (leave out)
              for Annually day is MM/DD date
              for Hourly day not used (leave out)
    time      is HH:MM in 24 hour format
              for hourly the hour indicates the frequency (every HH hours ), MM indicates what minute of the hour
    arguments according to the module:
              for VirusScan [-niceness [-20..20]] pathname [[pathname]...]
              for LiveUpdate "All Products" | "LiveUpdate" | "Norton AntiVirus" | "Virus Definitions" [-quiet]








Legacy ID



2007111208391648


Article URL http://www.symantec.com/docs/TECH102881


Terms of use for this information are found in Legal Notices