4.3 Example of a General Inventory

In this example, assume that you want an inventory for the Dynamic File Services pair that has a primary path of e:\. You perform the following tasks to manually generate a report:

4.3.1 Create a Command File

Use a text editor to create a command file called FScommands.txt in the Dynamic File Services folder. The first line is the primary path for the pair. The second line requests a summary report to be created and specifies the output file for the summary report. The third line requests a detailed report to be created and specifies the output file for the detailed report. No inventory options are specified, so all inventory options are enabled.

e:\
/summary=e:\mySummary.xml
/detailed=e:\myDetails.xml

4.3.2 Run the File System Inventory Utility

  1. Log in to the server as the Administrator user, or as a user in the Administrators group.

  2. Open a Command Prompt console, then go to the Dynamic File Services folder.

  3. At the prompt, enter

    DswInventory.exe FSCommands.txt
    

4.3.3 View the Summary Report

The summary results are written to the e:\mySummary.xml file. The following is sample output of a summary report:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 
- <DswInventory GenerationDateTime="8/27/2009 3:10:37 PM" generation="summary" platform="Win32NT" OS="Microsoft Windows NT 5.2.3790 Service Pack 2">
- <folderlist>
- <folder>
- <![CDATA[ e:\
  ]]> 
  </folder>
  </folderlist>
- <list type="Modified">
  <criteria filter="Within Last Day" filecount="31" totalsize="74811" sizeunit="1024" /> 
  </list>
- <list type="Creation">
  <criteria filter="Within Last Day" filecount="31" totalsize="74811" sizeunit="1024" /> 
  </list>
- <list type="EmptyFiles">
  <criteria filter="Empty Files" filecount="11" totalsize="0" sizeunit="0" /> 
  </list>
- <list type="Extension">
  <criteria filter=".10file" filecount="10" totalsize="0" sizeunit="1024" /> 
  <criteria filter=".doc" filecount="1" totalsize="57" sizeunit="1024" /> 
  <criteria filter=".docx" filecount="1" totalsize="57" sizeunit="1024" /> 
  <criteria filter=".exe" filecount="1" totalsize="16" sizeunit="1024" /> 
  <criteria filter=".gif" filecount="1" totalsize="888" sizeunit="1024" /> 
  <criteria filter=".jpeg" filecount="1" totalsize="468" sizeunit="1024" /> 
  <criteria filter=".jpg" filecount="5" totalsize="2569" sizeunit="1024" /> 
  <criteria filter=".ods" filecount="1" totalsize="3" sizeunit="1024" /> 
  <criteria filter=".odt" filecount="4" totalsize="828" sizeunit="1024" /> 
  <criteria filter=".pdf" filecount="1" totalsize="641" sizeunit="1024" /> 
  <criteria filter=".rtf" filecount="1" totalsize="1" sizeunit="1024" /> 
  <criteria filter=".txt" filecount="1" totalsize="0" sizeunit="1024" /> 
  <criteria filter=".xml" filecount="2" totalsize="6" sizeunit="1024" /> 
  <criteria filter=".zip" filecount="1" totalsize="69277" sizeunit="1024" /> 
  </list>
- <list type="Modified">
  <criteria filter="Within Last Day" filecount="3" totalsize="69283" sizeunit="1024" /> 
  <criteria filter="1 Month - 2 Months" filecount="1" totalsize="16" sizeunit="1024" /> 
  <criteria filter="6 Months - 1 Year" filecount="27" totalsize="5512" sizeunit="1024" /> 
  </list>
- <list type="Owner">
  <criteria filter="Administrators" filecount="31" totalsize="74811" sizeunit="1024" /> 
  </list>
- <list type="Length">
  <criteria filter="Less than 1KB" filecount="2" totalsize="2" sizeunit="1024" /> 
  <criteria filter="1KB - 4KB" filecount="1" totalsize="3" sizeunit="1024" /> 
  <criteria filter="4KB - 16KB" filecount="1" totalsize="5" sizeunit="1024" /> 
  <criteria filter="16KB - 64KB" filecount="6" totalsize="193" sizeunit="1024" /> 
  <criteria filter="64KB - 256KB" filecount="1" totalsize="161" sizeunit="1024" /> 
  <criteria filter="256KB - 1MB" filecount="8" totalsize="5170" sizeunit="1024" /> 
  <criteria filter="64MB - 256MB" filecount="1" totalsize="69277" sizeunit="1024" /> 
  </list>
  </DswInventory>

4.3.4 View the Detailed Report

