# Devices

The **Devices** view provides options to manage devices and device groups in the NSO network.

## Device Management <a href="#d5e5752" id="d5e5752"></a>

The **Device management** view lists the devices in the network and provides options to manage them.

<figure><img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-90286ef2ecb8309ef2ecbaa68337e656eed6b626%2Fdevice-management.png?alt=media" alt=""><figcaption><p>Device Management View</p></figcaption></figure>

### **Search**

You can search for a device by its name, IP address, or other parameters. Narrow down the results by using the **Select device group** filter.

### **Add a Device**

To add a new device to NSO:

1. Click **Add device**.
2. In the **Add device** pop-up, specify the device name.
3. Click **Add**.
4. Configure the specifics of the device in the **Configuration editor**.
5. Review and commit the changes in the **Commit manager** when done.

### **Apply an Action on a Device**

Actions can be applied on a device from the **Device management** view or the **Configuration editor** -> **Actions** tab.

{% tabs %}
{% tab title="From the Device Management View" %}
An action can be applied to a single or multiple devices at once.

1. Select the device(s) from the list.
2. Using the **Choose actions** button, select the desired action. The result of the action is returned momentarily.

{% hint style="info" %}
In the **Device management** view, you can also apply actions on a device using the more options <img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-364d49109869070dc89f5e2c9daec76160fa3bac%2Fmore-options.png?alt=media" alt="" data-size="line"> button.
{% endhint %}

**Actions Possible in the Device Management View**

Available actions include **Connect**, **Ping**, **Sync from**, **Sync to**, **Check sync**, **Compare config**, **Fetch ssh host keys**, **Apply template**, **Modify in Config editor**, and **Delete**.

{% hint style="info" %}
The **Modify in Config Editor** and **Delete** actions are accessible by clicking the more options <img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-364d49109869070dc89f5e2c9daec76160fa3bac%2Fmore-options.png?alt=media" alt="" data-size="line"> button on the device row.
{% endhint %}

See [Lifecycle Operations](https://nso-docs.cisco.com/guides/nso-6.3/operation-and-usage/operations/lifecycle-operations) for the details of these actions.
{% endtab %}

{% tab title="From the Configuration Editor -> Actions Tab" %}
Additional actions are applied per individual device. Use this option if you want to run an action with additional parameters.

1. Click the device name in the list.
2. Access the **Actions** tab in the **Configuration editor**.
3. Click the desired action in the list.
4. At this point, you can configure different parameters.

   (To reset all the parameters to their default value, use the **Reset action parameters** option).
5. Run the action.

{% hint style="info" %}
To fetch information about an action in the **Configuration editor** -> **Actions** tab, click the info <img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-f5a086c0485a6f4240fccce215adaf758fba9a26%2Factions-info.png?alt=media" alt="" data-size="line"> icon.
{% endhint %}

**Actions Possible in the Configuration Editor -> Actions Tab**

If you access the device in the **Configuration editor**, the following additional actions are available: **migrate**, **copy-capabilities**, **find-capabilities**, **add-capability**, **instantiate-from-other-device**, **check-yang-modules**, **disconnect**, **delete-config**, **scp-to scp-from**, **load-native-config**.

See [Lifecycle Operations](https://nso-docs.cisco.com/guides/nso-6.3/operation-and-usage/operations/lifecycle-operations) for the details of these actions.
{% endtab %}
{% endtabs %}

### **Edit Device Configuration**

To edit the device configuration of an existing device:

1. In the **Devices** view, click the desired device from the list.
2. In the **Configuration editor**, click the **Edit config** tab.
3. Make the desired changes.

   (Press **Enter** to save the changes. An uncommitted change in a field's value is marked by a green color, and is referred to as a 'dirty state').
4. Review and commit the change in the **Commit manager**.

{% hint style="info" %}
The other two tabs, i.e., **Config** and **Operdata** can be respectively used to:

* View the device configuration, and,
* View the device's operational data.
  {% endhint %}

## Device Groups <a href="#d5e5978" id="d5e5978"></a>

The **Device groups** view lists all the available groups and devices belonging to them. You can add new device groups in this view as well as carry out actions on devices belonging to a group.

<figure><img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-6bb120b1708a8a485f9d57083934df679c8da4ae%2Fdevice-groups.png?alt=media" alt=""><figcaption><p>Device Groups View</p></figcaption></figure>

### **Create a Device Group**

Device groups allow for the grouping and collective management of devices.

1. Click **Add device group**.
2. In the **Create device group** pop-up, specify the group name.
   * If you want to place the new device group under a parent group, select the **Place under parent device group** option and specify the parent group.
3. Click **Create**. You will be redirected to the group's details page. Here, the following panes are available:
   * **Details**: Displays basic details of the group, i.e., its name and parent/subgroup information. To link a sub-group, use the **Connect sub device group** option.
   * **Devices in this group**: Displays currently added devices in the group and provides the option to remove them from the group.
   * **Add devices**: Displays all available NSO devices and provides the option to add them to the group.
4. In the **Add devices** pane, select the device(s) that you want to add to the new group and click **Add devices to group**. The added devices become visible under the **Devices in this group** pane.
5. Finally, click **Save**.

### **Remove Device(s) from a Device Group**

1. Click the desired device group to access the group's detail page.
2. In the **Devices in this group** pane, select the device(s) to be removed from the group.
3. Click **Remove from device group**. The devices are removed immediately (without a Commit Manager review).
4. Click **Save**.

### **Apply an Action on a Device Group**

Device group actions let you perform an action on all the devices belonging to a group.

1. Select the desired device group from the list. It is possible to select multiple groups at once.
2. Choose the desired action from the **Choose actions** button.

{% hint style="info" %}
In the **Device groups** view, you can also apply actions on a device group using the more options <img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-364d49109869070dc89f5e2c9daec76160fa3bac%2Fmore-options.png?alt=media" alt="" data-size="line"> button.
{% endhint %}

**Actions Possible in the Device Groups View**

The available group actions are the same as in the section called [Apply an Action on a Device](#apply-an-action-on-a-device) (e.g., **Connect**, **Sync from**, **Sync to**, etc.) and are described in [Lifecycle Operations](https://nso-docs.cisco.com/guides/nso-6.3/operation-and-usage/operations/lifecycle-operations).

{% hint style="info" %}
The **Modify in Config editor** option is accessible by clicking the more options <img src="https://1876216345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwbLDUJab3XTjcyLTPcUK%2Fuploads%2Fgit-blob-364d49109869070dc89f5e2c9daec76160fa3bac%2Fmore-options.png?alt=media" alt="" data-size="line"> button on a device group.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nso-docs.cisco.com/guides/nso-6.3/operation-and-usage/webui/devices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
