各種のオプションを指定して例4-5を実行すると、次の出力が示されます。
例4-6 -allオプションを使用したpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 -all Adding target sid7458.us.example.com... host.us.example.com Succeeded Logout successful
例4-7 -targetsオプションを使用したpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 -targets sid7458.us.example.com Adding target sid7458.us.example.com... host.us.example.com Succeeded Adding target db1... host.us.example.com Succeeded Adding target db2... host.us.example.com Succeeded Adding target db3... host.us.example.com Succeeded Logout successful
例4-8 -targetsオプションを使用したpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 -targets db1:db2:db3 Adding target db1... host.us.example.com Succeeded Adding target db2... host.us.example.com Succeeded Adding target db3... host.us.example.com Succeeded Logout successful
例4-9 指定されたターゲットが存在しない場合のpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 -targets abc INFO: There are no targets to be promoted. Please verify the targets in Enterprise Manager webpages. Logout successful
例4-10 ターゲットを昇格に使用できない場合のpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 -all INFO: There are no targets to be promoted. Please verify the targets in Enterprise Manager webpages. Logout successful
例4-11 -allまたは-targetsオプションが見つからない場合のpromote_discovered_dbs.pyの出力
$ emcli @promote_discovered_dbs.py -url https://host.us.example.com:7799/em -username sysman -password welcome1 -monitor_pw welcome1 Missing required arguments (-targets or -all) Usage: promote_discovered_dbs.py [-help] [-all] Add all discovered Single Instance DBs [-targets <target1:target2:...] Add only targets listed Logout successful