snmdb_enumerate_agents manual page
Table of Contents

NAME

snmdb_enumerate_agents - enumerates the agents that apply to the element

SYNOPSIS

#include <netmgt/netmgt_db.h>

char **
snmdb_enumerate_agents(buffer)
snmdb_buffer *buffer;

DESCRIPTION

Agents and proxy agents are described in the agent record in the element buffer. snmdb_enumerate_agents enumerates the agent records in the buffer, and returns the pointer pointing to the list of all the agent names. After using the list, you should call snmdb_free_list(3n) to free the space.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

RETURN VALUE

Returns a NULL terminated list of all agent names that apply to the element. Returns NULL if an error occurs, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_free_list(3n)


Table of Contents