set_monitoring_credential

ターゲットに設定されているモニタリング資格証明を設定します。コマンドラインの引数または入力プロパティ・ファイルを使用すると、入力パラメータを指定できます。パスワードとパラメータ値のためのinput_fileパラメータもサポートしています。

書式

emcli set_monitoring_credential 
        -target_name=<target_name>
        -target_type=<ttype>
        -set_name=<set_name>
        -cred_type=<credential_type>
        -auth_target_type=<auth_ttype>
        -test
        -input_file=<tag|value>
        -properties_file=<filename>
        -attributes=<p1:v1;p2:v2;...>

オプション

  • target_name

    このターゲットのモニタリング資格証明を設定します。

  • target_type

    ターゲットのターゲット・タイプ。

  • set_name

    モニタリング資格証明をこの資格証明セットについて設定します。

  • cred_type

    モニタリング資格証明として設定する資格証明のタイプ。

  • auth_target_type

    認証ターゲット・タイプ。デフォルトはtarget_typeです。

  • test

    モニタリング資格証明を設定する前に、ターゲットに対して資格証明をテストします。

  • input_file

    ファイルから機密プロパティ値を指定します。

    input_fileパラメータの詳細は、「-input_fileの構文ガイドライン」を参照してください。

  • properties_file

    ファイルのすべてのパラメータを渡します。コマンドラインで指定した値が優先されます。

  • attributes

    次のように資格証明列を指定します。

    colname:colvalue;colname:colvalue
    

    -separator=attributes=<newvalue>を使用すると、セパレータ値を変更でき、-subseparator=attributes=<newvalue>を使用すると、サブセパレータ値を変更できます。

例1

この例では、ターゲットtestdb.example.com:oracle_databaseに、ユーザー名がfoo、パスワードがbar、ロールがnormalのモニタリング資格証明セットDBCredsMonitoringを設定します。

emcli set_monitoring_credential 
        -target_name=testdb.example.com 
        -target_type=oracle_database 
        -set_name=DBCredsMonitoring
        -cred_type=DBCreds
        -attributes="DBUserName:foo;DBPassword:bar;DBRole:normal"

例2

この例では、mypasswordfile.txtファイルからパスワードを読み取ります。

emcli set_monitoring_credential 
        -target_name=testdb.example.com 
        -target_type=oracle_database 
        -set_name=DBCredsMonitoring
        -cred_type=DBCreds
        -attributes="DBUserName:foo;DBPassword:tag;DBRole:normal"
        -input_file="tag:mypasswordfile.txt"