snmdb_console_load manual page
Table of Contents

NAME

snmdb_console_load - causes the Site/SunNet/Domain Manager Console to load a specified ASCII management database (MDB) file

SYNOPSIS

int snmdb_console_load(pathname, rpc_error, console_error) char *pathname;
int *rpc_error, *console_error;

DESCRIPTION

Loading the database is accomplished through an RPC call to the Site/SunNet/Domain Manager Console.

The call returns only after the load operation is completed. The Console should not be locked when this call is issued.

INPUT ARGUMENTS

pathname
pointer to the character string that represents the path name of the MDB file.

rpc_error
pointer to integer for returned errors (can be NULL pointer).

console_error
pointer to integer for returned errors (can be NULL pointer).

RETURN VALUE

One of the following values is returned:

0
Success.

1
Could not contact the Site/SunNet/Domain Manager Console successfully. Either the Console was not running or the version of the Console that is running does not support this call. No specific errors are returned.

2
RPC error. The value of the integer pointed to by rpc_error is set to one of the values of type enum clnt_stat defined in the header file /usr/include/rpc/clnt.h, cast into an integer.

3
Operation failed. This means that the value of the integer pointed to by console_error is set to a UNIX error code, as defined in /usr/include/sys/errno.h.


Table of Contents