> For the complete documentation index, see [llms.txt](https://nso-docs.cisco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib.3.md).

# confd\_lib

`confd_lib` - C library for connecting to NSO

## Library

NSO Library, (`libconfd`, `-lconfd`)

## Description

The `libconfd` shared library is used to connect to NSO. The documentation for the library is divided into several manual pages:

[confd\_lib\_lib(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_lib.3.md)

> Common Library Functions

[confd\_lib\_dp(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_dp.3.md)

> The Data Provider API

[confd\_lib\_events(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_events.3.md)

> The Event Notification API

[confd\_lib\_ha(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_ha.3.md)

> The High Availability API

[confd\_lib\_cdb(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_cdb.3.md)

> The CDB API

[confd\_lib\_maapi(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_maapi.3.md)

> The Management Agent API

There is also a C header file associated with each of these manual pages:

`#include <confd_lib.h>`

> Common type definitions and prototypes for the functions in the [confd\_lib\_lib(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_lib.3.md) manual page. Always needed.

`#include <confd_dp.h>`

> Needed when functions in the [confd\_lib\_dp(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_dp.3.md) manual page are used.

`#include <confd_events.h>`

> Needed when functions in the [confd\_lib\_events(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_events.3.md) manual page are used.

`#include <confd_ha.h>`

> Needed when functions in the [confd\_lib\_ha(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_ha.3.md) manual page are used.

`#include <confd_cdb.h>`

> Needed when functions in the [confd\_lib\_cdb(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_cdb.3.md) manual page are used.

`#include <confd_maapi.h>`

> Needed when functions in the [confd\_lib\_maapi(3)](https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib_maapi.3.md) manual page are used.

For backwards compatibility, `#include <confd.h>` can also be used, and is equivalent to:

```
#include <confd_lib.h>
#include <confd_dp.h>
#include <confd_events.h>
#include <confd_ha.h>
```

## See Also

The NSO User Guide


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://nso-docs.cisco.com/guides/nso-6.7/resources/man/confd_lib.3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
