NAME
snmdb_open - open the database
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_open()
DESCRIPTION
snmdb_open should be called before any database operations. It opens the database and performs the necessary setup work. The database that is opened is the file db.<name>, where name is the name specified by the environment variable SNM_NAME, or the login username if SNM_NAME is not specified. The database must be located in the directory specified by the database keyword in the /etc/opt/SUNWconn/snm/snm.conf file for Solaris 2.x and the /etc/snm.conf file for Solaris 1.x, or the directory /var/opt/SUNWconn/snm for Solaris 2.x and /var/adm/snm for Solaris 1.x if there is no directory specified by the data_base keyword.
RETURN VALUE
Returns 1 if the database opened successfully; otherwise, it returns a 0.