---
title: "Auto Discovery: Configure Service Account Credentials"
slug: "auto-discovery-configure-service-account-credentials"
updated: 2024-12-13T06:58:26Z
published: 2024-12-13T06:58:26Z
canonical: "docs.zpesystems.com/auto-discovery-configure-service-account-credentials"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zpesystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto Discovery: Configure Service Account Credentials

This section provides information on configuring service account credentials that can be used for Nodegrid automated tasks, such as auto-discovery by using the second set of credentials for discovering Console and KVM Servers’ ports.

The discovery process requires logging into the appliance, and by default, it uses the credentials configured under *Device :: Access*, which are primarily intended for Console sessions. However, due to security policies, the same credentials cannot be used for both Console sessions and the discovery process. To align with these policies, we must define a dedicated authentication method, such as a service account specifically for automated tasks such as discovery. This ensures the credentials used for discovery are separate from those used for Console sessions.

- Discovery Process: Typically requires Administrator-level credentials to access system information.
- Console Sessions: Can be performed with User-level credentials, which can either be stored in *Device :: Access*or prompted at login.

### Step 1: Create a Managed Device

To add a Console server managed device, follow these steps:

1. Navigate to *Managed Devices :: Devices*. ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/auto-discovery-console-server(2).png)
2. Click **Add**.
3. Enter a name for the managed device.
4. Select Type as **console_server_nodegrid**.
5. Enter the IP address of the managed device.
6. Under Credential select **Ask During Login**.
7. Select **On-demand**in the Mode drop-down.
8. Click **Save**.

### Step 2: Set up the Console Server Credentials

After adding a Console server, you need to set up the credentials. Follow these steps to perform this task:

1. Click on the managed device name created in the above procedure.
2. Click **Management**. ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/auto-discovery-console-server-mgmt(1).png)
3. The Discovery Ports will be selected by default. Leave the setting to enabled.
4. Provide username and password for logging in to the console server.
5. Click **Save**.

### Step 3: Set up Discovery Rules

Create a rule to apply the cloning on the managed device. Follow these steps to perform this task:

1. Navigate to *Managed Device :: AutoDiscovery :: Discovery Rules*.
2. Click **Add**.

![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/discovery-rules1(1).png)
3. Enter a name for the discovery rule.
4. Select mode as **Enabled**.
5. Select the radio button Console Server Ports.
6. Select the Action as Clone (Mode On-demand).
7. From the drop-down Clone from: select the managed device name (created in the above procedure).
8. (Optional): Enable **Enforce Device Type** and **Inherit Appliance Credentials**.
9. Click **Save**.

### Step 4: Start the Discovery Process

The discovery process runs at the configured interval but is triggered automatically when a new appliance is added to the platform. It can also be started manually if needed.

1. Navigate to *Managed Devices:: Auto Discovery:: Discover Now.*

![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/discovery-now(1).png)
2. Select the console server name.
3. Click **Discover Now**.

### Step 5: View Discovery Logs

The Discovery Logs page shows the logs of the discovery processes set on the Managed Devices’ setting for auto discovery. In this example, you can see that the Action is **Device Cloned** for the Console Server Port.

![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/discovery-logs(1).png)

### Step 6: Access the Managed Device Appliance and Appliance Port

To access the managed device appliance (console server port), follow these steps:

1. Navigate to A*ccess :: Tree*. In the following figure, the managed device appliance has usbS3-2 port enabled that is cloned. ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/device-access.png)
2. Click on **Console**button next to the managed device to access console session of the device. The session will request for access credentials to log in to the device.

![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/console-session(1).png)
3. Enter the login credentials to get access to the device.

> [!NOTE]
> Note
> 
> Similarly when you access the usbS3-2 port, you will be required enter the credentials (due to Access configuration **Ask During Login)**.
