When users want to delete a snapshot, Harvest provides 2 methods for doing this. The first is to login to the Administrator Tool, navigate to your project, and in the “View Snapshot” state, right click on the name of your snapshot and delete it. The second is a command line utility called “hdelss”. But what if users want this functionality from within Workbench?
CA Harvest SCM all versions and platforms
This can be done with the following steps:
sqlplus userid@servicename/password @"%CA_SCM_HOME%\Database\EnableSysVarPw.sql"
sqlcmd -d dbname -i "%CA_SCM_HOME%\Database\EnableSysVarPw_sqlserver.sql" -U userid -P password -e -b -o log_file.txt
sqlplus userid@servicename/password @"$CA_SCM_HOME/Database/EnableSysVarPw.sqlAfter executing the script you will need to stop and restart the broker.
echo off(Command Reference - hdelss Command-Delete Snapshot View)
set _broker=%1
set _project=%2
set _userid=%3
set _password=%4
set _snapshot=%5
for /f "tokens=2 delims==." %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I
set log_filename=hdelss_%datetime%.log
echo %date% %time% -- User %_userid% is deleting snapshot %_snapshot% > %log_filename%
echo. >> %log_filename%
hdelss %_snapshot% -b %_broker% -en %_project% -usr %_userid% -pw %_password% -oa %log_filename%
type %log_filename%
This method is offered as an example only and should be used as a starting point with which to develop your own method. Broadcom does not offer support or enhancement for this suggested approach.