snmdb_get_agent manual page
Table of Contents

NAME

snmdb_get_agent - gets an agent record for the element

SYNOPSIS

#include <netmgt/netmgt_db.h>

snmdb_get_agent(buffer, agent, isproxy, proxy) snmdb_buffer *buffer;
char *agent;
int *isproxy;
char *proxy;

DESCRIPTION

snmdb_get_agent retrieves the agent record for agent, indicating whether the agent is a proxy, and, if it is, the name of the system that provides the proxy function.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

agent
name of the agent.

isproxy
Boolean value specifying if the agent is a proxy.

proxy
name of the system that provides the proxy function.

RETURN VALUE

Returns 1 if an agent is found. Otherwise, it returns 0.

SEE ALSO

snmdb_add_agent(3n),
snmdb_delete_agent(3n), snmdb_enumerate_agents(3n)


Table of Contents