HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
DEFINE_DSPU_TEMPLATE
3.24.1 VCB Structure
typedef struct define_dspu_template
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv3; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char template_name[8]; /* Name of template */
unsigned char description[32]; /* resource description */
unsigned char reserv2[16]; /* reserved */
unsigned char modify_template; /* Modify existing template? */
unsigned char reserv1[11]; /* reserved */
AP_UINT16 max_instance; /* Max active template */
/* instances */
AP_UINT16 num_of_dslu_templates;/* number of DSLU templates*/
} DEFINE_DSPU_TEMPLATE;
typedef struct dslu_template
{
unsigned char min_nau; /* Minimum NAU address in range*/
unsigned char max_nau; /* Maximum NAU address in range*/
unsigned char allow_timeout; /* Allow timeout of host LU? */
unsigned char delayed_logon; /* Allow delayed logon to host */
/* LU */
unsigned char reserv1[8]; /* reserved */
unsigned char host_lu[8]; /* Host LU or Pool name */
} DSLU_TEMPLATE;
3.24.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_DSPU_TEMPLATE
template_name
The name of the template for downstream LUs that are present on a group of downstream workstations.
description
Resource description that is returned on the QUERY_DSPU_TEMPLATE verb.
modify_template
Species whether this verb should add additional DSLU templates to an existing DSPU template or should
replace an existing DSPU template. Possible values are:
AP_MODIFY_DSPU_TEMPLATE
If the named DSPU template does not exist, then it is created. If the named DSPU template does exist,
then appended DSLU templates are added to the existing DSPU template.
AP_REPLACE_DSPU_TEMPLATE
A new template is created, overwriting any existing denition.
max_instance
The maximum number of instances of the template that can be active concurrently. When the limit is reached,
no new instances are created. Specify a value in the range 065,535, where 0 (zero) indicates no limit.
147