NAME
snmdb_add_agent - adds an agent record for the element
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_add_agent(buffer, agent, proxy)
snmdb_buffer *buffer;
char *agent;
char *proxy;
DESCRIPTION
You may add an agent record in the element buffer by specifying the name of the agent, and the name of the system providing the proxy function if the agent is a proxy.
INPUT ARGUMENTS
buffer
pointer to a structure of type snmdb_buffer.
agent
name of the agent.
proxy
optional, name of the system that provides the proxy function if it is a proxy agent.
RETURN VALUE
Returns 1 if successful. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.