expire inventory automatic

Bharanij

ADSM.ORG Member
Joined
Jun 18, 2016
Messages
159
Reaction score
2
Points
0
PREDATAR Control23

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.
ccgizh


http://prntscr.com/ccgizh
 
PREDATAR Control23

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.
 
PREDATAR Control23

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.

is this ok ?
define schedule Expire_Inv type=administrative cmd=”expire inventory” active=yes starttime=00:30
 
PREDATAR Control23

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
 
PREDATAR Control23

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.
 
PREDATAR Control23

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.


i cut copy paste issue came after that i typed the comments and its work
 
PREDATAR Control23

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.
 
PREDATAR Control23

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.


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:
PREDATAR Control23

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.
 
PREDATAR Control23

i cut copy paste issue came after that i typed the comments and its work
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:
 
Top