User Guide > ilmcmd > Search
  

Search

Searches for source definitions, masking rules, policies, and plans.
You can search for the following object types in the repository:
You cannot use ilmcmd to search data generation objects.
The ilmcmd search command uses the following syntax:
ilmcmd
<-Search | -s>
<-ObjectType | -ot> object_type
<-Project | -p> project_name
<-DataSourceName | -dsn> schema_name
<-NamePattern | -np> name_pattern
[-Help | -h]
The following table describes the ilmcmd search options and arguments:
Option
Argument
Description
-ObjectType
-ot
object_type
Required. The type of object to export. For example, you can enter "Group" or "Project." If the object type contains a space in it, remove the space when you enter the argument.
-Project
-p
folder_name
Required to search for a source definition, plan, entity, group, or template. The name of the project that contains the object to search for.
-DataSourceName
-dsn
schema_name
Required to search for a source definition. The name of the schema that contains the source definition.
-NamePattern
-np
name_pattern
Required. The name pattern. Use the asterisk (*) character as a wild card. For example, the name pattern Rule_C* returns the following rules:
  • - Rule_Customer
  • - Rule_CustID
-Help
-h
n/a
Optional. Displays help for the command.

Search Examples

Searching for a Masking Rule

The following sample command searches for rules that match the name pattern Rule*:
ilmcmd -s -ot Rule -np Rule.*
The sample command returns the following output:
Rule_Customer
Rule_Ticket

Searching for a Policy

The following sample command searches for policies that match the name pattern CUST*:
ilmcmd -s -ot Policy -np CUST.*
The sample command returns the following output:
CUSTOMER
CUST_COUPONS