Caching packages on the local cache folder

You can use the SCC Download Cacher to cache packages on an internet-enabled BigFix server. You can configure the BigFix Server to use the repository metadata and packages from both the cache folder and the internet.

Before you begin

Store packages in a separate folder instead of the BigFix server's sha1 folder in case the folder size inflates. Since the BigFix server only stores the latest download, the stored packages might be replaced by newer files if the BigFix server sha1 folder size limit is too small.

About this task

Storing the packages in the local cache allows the SCC Download Plug-in to use it instead of getting it from the internet.

Additional space may be required as the package will also be cached in the BigFix server's sha1 folder when the BigFix server requests the package from the local cache.

Procedure

  1. Use the buildRepo subcommand with the SCCDownloadCacher.exe file to download packages from a repository to the BigFix server's sha1 folder. For example:
    SCCDownloadCacher.exe --mirrorUser username  --mirrorPass base64_encoded_password
    --download_dir C:\downloads buildRepo --key sles-12-x86_64-sp0, sles-11-x86-sp4
    

    In this example, the download cacher tool downloads the packages to the specified download folder.

  2. Open the configuration file of the SCC Download Cacher called plugin.ini. Configure the plugin.ini file with the following settings:
    localCache = <location of the transferred download_dir>
    localCacheOnly = no

    With this setting, the BigFix server first checks the repository metadata in the download plug-in's cache folder. If it has not expired, the BigFix server will use that metadata. Otherwise, the BigFix server will get the repository metadata from the internet. As for the packages, the BigFix server initially checks if the packages exist in the sha1 folder, then proceeds to the localCache before it goes to the internet.