Query-session operation


The query-session operation displays information about the session including the current node name, when the session was established, server information, and server connection information.

The following table describes the elements for the adapter request:

 Adapter request elements for the query-session operation

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

Sample adapter request for the query-session operation

<tsm-request>
 <operation-name>query-session</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
 </command-request>
</tsm-request>

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

Sample adapter response for the query-session operation

<tsm-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>dsmc query session</command>
       <line-count>19</line-count>
       <execution-milliseconds>1406</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/10/2008 18:45:53</line>
       <line index="5">(c) Copyright by IBM Corporation and other(s) 1990, 2007.         All Rights Reserved.</line>
       <line index="6">Node Name: L-16862</line>
       <line index="7">Session established with server L-16862_SERVER1:         Windows</line>
       <line index="8">  Server Version 5, Release 5, Level 0.0</line>
       <line index="9">  Server date/time: 10/10/2008 18:45:53  Last access:         10/10/2008 18:40:36</line>
       <line index="10">TSM Server Connection Information</line>
       <line index="11">Server Name.............: L-16862_SERVER1</line>
       <line index="12">Server Type.............: Windows</line>
       <line index="13">Archive Retain Protect..: "No"</line>
       <line index="14">Server Version..........: Ver. 5, Rel. 5, Lev.         0.0</line>
       <line index="15">Last Access Date........: 10/10/2008 18:40:36</line>
       <line index="16">Delete Backup Files.....: "No"</line>
       <line index="17">Delete Archive Files....: "Yes"</line>
       <line index="18">Node Name...............: L-16862</line>
       <line index="19">User Name...............: </line>
     </output>
   </command-output>
 </commands-output>
</tsm-response>

 

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