> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/v/veritas-netbackup.md).

# Veritas NetBackup

Veritas NetBackup is an enterprise backup and recovery platform. OctoXLabs reads the VMware workload assets from the NetBackup Asset Service. This adds protected virtual machines and their IP addresses to the inventory.

## Use cases

* List the virtual machines that NetBackup knows.

```
Adapters = veritas-netbackup
```

* Find assets that are in your inventory but not in NetBackup. Replace `vmware-vcenter` with any source that lists your virtual machines.

```
Adapters = vmware-vcenter AND NOT Adapters = veritas-netbackup
```

## Before you begin

### Network

| Source              | Destination              | Port                         | Protocol |
| ------------------- | ------------------------ | ---------------------------- | -------- |
| OctoXLabs connector | NetBackup primary server | 1556 (default, configurable) | HTTPS    |

### Required permissions

| Scope or role                       | Permission | Needed for             |
| ----------------------------------- | ---------- | ---------------------- |
| User with the REST API account type | Read       | VMware workload assets |

The user must have the **REST API** account type on NetBackup. Only one API key can belong to a user at a time.

## Create credentials in Veritas NetBackup

Provide one of two methods. If you fill both, the API key is used.

{% stepper %}
{% step %}

### Open API keys

In the NetBackup web UI, select **Security**, then **Access keys**, then **API keys**. Click **Add**.
{% endstep %}

{% step %}

### Select the user

Enter the user name the key is for. For a SAML user, select SAML authentication. The key stays inactive until that user signs in to the web UI.
{% endstep %}

{% step %}

### Set the validity

Choose how long the key is valid. NetBackup shows the expiry date. Click **Add**.
{% endstep %}

{% step %}

### Copy the key

Click **Copy** and close. The key cannot be shown again. If it replaces an old key, update every script that uses the old one.
{% endstep %}
{% endstepper %}

For the second method, use a domain, user name and password of an account with the REST API account type. Leave Api key empty.

## Connection parameters

| Parameter   | Required    | Type    | Default | Description                                                                           |
| ----------- | ----------- | ------- | ------- | ------------------------------------------------------------------------------------- |
| IP          | Yes         | Text    |         | IP address of the NetBackup host.                                                     |
| Port        | No          | Integer | 1556    | API port.                                                                             |
| Api key     | Conditional | Text    |         | Permanent API key. When set, Domain, Username, Password and Domain Type are not used. |
| Domain      | Conditional | Text    |         | Domain name. Needed with Username, Password and Domain Type when there is no API key. |
| Username    | Conditional | Text    |         | Account used for the domain login.                                                    |
| Password    | Conditional | Text    |         | Password of the account.                                                              |
| Is Secure?  | No          | Boolean | True    | Use HTTPS.                                                                            |
| Version     | No          | Text    | 9.0     | NetBackup API version.                                                                |
| Domain Type | No          | Text    | NT      | Domain authentication type.                                                           |
| Timeout     | No          | Integer | 30      | Seconds to wait for API responses.                                                    |
| Per Page    | No          | Integer | 100     | Records per request.                                                                  |

## Troubleshooting

| Error message                                                                     | Cause                        | Fix                                                   |
| --------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------- |
| Provide either an api\_key or all of domain, domain\_type, username and password. | Neither method is complete.  | Fill the Api key, or all four domain login fields.    |
| AuthenticationTokenError                                                          | The login returned no token. | Check the domain, domain type, username and password. |

## Change history

{% hint style="info" %}
Available starting from version 2.4.0.
{% endhint %}
