# Adding Devices

{% hint style="warning" %}
The user needs to make sure, The devices have a unique name, otherwise, there will issue while plotting the full topology view(Topology Page).
{% endhint %}

* Agent-based devices auto-discover the ONES-App and get registered automatically on the ONES Inventory page
* To Onboard the Agent-Less devices user needs to add them manually
  * Navigate to Inventory

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/3rBWfohM69FeuBLOOlcS/Screenshot%202023-11-17%20at%2010.52.33%E2%80%AFPM.png" alt="" width="175"><figcaption></figcaption></figure>

* This page gives the control to onboard the devices with two options&#x20;
  1. <mark style="color:blue;">**Add Devices**</mark> using the <mark style="color:blue;">**YAML Editor**</mark>&#x20;
  2. Upload the <mark style="color:blue;">**CSV file**</mark> containing the device list

{% hint style="warning" %}
The movement user chooses CSV upload, then the YAML Editor will be disabled
{% endhint %}

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/NI4bl2IT0B7ECtUckBCF/image.png" alt=""><figcaption></figcaption></figure>

## 1. Add Devices using YAML

* Click on <mark style="color:blue;">**Add Devices**</mark>
* Upload Device Inventory using <mark style="color:blue;">**YAML Editor**</mark>
* Navigate to <mark style="color:blue;">**Inventory >> Devices >> Add Devices >> Use YAML**</mark>
* Use the below format to add devices to the application

<pre class="language-yaml"><code class="lang-yaml"><strong> inventory:
</strong>     - ipAddress: "10.4.4.61"
       layer: "Spine"
       region: "San Jose"
       azId: 1
       brickId: 1
       user: "admin"
       password: "YourPaSsWoRd"
     - ipAddress: "10.4.4.62"
       layer: "Spine"
       region: "San Jose"
       azId: 1
       brickId: 1
       user: "admin"
       password: "YourPaSsWoRd"

</code></pre>

* Make sure to use the correct indentation for the YAML files

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/02xxCKLTBvLfvV7f59mY/Screenshot%202023-11-19%20at%209.28.23%E2%80%AFAM.png" alt=""><figcaption></figcaption></figure>

* Click <mark style="color:blue;">**Save & Apply**</mark>
* ONES Application is now ready to manage the added devices

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/ROba5075kOFlA1sm0iLA/Screenshot%202023-11-19%20at%209.27.00%E2%80%AFAM.png" alt=""><figcaption></figcaption></figure>

## 2. Add devices using CSV

* Click on <mark style="color:blue;">**Add Devices**</mark>
* Upload Device Inventory using <mark style="color:blue;">**CSV File**</mark>
* Navigate to <mark style="color:blue;">**Inventory >> Devices >> Add Devices >> Use CSV**</mark>
* Use the below format to add devices to the application

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/EIlK9yJizF4YxkHC8oMl/Screenshot%202023-11-19%20at%209.37.06%E2%80%AFAM.png" alt=""><figcaption></figcaption></figure>

* <mark style="color:blue;">**Select CVS file to Upload >> \<Choose CSV file containing devices entry>**</mark>
* <mark style="color:blue;">**Upload & Add**</mark>

<figure><img src="https://content.gitbook.com/content/LacTh6x78oAd4VRzALXL/blobs/PmGE1CDCyLREU4rRrZwJ/image.png" alt=""><figcaption></figcaption></figure>

