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 »

Laisser un commentaire