NAME
snmdb_add_alias - adds an alias record for the element
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_add_alias(buffer, aliasName)
snmdb_buffer *buffer;
char *aliasName;
DESCRIPTION
The name of element used at creation time is its primary name. There may be one or more secondary names added later for the element by adding alias records. Both primary and secondary names should be unique in the elements name space.
An element may be identified by multiple names through its alias records. snmdb_add_alias(3n) adds an alias record into the buffer, specifying that the element is also known as aliasName.
INPUT ARGUMENTS
buffer
pointer to a structure of type snmdb_buffer.
aliasName
the secondary name which the element is also known as.
RETURN VALUE
Returns 1 if successful. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.
SEE ALSO
snmdb_delete_alias(3n), snmdb_enumerate_aliases(3n)