HP StorageWorks MSA 2/8 - SAN Switch User Manual page 232

Hp storageworks fabric watch v3.1.x/4.1.x user guide (aa-rtsgc-te, june 2003)
Hide thumbs Also See for StorageWorks MSA 2/8 - SAN Switch:
Table of Contents

Advertisement

Sample API Script
if (str_len > 0) {
addr_string = (char *) malloc(sizeof(char) * str_len);
strcpy(addr_string, buf);
}
(ipaddress)[0]=(AddrType) malloc(strlen(addr_string)+1);
strcpy((ipaddress)[0],addr_string);
if (addr_string) {
free(addr_string);
addr_string = NULL;
}
(ipaddress)[1] = (AddrType) malloc(sizeof(char));
*(ipaddress)[1] = '\0';
InitializeFabricAccess(ipaddress);
GetFabricIdentities(&fab_id_p);
EstablishFabricSession(&fab_id_p->FabricOID,"admin","password");
strcpy(FabOID.OIDword, (fab_id_p->FabricOID).OIDword);
GetSingleObject(&FabOID,(ObjTypeGeneric **)&fab_obj_p);
strcpy(switchOID.OIDword, (fab_obj_p->ProxySet[0]).OIDword);
falFreeObject((void *)fab_obj_p);
fab_obj_p=NULL;
fwClass = FW_CLASS_ENV;
fwArea = FW_AREA_TEMP;
fwIndex = 1;
EncodeFWClassAreaOID(switchOID,(FWClass_t)fwClass,(FWArea_t)fwArea,&classAreaOID
);
232
Fabric Watch Version 3.1.x/4.1.x User Guide

Advertisement

Table of Contents
loading

Table of Contents