HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
DEFINE_RJE_WKSTN
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char workstation_name[4]; /* workstation name */
RJE_WKSTN_DEF_DATA def_data;
} DEFINE_RJE_WKSTN;
typedef struct rje_wkstn_def_data
{
unsigned char description[32]; /* resource description */
unsigned char reserv1[16]; /* reserved */
unsigned char primary_user[32]; /* primary user name */
unsigned char group_name[32]; /* group name */
unsigned char system_name[128]; /* computer where workstation */
/* runs */
AP_UINT16 num_lus; /* number of LUs used by wkstn */
unsigned char reserv4[18]; /* Reserved */
unsigned char lu_name[5][8]; /* names of LUs */
} RJE_WKSTN_DEF_DATA;
3.41.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_RJE_WKSTN
workstation_name
The name of the workstation. This is an ASCII string of 14 characters; it is not case-sensitive.
def_data.description
An optional text string (031 characters followed by a null character). The string is for information only; it
is stored in the conguration le and returned on the QUERY_RJE_WORKSTATION verb, but SNAplus2
does not make use of it.
def_data.primary_user
The HP-UX user ID of the main user of this workstation. This is an ASCII string, padded on the right with
spaces.
This must be a valid user ID on the HP-UX computer specied in
system_name below, and must be in
the group specied for group_name below. The les and directories that SNAplus2 creates for use by this
workstation will be owned by this user ID.
def_data.group_name
The HP-UX group name of the group of HP-UX users who use this workstation. This is an ASCII string,
padded on the right with spaces.
This must be a valid group name on the HP-UX computerspecied in system_name below, and all users who
will use the workstation must be members of the group. The les and directories which SNAplus2 creates
for use by this workstation will be owned by this group ID.
def_data.system_name
The name of the HP-UX server or client on which this workstation will run. This is an ASCII string, padded
on the right with spaces.
If the node name includes a . (period) character, SNAplus2 assumes that it is a fully-qualied name; otherwise
it performs a DNS lookup to determine the node name.
249