The detailed results are written to the e:\myDetails.xml file. The following is sample output from a detailed report. Omitted entries are replaced by an ellipsis (…).

<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 
- <DswInventory GenerationDateTime="8/27/2009 3:10:37 PM" generation="detailed" platform="Win32NT" OS="Microsoft Windows NT 5.2.3790 Service Pack 2">
- <folderlist>
- <folder>
- <![CDATA[ e:\
  ]]> 
  </folder>
  </folderlist>
- <list type="Modified">
- <criteria filter="Within Last Day" filecount="31" totalsize="74811" sizeunit="1024">
- <information name="Spreadsheet.ods" matchvalue="8/26/2009 7:50:17 PM">
- <![CDATA[ e:\Primary\subfolder\Text Files\Spreadsheet.ods
  ]]> 
  </information>
…
  </criteria>
  </list>
- <list type="Creation">
- <criteria filter="Within Last Day" filecount="31" totalsize="74811" sizeunit="1024">
- <information name="Spreadsheet.ods" matchvalue="8/26/2009 7:50:17 PM">
- <![CDATA[ e:\Primary\subfolder\Text Files\Spreadsheet.ods
  ]]> 
  </information>
…
  </criteria>
  </list>
- <list type="EmptyFiles">
- <criteria filter="Empty Files" filecount="11" totalsize="0" sizeunit="0">
- <information name="10file1.10file" matchvalue="0">
- <![CDATA[ e:\Primary\subfolder\10Files.10file\10file1.10file
  ]]> 
  </information>
…
  </criteria>
  </list>
- <list type="Extension">
- <criteria filter=".10file" filecount="10" totalsize="0" sizeunit="1024">
- <information name="10file1.10file" matchvalue=".10file">
- <![CDATA[ e:\Primary\subfolder\10Files.10file\10file1.10file
  ]]> 
  </information>
…
  </criteria>
- <criteria filter=".doc" filecount="1" totalsize="57" sizeunit="1024">
- <information name="Proposal.doc" matchvalue=".doc">
- <![CDATA[ e:\Primary\subfolder\Text Files\Proposal.doc
  ]]> 
  </information>
  </criteria>
- <criteria filter=".docx" filecount="1" totalsize="57" sizeunit="1024">
- <information name="Advanced&.docx" matchvalue=".docx">
- <![CDATA[ e:\Primary\subfolder\Text Files\Advanced&.docx
  ]]> 
  </information>
  </criteria>
- <criteria filter=".exe" filecount="1" totalsize="16" sizeunit="1024">
- <information name="GimmeFiles.exe" matchvalue=".exe">
- <![CDATA[ e:\Primary\subfolder\GimmeFiles.exe
  ]]> 
…
  </information>
  </criteria>
- <criteria filter=".gif" filecount="1" totalsize="888" sizeunit="1024">
- <information name="poppies1920.gif" matchvalue=".gif">
- <![CDATA[ e:\Primary\subfolder\Pictures\poppies1920.gif
  ]]> 
  </information>
  </criteria>
- <criteria filter=".jpeg" filecount="1" totalsize="468" sizeunit="1024">
- <information name="backtrack.jpeg" matchvalue=".jpeg">
- <![CDATA[ e:\Primary\subfolder\Pictures\backtrack.jpeg
  ]]> 
  </information>
  </criteria>
- <criteria filter=".jpg" filecount="5" totalsize="2569" sizeunit="1024">
- <information name="arctica1920.jpg" matchvalue=".jpg">
- <![CDATA[ e:\Primary\subfolder\Pictures\arctica1920.jpg
  ]]> 
  </information>
  </criteria>
- <criteria filter=".ods" filecount="1" totalsize="3" sizeunit="1024">
- <information name="Spreadsheet.ods" matchvalue=".ods">
- <![CDATA[ e:\Primary\subfolder\Text Files\Spreadsheet.ods
  ]]> 
  </information>
  </criteria>
- <criteria filter=".odt" filecount="4" totalsize="828" sizeunit="1024">
- <information name="Investment Final.odt" matchvalue=".odt">
- <![CDATA[ e:\Primary\subfolder\Text Files\Investment Final.odt
  ]]> 
  </information>
…
  </criteria>
- <criteria filter=".pdf" filecount="1" totalsize="641" sizeunit="1024">
- <information name="dep_stats.pdf" matchvalue=".pdf">
- <![CDATA[ e:\Primary\subfolder\Text Files\dep_stats.pdf
  ]]> 
  </information>
  </criteria>
