Verifying the Subscription

Syntax:

You can view a list of all targets that have been subscribed to a specific image. In a large data center, there may be several images and multiple targets subscribing to each of these images. For example, the following figure shows an image and a target subscribed:

emcli db_software_maintenance -getImageSubscriptions -image_id=<image_id>

Sample Output:

**************************************************************************************

TARGETNAME  TARGETTYPE   VERSIONNAME      DATESUBSCRIBED 

CLUSTER1    CLUSTER      19180 Version   2023-12-22 06:59:08.0

**************************************************************************************

Total Rows:1

To verify the subscription at the target level, use the following command:

emcli db_software_maintenance -getTargetSubscriptions -target_name=<target_name> -target_type=<target_type>

Description of the Input Variables

  • target_name: Name of the target.
  • target_type: Type of target, for example database
  • version_name: This is observed to be empty sometimes. A value is displayed when the existing Oracle Home of the target has same set of patches as any existing Gold Image version.

Sample Output

TARGET NAME TARGET TYPE IMAGE ID IMAGE NAME VERSION ID VERSION NAME PARENT NAME PARENT TYPE DATE SUBSCRIBED
=========================================================================================================================================================
DB1 oracle_database 48B75BB7B5E0462 SIDB_19190 48B78E3967D56BE PSU Jan23 <null> <null> Jan 2023-02-21

To verify the subscription of the container databases for PDB patching, use the following command:

emcli db_software_maintenance -getSubscriptionsForContainer -target_name=<CDB_TARGET_NAME> 
-target_type=<target_type> -image_id=<image_id>

Sample Output

emcli db_software_maintenance -getSubscriptionsForContainer 
TARGET NAME TAREGT TYPE IMAGE ID
==================================================================
conttarget oracle_database 73659339F2364E7CE053BC3A410A2016