Checking Your SAS Software Depot

Overview of Checking Your SAS Software Depot

In the March 2012 release of SAS 9.3, SAS provides a utility with which you can verify the integrity of your SAS Software Depot. The SAS Software Depot Check Utility walks through your depot and assembles a list of the files contained in the depot. The utility identifies any missing files. For the files that it locates, that utility attempts to validate their size, checksum, and date-and-time stamp.
The depot check utility generates a text file report in which it lists the results of its various validation tests in the file sas_depot_check.out. The utility also attempts to fix any problems that it encounters. Any fixes that it makes are written in a second output file, sas_depot_check.update.
The following is the content of sas_depot_check.out from a depot check run on UNIX:
SAS Software Depot Check Utility version 4.3

 Missing File(s)
   No files are missing.

 Wrong Size File(s)
   All files had the correct size.

 Wrong Checksum File(s)
   All files had the correct checksum.

 Wrong Owner File(s) (Execute /home/sas/sas_depot_check.update for fix)
   All files had the correct owner.

 Wrong Group File(s) (Execute /home/sas/sas_depot_check.update for fix)
   All files had the correct group.

 Wrong Permission File(s) (Execute /home/sas/sas_depot_check.update for fix)
   /sas_software_depot/order_data/09B9WN/order.xml
   /sas_software_depot/cd.id

 Missing volsers in cd.id that have been corrected
   All volsers were listed in cd.id.
The following is the content of sas_depot_check.update performed on UNIX:
chmod 755 "/sas_software_depot/order_data/09B9WN/order.xml"
chmod 755 "/sas_software_depot/cd.id"
You run the utility as a command with various options on Windows and UNIX systems only. On Windows, a graphical user interface is also available.
For more information, see the following:

Check Your SAS Software Depot on Windows

In the March release of SAS 9.3, SAS provides a utility with which you can verify the integrity of your SAS Software Depot. For more information see, Checking Your SAS Software Depot.
To run the SAS Software Depot Check Utility on Windows, follow these steps:
Note: It is recommended that you use the same Windows user account with which the SAS Software Depot was created to run the SAS Software Depot Check Utility.
  1. Locate the utilities\depotchecker directory under your SAS Software Depot directory, and click OK.
  2. Double-click SASDepotCheck.exe.
  3. In the dialog box that appears, navigate to the top level directory of your depot.
    Browse for Folder Dialog Box
  4. In the dialog box that appears, navigate to the directory where you want the utility to write its output and click Open. (This output will be in the form of one or more text files.)
    Media-ready image shown in Windows Explorer
  5. The utility asks whether you want it to continue checking your depot if it finds more than ten problems. Click Yes.
    Threshold Alert Box
  6. The utility asks whether you want it to list all of the files that it examines in its output report file. Click Yes.
    Verbose Alert Box
    The utility begins sweeping your depot. The time required to complete the sweep depends on the size of your depot.
    Checking Order Message Box
  7. When the utility has finished executing, its output should automatically open in your default text editor.
    If this does not happen, navigate to the output directory that you specified earlier, and open SASDepotCheckResults.txt.

Check Your SAS Software Depot on UNIX

In the March 2012 release of SAS 9.3, SAS provides a utility with which you can verify the integrity of your SAS Software Depot. For more information see, Checking Your SAS Software Depot.
To run the SAS Software Depot Check Utility on UNIX, follow these steps:
Note: It is recommended that you use the same UNIX user account with which the SAS Software Depot was created to run the SAS Software Depot Check Utility.
  1. Navigate to the utilities/depotchecker directory under your SAS Software Depot directory.
  2. Type the following command:
    ./sas_depot_check.sh –i depot_root_directory -o output_file_path
    • depot_root_directory (required) is the top level directory of your SAS Software Depot.
    • output_file_path (required) the absolute directory path for where the utility writes its output (one or more text files).
    You can also specify these options:
    -t
    (Optional) causes the utility to stop checking the depot if it finds more than ten problems.
    -v
    (Optional) writes all the found depot files in the text file that the utility outputs.