- <criteria filter=".rtf" filecount="1" totalsize="1" sizeunit="1024">
- <information name="Another Document.rtf" matchvalue=".rtf">
- <![CDATA[ e:\Primary\subfolder\Text Files\Another Document.rtf
  ]]> 
  </information>
  </criteria>
- <criteria filter=".txt" filecount="1" totalsize="0" sizeunit="1024">
- <information name="Some Document.txt" matchvalue=".txt">
- <![CDATA[ e:\Primary\subfolder\Text Files\Some Document.txt
  ]]> 
  </information>
  </criteria>
- <criteria filter=".xml" filecount="2" totalsize="6" sizeunit="1024">
- <information name="myDetails.xml" matchvalue=".xml">
- <![CDATA[ e:\myDetails.xml
  ]]> 
  </information>
…
  </criteria>
- <criteria filter=".zip" filecount="1" totalsize="69277" sizeunit="1024">
- <information name="Text Files.zip" matchvalue=".zip">
- <![CDATA[ e:\Primary\subfolder\Text Files.zip
  ]]> 
  </information>
  </criteria>
  </list>
- <list type="Modified">
- <criteria filter="Within Last Day" filecount="3" totalsize="69283" sizeunit="1024">
- <information name="Text Files.zip" matchvalue="8/26/2009 4:01:18 PM">
- <![CDATA[ e:\Primary\subfolder\Text Files.zip
  ]]> 
  </information>
…
  </criteria>
- <criteria filter="1 Month - 2 Months" filecount="1" totalsize="16" sizeunit="1024">
- <information name="GimmeFiles.exe" matchvalue="7/17/2009 2:00:44 PM">
- <![CDATA[ e:\Primary\subfolder\GimmeFiles.exe
  ]]> 
  </information>
  </criteria>
- <criteria filter="6 Months - 1 Year" filecount="27" totalsize="5512" sizeunit="1024">
- <information name="Spreadsheet.ods" matchvalue="12/16/2008 8:29:00 AM">
- <![CDATA[ e:\Primary\subfolder\Text Files\Spreadsheet.ods
  ]]> 
  </information>
…
  </criteria>
  </list>
- <list type="Owner">
- <criteria filter="Administrators" filecount="31" totalsize="74811" sizeunit="1024">
- <information name="myDetails.xml" matchvalue="Administrators">
- <![CDATA[ e:\myDetails.xml
  ]]> 
  </information>
…
  </criteria>
  </list>
- <list type="Length">
- <criteria filter="Less than 1KB" filecount="2" totalsize="2" sizeunit="1024">
- <information name="Another Document.rtf" matchvalue="7">
- <![CDATA[ e:\Primary\subfolder\Text Files\Another Document.rtf
  ]]> 
  </information>
…
  </criteria>
- <criteria filter="1KB - 4KB" filecount="1" totalsize="3" sizeunit="1024">
- <information name="Spreadsheet.ods" matchvalue="2274">
- <![CDATA[ e:\Primary\subfolder\Text Files\Spreadsheet.ods
  ]]> 
  </information>
  </criteria>
- <criteria filter="4KB - 16KB" filecount="1" totalsize="5" sizeunit="1024">
- <information name="myDetails.xml" matchvalue="4597">
- <![CDATA[ e:\myDetails.xml
  ]]> 
  </information>
  </criteria>
- <criteria filter="16KB - 64KB" filecount="6" totalsize="193" sizeunit="1024">
- <information name="Proposal.doc" matchvalue="57856">
- <![CDATA[ e:\Primary\subfolder\Text Files\Proposal.doc
  ]]> 
  </information>
…
  </criteria>
- <criteria filter="64KB - 256KB" filecount="1" totalsize="161" sizeunit="1024">
- <information name="Eastern Fire.jpg" matchvalue="164026">
- <![CDATA[ e:\Primary\subfolder\Pictures\Eastern Fire.jpg
  ]]> 
  </information>
  </criteria>
- <criteria filter="256KB - 1MB" filecount="8" totalsize="5170" sizeunit="1024">
- <information name="Rough (Formated).odt" matchvalue="782959">
- <![CDATA[ e:\Primary\subfolder\Text Files\Rough (Formated).odt
  ]]> 
  </information>
- <information name="dep_stats.pdf" matchvalue="655518">
…
  </criteria>
- <criteria filter="64MB - 256MB" filecount="1" totalsize="69277" sizeunit="1024">
- <information name="Text Files.zip" matchvalue="70938669">
- <![CDATA[ e:\Primary\subfolder\Text Files.zip
  ]]> 
  </information>
  </criteria>
  </list>
  </DswInventory>