> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/your-first-agent.md). Agents can also search and read this documentation through its [MCP server](https://docs.keeper.io/~gitbook/mcp).

# 最初のEPMデプロイとエージェント

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-df4c5d4c5cb540dfe7a048de196195518a589bf9%2Fimage%20(511).png?alt=media" alt=""><figcaption></figcaption></figure>

本ページでは、最初のデプロイパッケージを作成し、単一のエンドポイントに最初のKeeper EPMエージェントをインストールして登録する手順を取り扱います。新規インストールから、管理コンソールに表示される登録済みエージェントまでを進められます。一度完了すれば、同じ手順を自動化して、より広範に展開できます。プラットフォーム別のパッケージング、MDM/GPO連携、無人インストールのパターンについては、[デプロイメント (展開)](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment.md)セクションをご参照ください。

***

## 開始前の確認 <a href="#before-you-begin" id="before-you-begin"></a>

[ライセンスと有効化](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/licensing-and-activation.md)の要件を満たしていることを確認してください。

* EPMシートを含む有効なKeeperエンタープライズライセンス
* Keeper管理コンソールで有効化済みのエンドポイント特権マネージャー
* エンドポイント権限管理の権限を持つ管理者アカウント

エンドポイント側でも、以下の要件を満たしていることを確認してください。

* **サポート対象のオペレーティングシステム:** Windows、macOS、Linuxの要件については、[デプロイメント (展開)](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment.md)をご参照ください。

{% hint style="info" %}
[最小システム要件](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/minimum-system-requirements.md)もご参照ください。
{% endhint %}

* **ローカル管理者またはroot権限:** インストールとサービス管理に必要
* **利用可能なポート:** エージェントは、ローカルでHTTPSの6989番ポートを待ち受け、MQTTの8675番ポートを使用します。エンドポイント上の他のサービスと競合する場合は、変更できます

***

## 最初のデプロイパッケージの作成 <a href="#creating-your-first-deployment-package" id="creating-your-first-deployment-package"></a>

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-b5afea267caef863a2d2df1c7331541265085d0a%2Fepm-new-deployment-package-dialog-full.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

デプロイパッケージは、Keeper管理コンソールで作成します。サポートされるすべてのプラットフォーム用のインストーラと登録トークンがまとめられています。トークンにより、インストールした各エージェントが、Keeperテナントと、指定したデプロイパッケージに紐づけられます。名前は、エンドポイントのグループが分かるものにします (例: Finance Workstations、Engineering Laptops、Pilot)。

1. Keeper管理コンソールで、**\[エンドポイント特権マネージャー] > \[展開]** に移動します。
2. **\[新しい展開パッケージ]** を選択します。
3. **\[デプロイパッケージ]** フィールドに、エンドポイントのグループ名を入力します。最初のパッケージには、PilotやFirst Agent Testなどが適切です。
4. **\[作成]** を選択します。
5. 表示されたダイアログの **\[パッケージファイルの選択]** で、プラットフォーム (Windows、Mac、Linux) を選択します。**\[ダウンロードURLをコピー]** を選択し、エンドポイントのブラウザにURLを貼り付けてパッケージをダウンロードします。**\[トークンをコピー]** の横にあるコピーアイコンを選択して、登録トークンをコピーします。トークンの形式は `hostname:deployment-uid:private-key` です。

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-028552f4668ae29fabdaebd0ba3de283d48a8745%2Fepm-deployment-package-download-dialog-full.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

登録トークンは機密性の高い認証情報です。シークレットとして扱い、安全なチャネルのみで保管および送信し、漏えいの疑いがある場合はローテーションしてください。

ダウンロードしたファイルを解凍します。Windowsの .msi、macOSのインストールスクリプトと .pkg ファイル、Linuxのパッケージなど、各プラットフォーム用のインストーラファイルが含まれています。

***

## 最初のエージェントのインストールと登録 <a href="#installing-and-registering-your-first-agent" id="installing-and-registering-your-first-agent"></a>

インストーラに登録トークンを渡すと、エージェントのインストールと登録を1回の操作で実行できます。以下でオペレーティングシステムを選択し、管理者権限のプロンプトまたはsudoでコマンドを実行します。

{% tabs %}
{% tab title="Windows" %}
管理者権限のPowerShellまたはコマンドプロンプトから、登録トークンを指定してインストーラを実行します。ファイル名は、ダウンロードしたファイルのものに置き換えてください。

```
msiexec /i KeeperPrivilegeManager-x.x.x.xxx.msi REGISTRATION_CODE="YOUR_TOKEN_HERE" /l*v install.txt /quiet
```

サイレントモードでは、インストール後にシステムが自動的に再起動します。再起動を延期するには、`/norestart` を追加します。エージェントは、次回の再起動後に有効になります。

トークンなしでインストールした場合や、登録が完了しなかった場合は、管理者権限のプロンプトから登録します。

```
"C:\Program Files\Keeper Security\Endpoint Privilege Manager\Jobs\bin\KeeperRegistrationHelper\KeeperRegistrationHelper.exe" --token "YOUR_TOKEN_HERE"
```

{% endtab %}

{% tab title="macOS" %}
ターミナルから、登録トークンを指定してインストールスクリプトを実行します。スクリプトがシステムのアーキテクチャを検出し、対応するパッケージをインストールして、エージェントを登録します。

```
sudo ./install_endpoint_privilege_manager.sh -r <YOUR_TOKEN_HERE>
```

トークンなしでインストールした場合や、登録が完了しなかった場合は、Keeper Privilege Managerメニューから「登録」を選択し、登録トークンを入力します。登録には、エンドポイントの管理者権限が必要です。

macOSからシステム拡張機能やセキュリティに関する確認が表示されたら、承認してください。MDMで事前に承認することもできます。詳しくは、「macOSでのデプロイ」をご参照ください。
{% endtab %}

{% tab title="Linux" %}
登録トークンを指定して、パッケージのインストールを実行します。以下は、DebianおよびUbuntuの例です。ファイル名は、ご利用のディストリビューション用のパッケージに置き換えてください。

```
sudo KEEPERREGCODE="YOUR_TOKEN_HERE" dpkg -i keeper-privilege-manager_N.N.N-NN_amd64.deb
```

Linuxデスクトップでは、インストール後にKeeper Privilege Managerが自動的に起動し、常駐メニューウィンドウが表示されます。

トークンなしでインストールした場合や、登録が完了しなかった場合は、ディストリビューションに対応するスクリプトで登録します。登録には、エンドポイントのroot権限が必要です。

```
./register-keeper-ubuntu.sh --token "YOUR_TOKEN_HERE"
```

Linuxデスクトップでは、Keeper Privilege Managerメニューから「登録」を選択し、トークンを入力して登録することもできます。
{% endtab %}
{% endtabs %}

### インストールの確認 <a href="#verify-the-installation" id="verify-the-installation"></a>

インストールまたは再起動の後、サービスの初期化に15〜30秒かかります。その後、ファイルが配置されていること、サービスが稼働していること、ローカルのヘルスチェックに応答があることを確認します。

{% tabs %}
{% tab title="Windows" %}
インストールディレクトリが `C:\Program Files\Keeper Security\Endpoint Privilege Manager` であることを確認します。メインの実行ファイル、`appsettings.json`、およびPlugins、Jobs、KeeperStorageの各フォルダが含まれているはずです。

サービスが稼働していることを確認します。PowerShellの場合:

```
Get-Service -Name "Keeper Endpoint Privilege Manager"
```

コマンドプロンプトの場合:

```
sc query "Keeper Endpoint Privilege Manager"
```

ステータスは Running になっているはずです。

ローカルのヘルスチェックを実行します。200 OK の応答が返れば、サービスは稼働しています。

```
curl.exe -k https://localhost:6989/health
```

{% endtab %}

{% tab title="macOS" %}
インストールディレクトリが `/Library/Keeper/` であることを確認します。メインの実行ファイル、`appsettings.json`、およびPlugins、Jobs、KeeperStorageの各フォルダが含まれているはずです。

サービスが読み込まれていることを確認します。

```
sudo launchctl list | grep keeper
```

ローカルのヘルスチェックを実行します。200 OK の応答が返れば、サービスは稼働しています。

```
curl -k https://localhost:6989/health
```

サービスが読み込まれていない場合は、launchctlコマンドについて[macOSでのデプロイ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment/deploy-with-macos.md)をご参照ください。
{% endtab %}

{% tab title="Linux" %}
インストールディレクトリが `/opt/keeper/` であることを確認します。メインの実行ファイル、`appsettings.json`、およびPlugins、Jobs、KeeperStorageの各フォルダが含まれているはずです。

サービスが稼働していることを確認します。

```
sudo systemctl status keeper-privilege-manager
```

稼働していない場合は、起動します。必要に応じて、ブート時に自動起動するよう有効化します。

```
sudo systemctl start keeper-privilege-manager
sudo systemctl enable keeper-privilege-manager
```

ローカルのヘルスチェックを実行します。200 OK の応答が返れば、サービスは稼働しています。

```
curl -k https://localhost:6989/health
```

{% endtab %}
{% endtabs %}

***

### うまくいかない場合 <a href="#if-something-doesnt-work" id="if-something-doesnt-work"></a>

* サービスがまだ初期化中の可能性があるため、さらに30秒待ってから、ヘルスチェックを再実行してください。
* エンドポイント上の他のサービスが6989番ポートを使用していないことを確認してください。
* サービスログでエラーを確認してください。各プラットフォームのログの場所については、[ログの確認](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/troubleshooting/reading-logs.md)をご参照ください。

{% hint style="info" %}
詳しくは、[トラブルシューティング](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/troubleshooting.md)をご参照ください。
{% endhint %}

***

### 管理コンソールでのエージェントの確認 <a href="#verify-the-agent-in-the-admin-console" id="verify-the-agent-in-the-admin-console"></a>

Keeper管理コンソールに戻り、**\[エンドポイント特権マネージャー] > \[ワークロード]** または **\[展開]** に移動して、新しいエージェントが表示されていることを確認します。

1〜2分以内にエージェントが表示されない場合は、以下を確認してください。

* 登録トークンが、正しいテナントとデプロイパッケージのものであること
* エンドポイントがKeeperバックエンドに到達できること (登録がローカルで成功しても、継続的な同期には外向きの接続が必要)
* Keeperのログに同期エラーがないこと

***

### 成功チェックリスト <a href="#success-checklist" id="success-checklist"></a>

次に進む前に、以下をすべて確認してください。

* エージェントが想定どおりのディレクトリにインストールされている
* サービスが稼働している
* ヘルスチェックが 200 OK を返す
* 管理コンソールのエンドポイント特権マネージャー配下にエージェントが表示される

***

{% hint style="info" %}
詳しくは、以下のページをご参照ください。\
[デプロイメント (展開)](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment.md)

[推奨デプロイフェーズ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment/recommended-deployment-phases.md)

[Windowsでのデプロイ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment/deploy-with-windows.md)

[macOSでのデプロイ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment/deploy-with-macos.md)

[Linuxでのデプロイ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/deployment/deploy-with-linux.md)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/your-first-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
