Sophos

Online support

Product maintenance

Contact support

Support services

Virus identity (IDE) files: how to automate downloading with command line utilities

Where possible, we recommend that you use the automatic updating features of Sophos Anti-Virus versions 4.5 and above, EM Library, or Sophos Anti-Virus Small Business Edition, for automating the downloading of Sophos software and IDE (virus identity) files. On individual Windows computers running Sophos Anti-Virus, versions in maintenance, and on other platforms, certain command line utilities could be used instead.

What to do

Command line downloading utilities

These two utilities work in a similar manner. They can be used in an equivalent way in downloading scripts.

Files that can be used in automated downloading

The file types below can be used with scripts and utilities to automate the downloading of IDE files. The most commonly used are the self-extractor and Zip files.

Planning a script to poll the IDEs digest file

A script can be used to poll the IDEs digest file for updates.

Before you write the script:

Then write a script to do the following:

  1. Download http://www.sophos.com/downloads/ide/ides_digest.txt
  2. Compare the content of this file to the archive version.
  3. If the archive file and newly downloaded versions differ, then the IDEs have been updated:
    • Download and install the new IDE package.
    • Store the content of the newly downloaded ides_digest.txt file as the archive version.
    No action is needed if the files are identical.
  4. Wait for one hour before repeating these actions.
Make the check at a random time during the hour, rather than on the hour, so as to avoid network congestion.

Planning a script to download IDE files

The steps that need to be followed are:

  1. Check which version of Sophos Anti-Virus is being used.
  2. Download the appropriate self-extractor or Zip file.
  3. Extract the IDEs into the relevant CID directories. (Use the self-extractor, or unzip with WinZip or PKZIP).
  4. Reload Sophos Anti-Virus.

This must be used as part of a monthly updating policy which removes old IDEs from CIDs.

Example script for a single Windows computer using the self-extractor file

CD C:\SOPHIDE
DEL *.IDE
DEL IDES.EXE
WGET http://www.sophos.com/downloads/ide/ides.exe
IDES.EXE
COPY /Y *.IDE C:\Progra~1\Sophos~1\
NET STOP SWEEPSRV.SYS
NET START SWEEPSRV.SYS

This script

The last two lines are only necessary in Windows NT/2000/XP/2003. In Windows 95/98/Me, you should reboot to load the new IDE files.

To use this script, copy it into Notepad and save it as IDEDOWN.BAT on your desktop. Make a folder in the root of the C: drive called 'SOPHIDE' before first running the script and place Wget in it. Double-click IDEDOWN.BAT to run it.

Scripts can be made for network installations on Windows and other servers. If you require information on more complex scripts, technical support can advise you further.

If you need more information or guidance, then please contact technical support.