High Availability Monitors Version A.03.02 Release Notes

NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
OPEN_FILE
Chapter 3 481
OPEN_FILE
An application uses this verb to access the SNAplus2 domain
configuration file in order to manage domain resources, or to access the
sna.net file in order to manage backup master servers on the SNAplus2
LAN. The application shouldalways issue CLOSE_FILEfor any open file
handles before it exits
This verb must be issued with a null target handle. If it completes
successfully, SNAplus2 returns a handle identifying the file, which the
application can then use on other NOF verbs to indicate the target for
the verb.
VCB Structure
typedef struct open_file
{
unsigned_s opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
CONFIG_FILE file_info; /* definition of file requested */
AP_UINT32 target_handle; /* handle for subsequent verbs */
} OPEN_FILE;
typedef struct config_file
{
unsigned char requested_role; /* config file requested */
unsigned char role_supplied; /* config file returned */
unsigned char system_name[64]; /* computer name where file */
/* located */
unsigned char file_name[81]; /* file name */
} CONFIG_FILE;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_OPEN_FILE