How to determine the list of volumes containing the latest cycle of a backup
Posted by Sven Koester, Last modified by Sven Koester on 01 October 2008 8:00
Procedure for Mac, Sun, Linux:

1. Download the file
      http://www.archiware.com/downloads/indexops.xotcl
2. Open a terminal and go to the PresSTORE home directory, e.g.
      cd /usr/local/aw
3. Stop the PresSTORE server
       ./stop-server
4. Replace the file module/tcl/cli/indexops.xotcl
       with the downloaded one
5. Start the PresSTORE server
       ./start-server
6. From the GUI, identify the plan's Id and the clients which it backs up
7. Execute the following command
      bin/nsdchat -c cli::index::backup::getcycles client_name plan_id
8. Identify the Id of the latest cycle
9. Execute the following command
       bin/nsdchat -c cli::index::backup::getvolumes client_name plan_id cycle_id

This will return the volume Ids.

Please replace client_name, plan_id and cycle_id with the actual values.



Procedure for Windows:

1. Download the file
       http://www.archiware.com/downloads/indexops.xotcl
2. From the Start menu stop PresSTORE by calling
       Start > Programs > ARCHIWARE > remove PresSTORE from services
3. Replace the file C:\Program Files\ARCHIWARE\PresSTORE\modules\tcl\cli\indexops.xotcl
       with the newly downloaded file.
4. From the Start menu start PresSTORE by calling
       Start > All Programs > ARCHIWARE > add PresSTORE to services
5. Start a CMD window and change to the PresSTORE Directory
       c:
       cd C:\Program Files\ARCHIWARE\PresSTORE
6. Execute the following command and idetnify the Id of the latest cycle
       bin\nsdchat.exe -s awsock:/user:passw@localhost:9001 -c cli::index::backup::getcycles client_name plan_id
8. Execute the following command
       bin\nsdchat.exe -s awsock:/user:passw@localhost:9001 -c cli::index::backup::getvolumes client_name plan_id cycle_id
This will return the volume Ids.

Please replace client_name, plan_id and cycle_id with the actual values, and adjust the port number according to your installation`s base port number + 1001.


Example:

panther:/usr/local/aw root# bin/nsdchat -c ::cli::index::backup::getcycles localhost 10001

Cycle ID:   Creation Date:
----------  -----------------------------
1184758653  Wed Jul 18 13:37:33 CEST 2007

panther:/usr/local/aw root# bin/nsdchat -c cli::index::backup::getvolumes localhost 10001 1184758653
10091

So the volume containing the latest backup is 10091.
(910 vote(s))
Helpful
Not helpful

Comments (2)
Jordan Soles
22 February 2016 6:17
Does this still work with P5.3.0? Getting invalid command name "cli::index::backup::getcycles" and cannot download that file anymore.
Andre Kuehnemund
09 May 2016 17:20
The above command dates back to P2 and is now OBSOLETE. One of the reasons being that P5 handles indexes differently. Instead of there being separate backup indexes for each backup cycle, P5 manages backup cycles all in a single backup index database per client.
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).