Query-include-exclude operation


The query-include-exclude operation displays a list of include-exclude statements in the order in which they are processed during the backup and archive operations. The list displays the type of the option, the scope of the option (archive, all, and so on), and the name of the source file.

The following table describes the elements for the adapter request:

 Adapter request elements for the query-include-exclude operation

The following figure shows a sample adapter request for the query-include-exclude operation:

Sample adapter request for the query-include-exclude operation

<tsm-request>
 <operation-name>query-include-exclude</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-arguments>
     <test-pattern>a*.*</test-pattern>
   </command-arguments>
 </command-request>
</tsm-request>


The following figure shows the adapter response for the sample request:

Sample adapter response for the query-include-exclude operation

<tsm-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>dsmc query inclexcl a*.*</command>
       <line-count>10</line-count>
       <execution-milliseconds>2343</execution-milliseconds>
       <exit-code>0</exit-code>
       <status>success</status>
     </metadata>
     <output>
       <line index="1">IBM Tivoli Storage Manager</line>
       <line index="2">Command Line Backup/Archive Client Interface</line>
       <line index="3">  Client Version 5, Release 5, Level 0.0  </line>
       <line index="4">  Client date/time: 10/07/2008 15:50:00</line>
       <line index="5">(c) Copyright by IBM Corporation and other(s) 1990, 2007.         All Rights Reserved.</line>
       <line index="6">Node Name: D-13096</line>
       <line index="7">Session established with server SERVER1:         Linux/i386</line>
       <line index="8">  Server Version 5, Release 5, Level 0.0</line>
       <line index="9">  Server date/time: 10/07/2008 15:47:31  Last access:         10/07/2008 15:37:27</line>
       <line index="10">Compiled pattern: *\...\a*.*</line>
     </output>
   </command-output>
 </commands-output>
</tsm-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*