ADSM-L

Re: Deleting archive data using command line client

2005-03-23 15:20:11
Subject: Re: Deleting archive data using command line client
From: Richard Sims <rbs AT BU DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 23 Mar 2005 15:19:46 -0500
On Mar 23, 2005, at 2:26 PM, Jurjen Oskam wrote:

On Wed, Mar 23, 2005 at 10:37:24AM -0500, Richard Sims wrote:

  dsmc query archive -des="gl-2004*" -subdir=yes /<FilesystemName>/

This should turn up all files and directories which
employed that Description.

Hmm, that doesn't work as I expect:

# dsmc query archive -des="pint-2004*" -subdir=yes
/oracle/app/oracle/admin/pint/arch/
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 3, Level 0.0
  Client date/time: 03/23/05   20:11:03
(c) Copyright by IBM Corporation and other(s) 1990, 2004. All Rights
Reserved.

Node Name: TRIPROD1
Session established with server SERVER1: AIX-RS/6000
  Server Version 5, Release 3, Level 0.2
  Server date/time: 03/23/05   20:11:03  Last access: 03/23/05
20:04:59

ANS1092W No files matching search criteria were found

... but see http://www.stupendous.org/dsmwebcl.jpg for a screenshot of
the
Web-client showing many archives that do match the wildcard. All those
archives do not contain any files, though.

The following command:

# dsmc query archive -des="pint-2005*" -subdir=yes
/oracle/app/oracle/admin/pint/arch/

... does result in many files being shown (but no directories):

IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 3, Level 0.0
  Client date/time: 03/23/05   20:19:10
(c) Copyright by IBM Corporation and other(s) 1990, 2004. All Rights
Reserved.

Node Name: TRIPROD1
Session established with server SERVER1: AIX-RS/6000
  Server Version 5, Release 3, Level 0.2
  Server date/time: 03/23/05   20:19:10  Last access: 03/23/05
20:18:26

             Size  Archive Date - Time    File - Expires on -
Description
             ----  -------------------
-------------------------------
         3,072  B  03/08/05   09:29:17
/oracle/app/oracle/admin/pint/arch/pint_1_22521.rdo 03/23/05
pint-20050308092917
         4,096  B  03/08/05   09:59:56
/oracle/app/oracle/admin/pint/arch/pint_1_22522.rdo 03/23/05
pint-20050308095955
    10,486,272  B  03/08/05   10:30:32
/oracle/app/oracle/admin/pint/arch/pint_1_22523.rdo 03/23/05
pint-20050308103032
    10,486,272  B  03/08/05   10:30:33
/oracle/app/oracle/admin/pint/arch/pint_1_22524.rdo 03/23/05
pint-20050308103032
        [... and so on ...]

Jurjen -

You're not seeing directories in your query results because, according
to the provided info, you're already specifying the full path to the
lowest level directory containing the files, rather than specifying a
higher position in the path. TSM has nothing left to show but the files
therein. My original response suggested the ultimate high level: the
file system name, which should then show all your archived directories
and files within it. At a minimum, specify one higher directory level.

   Richard Sims