WARNING: BES Server/Relays Have Too Many Download Folders
Log In or Register to download the BES file, and more.

0 Votes

The listed BES Servers/Relays have over 10,000 download folders.  The BES Server creates a download folder for each action which has a download as part of the action script.  The BES Relays create a download folder for each download request received by a BES Client. 

The download folders are used to manage caching and distribution of downloads to BES Clients but having large numbers of these folders can cause the BES Server/Relays to have slow response time processing client requests.  It's recommended that you remove some of the unused download folders to prevent performance problems from occurring.

The actions below will run a utility to remove download folders for expired actions which should no longer be used.  Stopped actions have their download folders removed automatically.  The utility should be run on the BES Server first and assumes that the database is local to the BES Server.  A data file will be created in this process that the utility will use to clean BES Relays.

Warning! If a BES Client requests a download after the download folder has been deleted, the BES Server and BES Relays will fail to process the download request and the BES Client will be stuck in a 'Pending Downloads' status for that action.  You must issue a new action or stop and restart the action to correct this problem.


ID410
TitleWARNING: BES Server/Relays Have Too Many Download Folders
CategoryBES Performance
Download Size1855555
SourceBigFix
Source ID<Unspecified>
Source SeverityImportant
KeywordsBES Relays download folders Client
Added by on 10/17/2012 1:15:22 PM
Last Modified by on 10/17/2012 1:15:22 PM
Counters 15008 Views / 89 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

isWindows (Relevance 274)
Used in 592 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
name of operating system starts with "Win"
Used in 238 fixlets   * Results in a true/false
Show indented relevance
evaluation of client license = false
Used in 85 fixlets and 10 analyses   * Results in a true/false
Show indented relevance
exists relay service OR exists main gather service
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\GatherService" whose (exists value "DownloadContentLocation" of it) of registry
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(exists relay service AND ((it < "7.2" AND it >= "6") of (if (version of client >= "8.0") then (version of relay service) else (version of regapp "besrelay.exe")))) or (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server" whose (exists ((value "Version" of it) as string as version) whose (it < "7.2" AND it >= "6") AND exists value "BESInstalled" of it AND value "BESInstalled" of it = 1) of registry)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
number of folders of folder (value "DownloadContentLocation" of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\GatherService" of registry as string) > 10000

Action 1

Action Link Click here to remove download folders on the BES Server and create a data file for BES Relays.
Script Type BigFix Action Script
prefetch BESDownloadsCleaner.exe sha1:48534208493b055dd760dd92df9fc36ebd1d292f size:3276885 http://software.bigfix.com/download/bes/util/BESDownloadsCleaner-3.0.1.82.exe
wait __Download\BESDownloadsCleaner.exe -N 10 -w -W __Download\downloadcleanerdata.txt
continue if {exists file "downloadcleanerdata.txt" of folder "__Download"}
delete "{value "wwwRootFolder" of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server" of registry as string}\downloadcleanerdata.txt"
move "__Download\downloadcleanerdata.txt" "{value "wwwRootFolder" of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server" of registry as string}\downloadcleanerdata.txt"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to remove download folders on BES Relays.
Script Type BigFix Action Script
prefetch BESDownloadsCleaner.exe sha1:907ac8f74299a43ca2ca373cfd9aa8b6b967b104 size:3276885 http://software.bigfix.com/download/bes/util/BESDownloadsCleaner-3.0.1.34.exe
download http://127.0.0.1:52311/downloadcleanerdata.txt
continue if {exists file "downloadcleanerdata.txt" of folder "__Download"}
wait __Download\BESDownloadsCleaner.exe -N 10 -F __Download\downloadcleanerdata.txt
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.



Log In or Register to leave comments!
laszlo -
Is there something similar for BigFix Relay running on Red Hat? I have a zillions of inodes and need to get rid of files. Thanks!
Searching...
please wait!