Working With ProjectInspector

ProjectInspector enables you to query the contents of projects. It does not require signon and it does not make a database connection. ProjectInspector is designed to be incorporated in automation shell scripts and for ad hoc queries. If can be run against projects created using previous releases of PeopleTools.

Use the following syntax: This has the command line:

ProjectInspector -PRJ <project file> [-TY <type name [‘;’ type name]* >]
[-N <instance name [‘;’ instance name]* >][-L N | C | T][-TL] [?]
Parameter Description

-PRJ

Path name of the project file to be scanned. There is no default. If just a name is specified, the program checks in the current directory.

-TY

One or more object type names to be listed, delimited by a semicolon character (;).

If not specified, all types are removed.

-N

A list of names of instances to be removed or retained in the form type:name0.name1.name2.name3 where each name is delimited by a semicolon (;) character. If not specified, all instances are removed or retained consistent with any -TY value.

-L

Specifies the listing format and can be either N, T or C.

  • N means list the types and names of all objects with one object per line.

  • T means list the types and counts of all objects with one type per line.

  • (Default) C means list just the number of objects as a single integer.

The –N and –T arguments can be used in the same command provided the types do not overlap. Specifying the same types in an –N name argument as in a –T argument causes an error.

-TL

Lists the valid type names, numeric identifiers, and descriptions.

-?

Shows usage details.

Example: ProjectInspector

Entering the following lists the number of subscription PeopleCode and message channel definitions in the project, or a null string if there were none.

ProjectInspector -PRG PRJ8979874.XML -TY SubscriptionPPC ; MessageChannel -T T