Description
The cpmiquerybin
connects to a specified database, runs a user-defined query and shows the query results. The results can be a collection of Firewall sets or a tab-delimited list of specified fields from each retrieved object. The default database of the query tool is based on the shell environment settings.
To connect to a Domain Management Server database, run mdsenv and define the necessary environment variables. Use the Domain Management Server name or IP address as the first parameter.
Note - The |
Syntax
|
Parameters
Parameter |
Description |
---|---|
|
Query result in one of these formats:
|
|
Name of the database file in quotes. For example, |
|
Name of the database table that contains the data. |
|
One or more query strings in a comma separated list. Use the null You can use wildcard character (*) as a replacement for one or more matching characters in your query string. |
|
If you use the |
You can see complete documentation of the cpmiquerybin
utility, with the full query syntax, examples and a list of common attributes in sk65181.
Return Values
0 - Query returns data successfully
1 - Query does not return data or there is a query syntax error
Example
|
This example shows the names of the currently defined network objects.