このページは機械翻訳したものです。

モニタリング資格証明を更新しています

ユーザー名やパスワードなどの(DBまたはアプリケーション)資格証明に変更がある場合は、既存のスタック・モニタリング・リソースを最新の資格証明で更新できます。

最新の資格証明を更新するには、次に示すように新しいJSONファイルを準備/作成し、oci stack-monitoring resource updateコマンドを実行します。

credentialTypeの値をPLAINEXTとして指定します。すべての名前および値入力をプレーン・テキスト形式で指定します。

source要素の値は<resourceType>.<resourceName>の形式です。ここで、resourceTypeは更新されるリソースのタイプ、resourceNameは更新されるリソースの名前です。

資格証明の更新には、次のOCI CLIコマンドを使用し、管理エージェントを再起動します。

コマンド:

oci stack-monitoring resource update --from-json file://<update.json>  --resource-id <OCID of the Stackmon resource>

:

oci stack-monitoring resource update --from-json file://update_cred.json --resource-id ocid1.stackmonitoringresource.oc1.iad.XXXXXXXX

管理エージェントを再起動します。

この手順は、オンプレミスで実行されているエージェントに適用されます。

sudo systemctl restart mgmt_agent

この手順は、OCI Computeで実行されているエージェントに適用されます。

sudo systemctl restart oracle-cloud-agent

ASM資格証明を更新するには、次のAPIコールを使用します。

または、次のOCI CLIコマンドを使用して、管理エージェントを再起動します。

oci database-management external-db-system-connector update-external-db-system-connector-update-external-db-system-macs-connector-details --external-db-system-connector-id --from-json file://<JSON_INPUT_FILE>

管理エージェントを再起動します。

この手順は、オンプレミスで実行されているエージェントに適用されます。

sudo systemctl restart mgmt_agent

この手順は、OCI Computeで実行されているエージェントに適用されます。

sudo systemctl restart oracle-cloud-agent

更新操作の追跡

前述のupdateコマンドの出力には、次に示すようにopc-workrequest-idが含まれます。

{
  "opc-work-request-id": "ocid1.stackmonitoringworkrequest.oc1.eu-frankfurt-1.XXXXXXXX"
}

前述のopc-work-request-id値を使用して、更新操作のステータスを追跡します。ステータスを追跡するには、次のwork-requestコマンドを使用します。

指定した作業要求IDのステータスを取得するには:

oci stack-monitoring work-request get --work-request-id <opc-work-request-id>

指定された作業リクエストIDのログのリストを取得するには:

oci stack-monitoring work-request list-logs --work-request-id <opc-work-request-id>

指定された作業リクエストIDのエラーのリストを取得するには:

oci stack-monitoring work-request list-errors --work-request-id <opc-work-request-id>

