search_patches
Searches patches from the ARU site or software library with the specified search criteria.
Format
emcli search_patches [-swlib] [-patch_name="patch_name"] [-product="product_id" [-include_all_products_in_family]] [-release="release_id"] [-platform="platform_id" | -language="language_id"] [-type="patch | patchset"] [-noheader] [-script | -xml | -format= [name:<pretty|script|csv>]; [column_separator:"column_sep_string"]; [row_separator:"row_sep_string"]; ] [ ] indicates that the parameter is optional
Options
-
swlib
Searches patches in the software library if this option is provided, whether the current connection mode is online or offline.
-
patch_name
Patch name, number, or Sun CR ID. This option is only valid in Simple Search mode. If you provide this option, the Simple Search mode is enabled. If the options specific to Advanced Search mode are provided along with this option, they will not take effect.
-
product
Patch product/product family ID. Run the command "emcli list_aru_products" to search the product ID.
-
include_all_products_in_family
Takes the specified product ID as a product family ID and includes all products in this product family while searching patches. This option is valid only when you provide the 'product' option.
-
release
Patch release ID. Run the command "emcli list_aru_releases" to search for the release ID.
-
platform
Patch platform ID. Run the command "emcli list_aru_platforms" to search for the platform ID.
-
language
Patch language ID. Run the command "emcli list_aru_languages" to search for the language ID.
-
type
Patch type.
-
noheader
Displays tabular information without column headers.
-
script
This option is equivalent to -format="name:script".
-
xml
Displays the patch information in XML format.
-
format
Format specification (default is
-format="name:pretty"
).-
format="name:pretty"
prints the output table in a readable format not intended to be parsed by scripts. -
format="name:script"
sets the default column separator to a tab and the default row separator to a newline. The column and row separator strings can be specified to change these defaults. -
format="name:csv"
sets the column separator to a comma and the row separator to a newline. -
format=
column_separator:"column_sep_string" column-separates the verb output by <column_sep_string>. Rows are separated by the newline character. -
row_separator:"row_sep_string" row-separates the verb output by <row_sep_string>. Rows are separated by the tab character.
-
Examples
emcli search_patches -patch_name=6880880 -platform=226 -swlib emcli search_patches -patch_name=6880880 -platform=226 -language=0 -xml emcli search_patches -product=9480 -release=80102030 -platform=226 -type=patch -format=name:pretty emcli search_patches -product=9480 -release=80102030 type=patch -xml emcli search_patches -product=9480 -release=80102030 -script emcli search_patches -product=9480 -release=80102030 type=patchset -format=name:csv
See Also
- create_patch_plan
- delete_patches
- describe_patch_plan_input
- get_connection_mode
- get_patch_plan_data
- list_aru_languages
- list_aru_platforms
- list_aru_products
- list_aru_releases
- list_patch_plans
- set_connection_mode
- set_patch_plan_data
- show_patch_plan
- submit_patch_plan
Also, see Patching Using EM CLI in the Enterprise Manager Lifecycle Management Administrator's Guide.