Ajouter une valeur dans la propriété Location :
 
pour un hôte
./emcli get_targets -noheader -script -targets=host | awk ‘{print $4″: »$3″:Location: »}’ > /tmp/targets
 
dans le fichier targets ajouter : 
 
serveurJJY:host:Location:RIZ
serveurJOJO:host:Location:RIA
serveur TATA:host:Location:RIS
 
idem pour une database :
 
./emcli get_targets -noheader -script -targets=oracle_database | awk ‘{print $4″: »$3″:Location: »}’ > /tmp/targets
 
ensuite on fait :
 
./emcli set_target_property_value -property_records= »REC_FILE » -input_file= »REC_FILE:/tmp/targets » -separator=property_records= »n »
 
 
EMCLI Enterprise Manager 12c/13c : Ajout d'une base de données avec mot de passe avec des caractères spéciau
[OEM] EMCLI - Ajout d'une propriété pour une target donnée

Leave a Comment

Your email address will not be published. Required fields are marked *