We are in the process of migrating the Spacial Wiki content to our new Help Center at spacial.com.
Please visit the Help Center for latest Tips and Tricks, Documentation and Troubleshooting.
spacial.com/help-center

SOS Optimization

From SpacialAudio

(Difference between revisions)
Jump to: navigation, search
(Using Windows' "Scheduled Tasks" to Run BAT Files)
(Using Windows' "Scheduled Tasks" to Run BAT Files)
Line 104: Line 104:
** This will shut down SOS and its utilities
** This will shut down SOS and its utilities
*'''SOS_AUTOSTART.BAT''' - "Daily" on Tuesday & Thursday at 2:02AM
*'''SOS_AUTOSTART.BAT''' - "Daily" on Tuesday & Thursday at 2:02AM
-
** This will start up SOS and all the utilities
 
-
*'''SOS_AUTOSTART.BAT''' - Run "When my computer starts" (Yes, this is an intentional duplicate task)
 
** This will start up SOS and all the utilities
** This will start up SOS and all the utilities
*'''SAFE_SHUTDOWN.BAT''' - "Weekly" at Sunday at 2:00AM
*'''SAFE_SHUTDOWN.BAT''' - "Weekly" at Sunday at 2:00AM
** This will shut down SOS, all of its utilities and then start a reboot 15 seconds from that point
** This will shut down SOS, all of its utilities and then start a reboot 15 seconds from that point
 +
*'''SOS_AUTOSTART.BAT''' - Run "When my computer starts" (Yes, this is an intentional duplicate task)
 +
** This will start up SOS and all the utilities
More information on how to use Scheduled Tasks, please visit Microsoft's KB article at: http://support.microsoft.com/kb/308569
More information on how to use Scheduled Tasks, please visit Microsoft's KB article at: http://support.microsoft.com/kb/308569

Revision as of 16:00, 3 June 2008

In order to keep SOS at its peak, the computer and SOS will need to power cycle (turn off). Even with SOS' ability to resync every 24 hours, Windows Virtual Memory will still benefit from weekly reboots and that in turn will benefit SOS.

Every install that the support team from SpacialAudio does with SOS will follow these steps below.

Contents

Introduction: What Can We Do to Optimize SOS

First, the best way to keep your SOS fresh is to only install one (1) copy of SOS per computer; multiple copies could conflict since SOS does a lot when it comes to time-shifting and streaming.

Second, make sure your system falls within our minimum specs; 1.5ghz processor, 1gb of RAM, Windows 2000 to 2003 (no Vista support at this time).

Finally, the best way we have found to keep SOS fresh is to initiate a restart of SOS every few days and a full restart of the machine every week, typically during non-peak hours. For example:

  • Restart of SOS and All Related Utilities: Tuesday & Thursday at 2:00am
  • Restart of Computer: Sunday at 2:00am

Running Batch Files

With any new install (v4.7.1 or later) there will be a list of batch files you will need:

SOS_AUTOSTART.BAT

@echo off
echo *--------------------------------------*
echo !  SOS Auto-start script               ! 
echo !  (c) Spacial Audio Solutions, LLC    !
echo !  http://www.spacialaudio.com         !
echo *--------------------------------------*

echo Wait a few seconds for things to settle down after the reboot
echo Waiting for 30 seconds...
PING 1.1.1.1 -n 1 -w 30000 >NUL

echo Starting the FireBird server
net start FireBirdServerDefaultInstance

echo Starting SOS in FBSS mode
START SOS.exe /FBSS

echo Waiting for 5 seconds...
PING 1.1.1.1 -n 1 -w 5000 >NUL

echo Starting SOS helper applications
CALL sos_utils.bat

SOS_UTILS.BAT

@echo off

echo Waiting 30 to Start SOS checker
PING 1.1.1.1 -n 1 -w 15000 >NUL
START SOSChecker.exe
  • If you are using AudioVault as your automation system and use the AvAdaptor.exe program then you will need to add this into your bat:
echo waiting 30 seconds to start avadaptor
PING 1.1.1.1 -n 1 -w 30000 >NUL
START AvAdaptor.exe

SOS_SHUTDOWN.BAT

@echo off
echo This will safely shut down SOS if it is running
START SOS.exe /SHUTDOWN

echo Waiting for 10 seconds for graceful shutdown of SOS...
PING 1.1.1.1 -n 1 -w 10000 >NUL

echo Forcefully kill any processes that did not want to gracefully shut down
.\pid\kill.exe

echo Shutdown any additional dependency programs
CALL sos_utils_shutdown.bat

SOS_UTILS_SHUTDOWN.BAT

@echo off
echo Shutdown SOS Checker
taskkill /F /im SOSChecker.exe
  • If you are using AudioVault as your automation system and use the AvAdaptor.exe program then you will need to add this into your bat:
echo Shutdown avadaptor
taskkill /F /im AvAdaptor.exe

SOS_RESTART.BAT

@echo off
echo Shutdown sos and dependency programs
call safe_shutdown.bat

echo Starting sos and dependency programs
call sos_autostart.bat

SAFE_RESTART.BAT

@echo off

echo Shutdown SOS and utilities
CALL sos_shutdown.bat

echo Shutting down the system
shutdown.exe -r -t 15 -f

Using Windows' "Scheduled Tasks" to Run BAT Files

Scheduled Tasks in Windows
Scheduled Tasks in Windows

To use Scheduled Tasks, go to Control Panel and open "Scheduled Tasks". Once there, click on "Add Scheduled Task".

  • For a task that will happen more than one (1) time a week, choose a "Daily" task
  • For a task that will happen one (1) time a week, choose "Weekly"
  • For a task that will happen after reboot, choose "When my computer starts"

The BAT files default in the SOS directory: c:\Program Files\SpacialAudio\SOS\

You will need to have a total of three (3) tasks run on your machine:

  • SOS_SHUTDOWN.BAT - "Daily" on Tuesday & Thursday at 2:00AM
    • This will shut down SOS and its utilities
  • SOS_AUTOSTART.BAT - "Daily" on Tuesday & Thursday at 2:02AM
    • This will start up SOS and all the utilities
  • SAFE_SHUTDOWN.BAT - "Weekly" at Sunday at 2:00AM
    • This will shut down SOS, all of its utilities and then start a reboot 15 seconds from that point
  • SOS_AUTOSTART.BAT - Run "When my computer starts" (Yes, this is an intentional duplicate task)
    • This will start up SOS and all the utilities

More information on how to use Scheduled Tasks, please visit Microsoft's KB article at: http://support.microsoft.com/kb/308569

Download

Download this file from our Wiki: http://support.spacialaudio.com/wiki/Image:Sos_bats.zip

Personal tools