Enterprise Manager Generic (MOSC)

MOSC Banner

How to specify record subseparator in Jython emcli script

edited Feb 14, 2014 12:00PM in Enterprise Manager Generic (MOSC) 3 commentsAnswered

I have a question on the proper syntax to specify the record subseparator in a call to emcli.set_target_property_value function.  I've tried a variety of ways, but always seem to encounter an error.  See bold line in script below.

Thanks.

Eric

$ vi update_agent_properties.py
from emcli import *

import time

def format(str):
   if str is None:
     return ""
   return str

def get_agent_objects():
   l_sql = " select target_name, target_type, property_name, property_value " + \
           " from mgmt$target_properties " +  \
           " where target_type = 'oracle_emd' and property_name = 'orcl_gtp_lifecycle_status' "

   obj = emcli.list(sql=l_sql)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center