HP StorageWorks MSA 2/8 HP StorageWorks Fabric Watch V3.1.x/4.1.x User Guide ( - Page 232
Sample API Script, Fabric Watch Version 3.1.x/4.1.x User Guide, fwClass = FW_CLASS_ENV
View all HP StorageWorks MSA 2/8 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 232 highlights
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