1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

expire inventory automatic

Discussion in 'TSM Server' started by Bharanij, Aug 31, 2016.

  1. Bharanij

    Bharanij ADSM.ORG Member

    Joined:
    Jun 18, 2016
    Messages:
    67
    Likes Received:
    2
    hi guys,

    i have set data retention policy for my client backup schedule now issue is data is till in tapes. should i need to create expire inventory for old and inactive data crossed 30day as per policy? if yes how to define automatic expire inventory on tsm server pls guide me. [​IMG]

    http://prntscr.com/ccgizh
     
  2.  
  3. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,814
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    All you need is to create a daily admin schedule with the command "expire inventory". Run this schedule AFTER a FULL DB Backup, and copy to tape routines. In other words, the last step in your daily maintenance routine.
     
  4. Bharanij

    Bharanij ADSM.ORG Member

    Joined:
    Jun 18, 2016
    Messages:
    67
    Likes Received:
    2
    is this ok ?
    define schedule Expire_Inv type=administrative cmd=”expire inventory” active=yes starttime=00:30
     
  5. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,814
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    Yes
     
  6. Bharanij

    Bharanij ADSM.ORG Member

    Joined:
    Jun 18, 2016
    Messages:
    67
    Likes Received:
    2
    TSMSERVER> define schedule Expire_Inv type=administrative cmd=”expire inventory" active=yes startdate=today starttime=01:00:00 dayofweek=any
    ANR2004E Missing value for keyword parameter - inventory".

    getting error
     
  7. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,814
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    Tried it on TSM 6.3.5.1 and 7.1.5.2 systems, and no problem:
    Code:
    tsm: TSMTest>define schedule Expire_Inv type=administrative cmd=”expire inventory" active=yes startdate=today starttime=01:00:00 dayofweek=any
    
    ANR2577I Schedule EXPIRE_INV defined.
    
    Did you copy and paste from a source? Try typing the command.
    What is your TSM server version? This may be a bug with your version.

    Try removing the "dayofweek" switch as this is the default for classic scheduling.
     
  8. Bharanij

    Bharanij ADSM.ORG Member

    Joined:
    Jun 18, 2016
    Messages:
    67
    Likes Received:
    2

    i cut copy paste issue came after that i typed the comments and its work
     
  9. TaSMania

    TaSMania ADSM.ORG Member

    Joined:
    Nov 17, 2015
    Messages:
    47
    Likes Received:
    1
    Sorry to continue on this thread.
    I need same help.
    I have 3 servers that supposed to run every sunday.
    When I query actlog on them I got different command on two and one with nothing.

    server 1:
    03/19/2017 02:30:28 ANR2750I Starting scheduled command DAILY_INVENTORY_EXPIRATION ( expire inventory ). (SESSION: 37241)
    03/19/2017 02:30:28 ANR2017I Administrator TSMMANAGER issued command: EXPIRE INVENTORY (SESSION: 37241)

    server 2:
    03/19/2017 02:00:01 ANR2017I Administrator ADMIN issued command: EXPIRE INVENTORY node=expiregrp type=all resource=8 (SESSION: 10322)

    server 3: is missing the expiration schedule, how do I go about setting this one up? Use the DEFINE SCHEDULE command above?

    I don't understand why server 1 and 2 are different.
     
  10. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,814
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US

    Use the define schedule to create the expire inventory. 1 and 2 are different since the account that created the admin schedule was different to begin with. I am guessing that you inherited the system. If I were you, I would deleted all the admin schedules and recreate them uniformly.
     
    Last edited: Sep 5, 2017
  11. TaSMania

    TaSMania ADSM.ORG Member

    Joined:
    Nov 17, 2015
    Messages:
    47
    Likes Received:
    1
    You are correct. I inherited the responsibility for these two after he got canned.
    Question was asked because it wasn't doing its inventory when the schedule is there. Found out it was not active.
    I also agree on refining the schedule so that they match.
    I guess answer I was looking for is Q SCH type=ADMIN f=d
    Thanks for your help.
     
  12. Bharanij

    Bharanij ADSM.ORG Member

    Joined:
    Jun 18, 2016
    Messages:
    67
    Likes Received:
    2
    that command is not working in gui but same command working in cmd

    Storage Management Server for Windows - Version 7, Release 1, Level 7.0

    TSM:TSMSERVER>
    define schedule Expire_Inv type=administrative cmd="expire inventory" active=yes startdate=today starttime=01:00:00 dayofweek=any
    ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE SCHEDULE
    Expire_Inv type=administrative cmd='expire inventory' active=yes startdate=to-
    day starttime=01:00:00 dayofweek=any
    ANR2017I Administrator SERVER_CONSOLE issued command: EXPIRE INVENTORY
    ANR2577I Schedule EXPIRE_INV defined.
    TSM:TSMSERVER>
    ANR2034E SELECT: No match found using this criteria.
    ANR2034E SELECT: No match found using this criteria.
    ANR2034E SELECT: No match found using this criteria.
    ANR0405I Session 34 ended for administrator IBM-OC-TSMSERVER (DSMAPI).
    ANR0405I Session 39 ended for administrator IBM-OC-TSMSERVER (DSMAPI).
    ANR0407I Session 43 started for administrator IBM-OC-TSMSERVER (DSMAPI)
    (Tcp/Ip TSMSERVER(52628)).
    TSMSERVER> q schedule EXPIRE_INV type=administrative format=detailed

    Schedule Name: EXPIRE_INV
    Description:
    Command: expire inventory
    Priority: 5
    Start Date/Time: 2017-09-01, 01:00:00
    Duration: 1 Hour(s)
    Maximum Run Time (Minutes): 0
    Schedule Style: Classic
    Period: 1 Day(s)
    Day of Week: Any
    Month:
    Day of Month:
    Week of Month:
    Expiration:
    Active?: Yes
    Last Update by (administrator): SERVER_CONSOLE
    Last Update Date/Time: 2017-09-01, 20:05:05
    Managing profile:
     

Share This Page