There have been a couple issues / bugs in the past which have resulted in orphaned files in the input or output file repository servers (FRS). The scripts on this page were created to help clean up the FRS servers so there aren't any excess files taking up room.
All of these scripts were written in VBScript and designed for BOE XI R2, however they will generally work on BOE XI R3 as well (Although they are not supported when run on BOE XI R3)
For other scripts and information on how to run these scripts see here:
shawn.penner/blog/2013/06/04/scripts-and-samples
This script will scan the input and output FRS for files that do not have corresponding entries in enterprise and delete them. It will also delete the folders left over after removing the orphaned objects. The way it determines if a matching InfoObject exists is by assuming that the folder name at the deepest level is the SI_ID of the object. If an object with that SI_ID exists on the Enterprise Server, then that object is assumed to be valid.
Scan and Clean Input and Output FRS |
---|
Dim DoDelete DoDelete = False ' False = Test Mode, True = Actually Delete the Files 'Declare CMS logon variables CMS = "localhost" 'Declare variables for Enterprise Session ' File IO stuff 'Open the outputFile for logging. outputFile.WriteLine("-------- Starting Script --------") 'Load the Enterprise Session Manager 'Logon to the CMS and create iStore object outputFile.WriteLine("Input FRS Root = " & inputFRSRoot) ' Now that we have the root folders - we need to loop through them and drill down to the deepest level Dim finalOutput ' Scan the Input FRS ' Scan the Output FRS outputFile.WriteLine("All Done") ' Clean everything up
' Set it initially to not delete the folder Set boFolder = objFSO.GetFolder(fileRoot) ' Get a count of the files in this folder, and a count of the sub-folders ' Are there files here - then we need to check if the matching SI_ID exists ' If the count is 0 - then this is an orphan ' Set the delete flag to true to tell the function one up the recursive stack to remove this folder For Each boSubFolder in boFolder.SubFolders |
This next script doesn't actually use an BusinessObjects SDK's to clean out the Input and Output FRS. Instead it relies on the use of the RepoScan tool to identify mismatches between the CMS database and what is on disk.
RepoScan XML Parser |
---|
Dim xmlDoc Set filesys = CreateObject("Scripting.FileSystemObject") strQuery = "/ScanResults/File" For Each objItem in colItem WScript.Echo "Manually Deleting File: " + fpath + fname 'WScript.Echo objItem.nodeName & ": " & objItem.text |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |