

• AWS Systems Manager CloudWatch ダッシュボードは、2026 年 4 月 30 日以降は利用できなくなります。お客様は、これまでと同様に Amazon CloudWatch コンソールを使用して、Amazon CloudWatch ダッシュボードの表示、作成、管理を継続できます。詳細については、「[Amazon CloudWatch ダッシュボードのドキュメント](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html)」を参照してください。

# カスタムインベントリメタデータをマネージドノードに割り当てる
<a name="inventory-custom-metadata"></a>

以下の手順では、AWS Systems Manager [PutInventory](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PutInventory.html) API オペレーションを使用して、マネージドノードにカスタムインベントリメタデータを割り当てるプロセスについて説明します。この例では、ラックの場所情報をノードに割り当てます。カスタムインベントリの詳細については、「[カスタムインベントリの操作](inventory-custom.md)」を参照してください。

**カスタムインベントリメタデータをノードに割り当てる**

1. まだ AWS Command Line Interface (AWS CLI) をインストールして設定していない場合は、インストールして設定します。

   詳細については、「[AWS CLI の最新バージョンをインストールまたは更新します。](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)」を参照してください。

1. 以下のコマンドを実行して、ノードにラックの場所情報を割り当てます。

   **Linux**

   ```
   aws ssm put-inventory --instance-id "{{ID}}" --items '[{"CaptureTime": "2016-08-22T10:01:01Z", "TypeName": "Custom:RackInfo", "Content":[{"RackLocation": "Bay B/Row C/Rack D/Shelf E"}], "SchemaVersion": "1.0"}]'
   ```

   **Windows**

   ```
   aws ssm put-inventory --instance-id "{{ID}}" --items "TypeName=Custom:RackInfo,SchemaVersion=1.0,CaptureTime=2021-05-22T10:01:01Z,Content=[{RackLocation='Bay B/Row C/Rack D/Shelf F'}]"
   ```

1. 以下のコマンドを実行して、このノードのカスタムインベントリエントリを表示します。

   ```
   aws ssm list-inventory-entries --instance-id {{ID}} --type-name "Custom:RackInfo"
   ```

   システムから以下のような情報が返されます。

   ```
   {
       "InstanceId": "{{ID}}", 
       "TypeName": "Custom:RackInfo", 
       "Entries": [
           {
               "RackLocation": "Bay B/Row C/Rack D/Shelf E"
           }
       ], 
       "SchemaVersion": "1.0", 
       "CaptureTime": "2016-08-22T10:01:01Z"
   }
   ```

1. 以下のコマンドを実行して、カスタムメのインベントリスキーマを表示します。

   ```
   aws ssm get-inventory-schema --type-name Custom:RackInfo
   ```

   システムから以下のような情報が返されます。

   ```
   {
       "Schemas": [
           {
               "TypeName": "Custom:RackInfo",
               "Version": "1.0",
               "Attributes": [
                   {
                       "DataType": "STRING",
                       "Name": "RackLocation"
                   }
               ]
           }
       ]
   }
   ```