ADIC Server manual Aciclientaccess, Aciadd, Acidelete

Models: Server

1 218
Download 218 pages 15.53 Kb
Page 53
Image 53

aci_clientaccess

The aci_clientaccess function modifies the access lists of a client. See Figure 4-6.

#include "aci.h"

int aci_clientaccess( char *clientname, enum aci_command action, char *volser_range, enum aci_media type, char *drive_range )

Figure 4-6

aci_clientaccess Function Call

 

 

See Table 4-4for a description of the parameters for the

 

 

aci_clientaccess function call.

Table 4-4

Parameters for the aci_clientaccess Function Call

 

 

 

 

Parameter

 

 

Description

 

 

 

clientname

 

name of the client which authorization is to be changed

 

 

 

action

 

type of the activity (add or remove access rights)

 

 

 

 

 

 

ACI_ADD

add access rights

 

 

 

 

 

 

ACI_DELETE

remove access rights

 

 

 

 

volser_range

 

• a single volser

 

 

 

• multiple volsers, separated by commas

 

 

• a range of volsers separated by a hyphen

 

 

• set to empty (““ or ‘\0’) if it is not to be changed

 

 

 

type

 

media type of the previously defined volser range

 

 

Refer to Media Types on page 2-7.

 

 

 

 

drive_range

 

• a single drive

 

 

 

• multiple drives, separated by commas

 

 

• a range of drives separated by a hyphen, or set to empty

 

 

(““ or ‘\0’) if it is not to be changed

 

 

 

 

 

 

This ACI function changes the access lists of a client named

 

 

clientname by either adding or removing access to a drive_range

 

 

and/or a volser_range. The aci_clientstatus function may be

 

 

needed to find out the drive_range and volser_range used by the

 

 

client.

 

 

 

 

aci_clientaccess 4-11

21 Dec 2001

Page 53
Image 53
ADIC Server manual Aciclientaccess, Aciadd, Acidelete