hi Eric,
you can use the sample program provided with the API. I think you are on HP.
Is that right? If it is, the sample API program is under /usr/adsm/api/sample.
compile the make file
$ make -f makefile.hp
This will create an executable name 'dapismp'
set the environment vars
set DSMI_DIR, and DSMI_CONFIG
start the program 'dapismp'
- signon(0) with the correct nodename, password. Just hit enter for other
options. If signon successful, you will get the value 1 for the handle.
- choose Utilities(7) and Backup Delete(1)
Filespace: /adsmorc
Highlevel : /*
Lowlevel : /<backup piece name>
Just hit enter for the rest.
In order to delete these backup pieces, you have to have a special management
class. Please refer to the agent user manual for how to setup the management
class.
I just want to remind you that this is only a sample program for the API
developer, not a supported utility.
regards,
Thiha
>How can I delete those expired objects from ADSM? Can I do it with a
>self-developed API program? If so, is there a sample as I know nothing
>about API. I cannot run "delete filespace" as not all the backup under
>that filespace & nodename are to be expired. I anticipate this will happen
>to me again, your help will be greatly appreciated. Thank you.
>Regards,
>Eric Tang / Hong Kong / IBM @ IBMHK
>Technical Services, Strategic Outsourcing,
>IBM Greater China Group
>Tel: (852)-2105-2119, Fax: (852)-2861-2493
>Notes: Eric KF Tang/Hong Kong/IBM@IBMHK
>Internet : tangeric@ hk1.ibm.com
|