---
title: Device Auto Discovery
slug: kronpam-reference-guide-3-5-0/device-auto-discovery
description: Learn how to effectively utilize the Device Auto-Discovery feature with our comprehensive document. Discover how to scan your network subnet or existing devices in device groups, while setting essential parameters and global username/password. Follow the 
docTags: 
createdAt: 2022-07-26T12:37:04.000Z
---

Device Auto-Discovery can be used to scan a network subnet or existing devices in device groups. To discover devices some parameters should be added to the related element types:

1. Navigate to **Devices** > **Element Type**.
2. Select an element type to set the required parameters and click the **Actions&#x20;**&#x62;utton.
3. Click on the **Edit Element Type** button.
4. Set the related **Association Tag.**
5. Click **Next**.

Set the following parameters:
**discovery.commands.hostname**: Command to get the hostname
**discovery.commands.hostname.pattern:** Regex to get the hostname from the output of the hostname command
**discovery.commands.version.command**: Command to get the version
**discovery.model.match.regex**: Word or regex to be matched to the output of the version command
**discovery.name.server.lookup.hostname**: Set as **true&#x20;**&#x6F;&#x72;**&#x20;false.** The default value is **false**. It allows for device discovery with the hostname, by executing the command **nslookup**.

Global username/password and/or subnet addresses should be set on the device groups. To use Global username/password to discover subnets or existing devices:

1. Navigate to **Devices&#x20;**> **Inventory**.
2. Click on the device group's action and selec&#x74;**&#x20;Edit.**
3. **Next.**
4. On the Direct Credentials, enter the **Username** and **Password,&#x20;**&#x61;nd enter the related information.
5. **Save** each property.

To add a subnet to discover subnets:

1. Navigate to **Devices**> **Inventory**.
2. Click on the device group's action and selec&#x74;**&#x20;Subnet.**
3. Set subnet information an&#x64;**&#x20;Save**.

Auto-discovery steps:

1. Navigate to **Devices**> **Inventory**.
2. Click on the **Add Discovery** **Profile.**
3. Fill out the relevant device discovery information and click **Discover**.
4. Fill out the relevant device discovery information and click **Save Scheduler**.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/-tmeLt7pSSWc_1vv0WMvI_image.png" size="74" width="944" height="486" position="center" caption="Subnet Device Auto Discovery" showCaption="true"}

The Auto Discovery screen elements are:

**Access Protocol:** Protocol to discover devices. If the SNMP protocol is selected, the protocol to change after the discovery should be selected.&#x20;

**Possible Element Types**: Possible element types in the search range. Devices will be matched with these element types.&#x20;

**Discover Type**: If **a Subnet** is selected, the subnet of the device groups is scanned. If **Existing Devices** is selected, the existing devices in the selected device groups are scanned for changes.&#x20;

**Cron Expression**: If the user wants to scan for devices periodically, a cron expression should be entered.

:::hint{type="info"}
The Device Auto Discovery feature can be used for existing devices. It allows for the discovery of devices that have had their properties changed, such as the IP of a Linux device that has been converted to a Windows RDP device.
:::

The Device Auto-Discovery Logs show the results of the device auto-discovery. Logs can be searched by using different variables, such as date, time, login success, device IP, etc. Please refer to the Logging section for more in-depth information regarding logs and logging.&#x20;
