HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
DEFINE_INTERNAL_PU
3.27 DEFINE_INTERNAL_PU
The DEFINE_INTERNAL_PU verb denes a PU on the local node that is served by DLUR. (To dene a downstream
PU served by DLUR or PU concentration, or to dene a local PU that is directly attached to the host, use DEFINE_LS
instead of DEFINE_INTERNAL_PU.)
3.27.1 VCB Structure
typedef struct define_internal_pu
{
AP_UINT16 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 */
unsigned char pu_name[8]; /* internal PU name */
INTERNAL_PU_DEF_DATA def_data; /* defined data */
} DEFINE_INTERNAL_PU;
typedef struct internal_pu_def_data
{
unsigned char description[32]; /* resource description */
unsigned char initially_active; /* is PU initially active? */
unsigned char reserv1[15]; /* reserved */
unsigned char dlus_name[17]; /* DLUS name */
unsigned char bkup_dlus_name[17]; /* backup DLUS name */
unsigned char pu_id[4]; /* PU identifier */
AP_UINT16 dlus_retry_timeout; /* DLUS retry timeout */
AP_UINT16 dlus_retry_limit; /* DLUS retry limit */
unsigned char conventional_lu_compression; /* reserved */
unsigned char conventional_lu_cryptography; /* reserved */
unsigned char pu_can_send_dddlu_offline; /* does the PU send NMVT */
/* (power off) to host? */
unsigned char reserv2[1]; /* reserved */
} INTERNAL_PU_DEF_DATA;
3.27.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_INTERNAL_PU
pu_name
Name of the internal PU that is being dened. This is a type-A EBCDIC string (starting with a letter), padded
on the right with EBCDIC spaces.
This name should match the PU name congured on the host. (SNAplus2 sends both the PU name and PU
ID to the host to identify the PU. The host normally identies the PU by its PU name, or by the PU ID if it
cannot nd a matching PU name.)
def_data.description
159