Author Topic: arsadmin store question  (Read 5707 times)

Michel de Kraker

  • Full Member
  • ***
  • Posts: 164
    • View Profile
    • SYSBLOX , AIX consultancy
arsadmin store question
« on: January 27, 2011, 06:53:06 AM »
Hi All,

I want to store multiple files back into TSM with arsadmin store command. (aix system)
I want to retrieve all objects from the tsm server and store them in a new SSAM server.
We are talking about 24 million objects.

The syntax is:

arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx  FILE1 FILE2 FILE3

Suppose i want to store 1500 objects i can do this with a for loop:

for i in `cat /tmp/objects`
do
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx  $i
done

Is there another "more efficient" way to do this? With the example above arsadmin store is executed 1500 times. This seems not efficient.
Perhaps there is a way to do something like the following:

arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx  `cat /tmp/objects`

Thx for any hints.

Michel.

Michel de Kraker

  • Full Member
  • ***
  • Posts: 164
    • View Profile
    • SYSBLOX , AIX consultancy
Re: arsadmin store question
« Reply #1 on: February 15, 2011, 01:47:06 AM »
Hi All,

anybody?

Thx.

Michel.

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: arsadmin store question
« Reply #2 on: February 15, 2011, 02:57:45 AM »
Hello Michel,

Well, it could be possible that this method works. You need to test it with a few files and check that all pointers are correctly point to the correct document.

Otherwise for your "script" problem

Code: [Select]
for i in `cat /tmp/objects`
do
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx  $i
done

or

Code: [Select]
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx  `cat /tmp/objects`
I would suggest the following:

Code: [Select]
cat /tmp/objects | xargs arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx
So it will fill as much as possible the command line with files without running into the unfamous "Too many files" shell error.

Cheers,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

shabarish

  • Guest
Re: arsadmin store question
« Reply #3 on: February 17, 2018, 02:36:32 AM »
Hi  Alessandro Perucchi,

                                   If we  are in need to retrieve documents using arsadmin retrieve command my questions are:


            1. Can we retrieve whole documents  under one application group at a time because, As we need to specify the names of documents in the storage (example:1FAAA) in the arsadmin retrieve command is a big challenge for us ,as  single  application group  may contains So many documents.
            2. Even if we try with linux shell script as our environment is linux but its not easy to run arsadmin command that many times example 1500 times is a performance affected issue.
            3.And adding to this we want to retrieve all the filenames  (1FAA) under one application group from querying the  database is that appropriate way or else any alternate is suggested by you Sir..?