Search Harvest Projects for Keywords
search cancel

Search Harvest Projects for Keywords

book

Article ID: 270072

calendar_today

Updated On:

Products

CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

We are looking for a way to search all of our Harvest projects for a keyword

How do we accomplish this?

Environment

Release : 14.0 and up

Resolution

The "hsv" command line utility can be used to search a specific project and state for a specific keyword.  Here is where you can read more about this command: hsv Command-Select Version

The limitation of the command is that it can search only one project and state for only one keyword.  If you want to search a list of different projects for a keyword or list of keywords, the solution is to build a Windows batch script that can read a list of projects and keywords, and use the hsv command for each combination of a project, state and keyword.

Attached is an example of what this type of script might look like. 

It is offered as-is, and Broadcom Support cannot provide customizations or support beyond basic questions and answers about how to use it. 

The user is free to use this idea as a starting point and customize to make it work for their particular set of requirements.

This script is experimental.  Broadcom is not responsible for the results of the script.

Additional Information

For the viewpath, if you are searching across many projects that do not all share the same repository, it can be difficult to figure out the viewpath to use with the command.  However, if you use "\\" as your viewpath, it works no matter the project or repository name.  For example:

find-keywords-in-projects.bat <my broker name> "\\" <userid> <password>

Attachments

1689860729284__find-keywords-in-projects.zip get_app