tsm api sample

Upload: 12053345

Post on 04-Jun-2018

224 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/13/2019 Tsm API Sample

    1/18

    The Tivoli Storage Manager API SampleProgramSetup and Use

    By Ron McCracken

    Version 1.0

  • 8/13/2019 Tsm API Sample

    2/18

  • 8/13/2019 Tsm API Sample

    3/18

    iii

    Copyright Notice

    Copyright IBM Corporation 2008. All rights reserved. May only be used pursuant

    to a Tivoli Systems Software License Agreement, an IBM Software License

    Agreement, or Addendum for Tivoli Products to IBM Customer or License

    Agreement. No part of this publication may be reproduced, transmitted,

    transcribed, stored in a retrieval system, or translated into any computer

    language, in any form or by any means, electronic, mechanical, magnetic,

    optical, chemical, manual, or otherwise, without prior written permission ofIBM Corporation. IBM Corporation grants you limited permission to make hardcopy

    or other reproductions of any machine -readable documentation for your own use,

    provided that each such reproduction shall carry the IBM Corporation copyright

    notice. No other rights under copyright are granted without prior written

    permission of IBM Corporation. The document is not intended for prod uction and

    is furnished as is without warranty of any kind. All warranties on thisdocument are hereby disclaimed, including the warranties of merchantability and

    fitness for a particular purpose.

    U.S. Government Users Restricted Rights -- Use, duplication or disclosure

    restricted by GSA ADP Schedule Contract with IBM Corporation.

    Trademarks

    IBM, the IBM logo, Tivoli, the Tivoli logo, AIX, Cross -Site, NetView, OS/2,

    Planet Tivoli, RS/6000, Tivoli Certified, Tivoli Enterprise, Tivoli Enterprise

    Console, Tivoli Ready, and TME are trademarks or registered trademarks of

    International Business Machines Corporation or Tivoli Systems Inc. in the

    United States, other countries, or both.

    Lotus is a registered trademark of Lotus Development Corporation.

    Microsoft, Windows, Windows NT, and the Windows logo are trademarks of

    Microsoft Corporation in the United States, other countries, or both.

    UNIX is a registered trademark of The Open Group in the United States and other

    countries.

    C-bus is a trademark of Corollary, Inc. in the United States, other countries,

    or both.

    PC Direct is a trademark of Ziff Communications Company in the United States,

    other countries, or both and is used by IBM Corporation under license.

    ActionMedia, LANDesk, MMX, Pentium, and ProShare are t rademarks of Intel

    Corporation in the United States, other countries, or both. For a complete listof Intel trademarks, see http://www.intel.com/sites/corporate/trademarx.htm.

    SET and the SET Logo are trademarks owned by SET Secure Electronic Transaction

    LLC. For further information, see http://www.setco.org/aboutmark.html.

    Java and all Java-based trademarks and logos are trademarks or registered

    trademarks of Sun Microsystems, Inc. in the United States and other countries.

    Other company, product, and serv ice names may be trademarks or service marks of

    others.

    Notices

    References in this publication to Tivoli Systems or IBM products, programs, or

    services do not imply that they will be available in all countries in which

    Tivoli Systems or IBM operates. Any reference to these products, programs, or

    services is not intended to imply that only Tivoli Systems or IBM products,

    programs, or services can be used. Subject to valid intellectual property or

    other legally protectable right of Tivoli Systems or IBM, any functionally

    equivalent product, program, or service can be used instead of the referenced

    product, program, or service. The evaluation and verification of operation in

    conjunction with other products, except those expressly designated by Tivoli

    Systems or IBM, are the responsibility of the user. Tivoli Systems or IBM may

    have patents or pending patent applications covering subject matter in this

    document. The furnishing of this document does not give you any license to

    these patents. You can send license inquiries, in writing, to the IBM Director

    of Licensing, IBM Corporation, North Castle Drive, Armonk, New York 10504 -1785,

    http://www.setco.org/aboutmark.htmlhttp://www.setco.org/aboutmark.html
  • 8/13/2019 Tsm API Sample

    4/18

    iv

    U.S.A.

  • 8/13/2019 Tsm API Sample

    5/18

    v

    About the Tivoli Field Guides

    Tivoli developers, testers, and architects

    http://www.ibm.com/software/sysmgmt/products/support/Field_Guides.htmlhttp://www.ibm.com/software/sysmgmt/products/support/Field_Guides.html
  • 8/13/2019 Tsm API Sample

    6/18

    vi

    mailto:[email protected]
  • 8/13/2019 Tsm API Sample

    7/18

    vii

    Table of Contents

    SETUP AND USE ........................................................................................... I

    SETUP AND USE .......................................................................................... 1

    CLIENTCONFIGURATION................................................................................................. 1

    THEINTERACTIVE,SINGLE-THREADED APPLICATION PACKAGE(DAPISMP)...................... 3

    SUMMARY...................................................................................................................... 10

  • 8/13/2019 Tsm API Sample

    8/18

  • 8/13/2019 Tsm API Sample

    9/18

    1

    The Tivoli Storage Manager API Sample

    ProgramSetup and Use

    Client Configuration

  • 8/13/2019 Tsm API Sample

    10/18

    2

    commmethod tcpip

    tcpport 1500

    TCPSERVERADDRESS 9.48.200.99

  • 8/13/2019 Tsm API Sample

    11/18

    3

    TSM> REGISTER NODE APITEST apipswd

    The Interactive, Single-Threaded Application

    Package (dapismp)

  • 8/13/2019 Tsm API Sample

    12/18

    4

  • 8/13/2019 Tsm API Sample

    13/18

    5

  • 8/13/2019 Tsm API Sample

    14/18

    6

    Node Name Platform Policy Domain Days Since

    Name Last Access

    ------------------- -------------- ----------

    APITEST Sample -- STANDARD

  • 8/13/2019 Tsm API Sample

    15/18

    7

  • 8/13/2019 Tsm API Sample

    16/18

    8

  • 8/13/2019 Tsm API Sample

    17/18

    9

    TSM> select * from backups where node_name=APITEST

    select * from backups where node_name='APITEST'

    ANR2963W This SQL query may produce a very large result table, or may

    require a significant amount of time to compute.

    NODE_NAME: APITESTFILESPACE_NAME: C:

    FILESPACE_ID: 1

    STATE: ACTIVE_VERSION

    TYPE: FILE

    HL_NAME: \temp\

    LL_NAME: setup.log

    OBJECT_ID: 864938

    BACKUP_DATE: 2008-10-20 09:49:07.000000

    DEACTIVATE_DATE:

    OWNER:

    CLASS_NAME: STANDARD

  • 8/13/2019 Tsm API Sample

    18/18

    10

    TRACEFLAGS API,api_detail,appl,config,timestamp,verbdetail

    TRACEFILE 'C:\Program Files\Tivoli\TSM\api\SAMPRUN\trace.log'

    Summary