リソース・タイプごとのパスワード更新JSONファイル (update_cred.json)

  • Oracle Database (CDB、PDBおよび非CDB)を更新するためのJSON
    {
      "credentials": {
        "name":"SQLCreds",
        "source":"<resource_type>.<resourceName>",
        "credentialType":"PLAINTEXT",
        "properties":[
          {
            "name":"databaseUserName",
            "value":"<new user name>"
          },
          {
            "name":"databasePassword",
            "value":"<new password>"
          },
          {
            "name": "databaseRole",
            "value": "<new role>"
          }
        ]
      }
    }
  • ASMパスワードを更新するためのJSON
    
    {
      "connectorType": "MACS",
      "connectionInfo": {
        "componentType": "ASM",
        "connectionString": {
          "hosts": ["EXAMPLE-hostName-Value"],
          "port": 1521,
          "protocol": "TCP",
          "service": "+ASM"
        },
        "connectionCredentials": {
          "credentialType": "DETAILS",
          "credentialName": "EXAMPLE-credentialName-Value",
          "userName": "asmsnmp",
          "passwordSecretId": "ocid1.test.oc1..EXAMPLE-passwordSecretId-Value",
          "role": "SYSDBA"
        }
      }
    }
  • E-Business Suiteデータベース検出ユーザー更新JSON
    {
      "credentials": {
        "name":"SQLCreds",
        "type":"DBCreds",
        "source":"ebs_instance.<resource name>",
        "description":"Credential Update for EBSdiscovery",
        "credentialType":"PLAINTEXT",
        "properties":[
          {
            "name":"DBUserName",
            "value":"<new username>"
          },
          {
            "name":"DBPassword",
            "value":"<new password>"
          },
          {
            "name": "DBRole",
            "value": "Normal"
          }
        ]
      }
    }
  • WebLogicドメイン、WebLogicクラスタおよびWeblogic ServerのサンプルJSON。
    {
           "credentials": {
            "source": "weblogic_domain.<weblogic domain name>",
            "name": "JMXCreds",
            "type": "JMXCreds",
            "description": "<Some description> ",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "Username",
                    "value": "<new user name>"
                },
                {
                    "name": "Password",
                    "value": "<new password>"
                }
            ]
        }
    }
  • MS SQL Serverパスワード更新JSON
    {
     
        "credentials": {
            "source": "sql_server.<your resource name>",
            "name": "SQLCreds",
            "type": "DBCreds",
            "description": "Credential for SQL Server.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                    "name": "DBRole",
                    "value": "<new role>"
                },
                {
                    "name": "DBUserName",
                    "value": "<new user name>"
                },
                {
                    "name": "DBPassword",
                    "value":  "<new password>"
                }
            ]
        }
    }
    
  • Apache Tomcatパスワード更新JSON
    { 
        "credentials": {
            "source": "apache_tomcat.<your resource name>",
            "name": "JMXCreds",
            "type": "JMXCreds",
            "description": "Credential for Apache Tomcat metric collection.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                    "name": "Username",
                    "value": "<new user name>"
                },
                {
                    "name": "Password",
                    "value":  "<new password>"
                }
            ]
        }
    }
  • Apache HTTP Server
    {
        "credentials": {
            "source": "apache_http_server.<resource name>",
            "name": "RestCreds",
            "type": "HTTPSCreds",
            "description": "Credential for Apache HTTP Server metric collection.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "HTTPSUserName",
                    "value": "<new username>"
                },
                {
                    "name": "HTTPSPassword",
                    "value": "<new password>"
                },
     
                {
                    "name": "ssl_trustStoreType",
                    "value": "JKS"
                },
                {
                    "name": "ssl_trustStoreLocation",
                    "value": "<new trust store path>"
                },
                {
                    "name": "ssl_trustStorePassword",
                    "value": "<new trust store password>"
                }
            ]
        }
    }
  • PeopleSoftアプリケーション・サーバー・グループのパスワード更新JSON
    {
        "credentials": {
        "source": "oracle_psft_appserv_group.<resource name>",
            "name": "JMXCreds",
            "type": "JMXCreds",
            "description": "Credential for JMXAppServer metric collection",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "Username",
                    "value": "<new username>"
                },
                {
                    "name": "Password",
                    "value": "<new password>"
                }
            ]
        }
    }
  • PeopleSoftデータベース検出ユーザー更新JSON
    {
      "credentials": {
        "name":"SQLCreds",
        "type":"DBCreds",
        "description":"Credential for PSFT discovery user",
        "source":"oracle_psft.<resource name>",
        "credentialType":"PLAINTEXT",
        "properties":[
          {
            "name":"DBUserName",
            "value":"<new username>"
          },
          {
            "name":"DBPassword",
            "value":"<new password>"
          },
          {
            "name": "DBRole",
            "value": "NORMAL"
          }
        ]
      }
    }
  • PeopleSoft Process Schedulerのグループ・パスワード更新JSON
    {
        "credentials": {
        "source": "oracle_psft_prcs_group.<resource name>",
            "name": "JMXCreds",
            "type": "JMXCreds",
            "description": "Credential for JMXprcs metric collection.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "Username",
                    "value": "<new username>"
                },
                {
                    "name": "Password",
                    "value": "<new password>"
                }
            ]
        }
    }
  • PeopleSoft PIAグループ・パスワード更新JSON
    {
        "credentials": {
        "source": "oracle_psft_pia_group.<resource name>",
            "name": "JMXCreds",
            "type": "JMXCreds",
            "description": "Credential for PIA metric collection.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "Username",
                    "value": "admin"
                },
                {
                    "name": "Password",
                    "value": "<new password>"
                }
            ]
        }
    }
  • Golden Gate資格証明の更新

    {
        "credentials": {
            "source": "oracle_goldengate.<resource name>",
            "name": "RestCreds",
            "type": "HTTPSCreds",
            "description": "Credential for Oracle GoldenGate metric collection.",
            "credentialType": "PLAINTEXT",
            "properties": [
                {
                   "name": "Username",
                    "value": "<new username>"
                },
                {
                    "name": "Password",
                    "value": "<new password>"
                },
      
                {
                    "name": "ssl_trustStoreType",
                    "value": "JKS"
                },
                {
                    "name": "ssl_trustStoreLocation",
                    "value": "<new trust store path>"
                },
                {
                    "name": "ssl_trustStorePassword",
                    "value": "<new trust store password>"
                }
            ]
        }
    }

この記事は役に立ちましたか。