Found an issue with my code. Needed quotes around the server list and hlu list. $resp = `uemcli -d $IP_ADDR -u $USER -p $PASS -silent -noHeader /stor/prov/luns/lun -id $str1 set -lunHosts \"$lun_servers{$str1}\" -hlus \"$lun_pairs{$str1}\" | grep "Operation completed successfully"`;
Hi I'm writing a Perl script to add a standby server to a server's LUNs as part of a DR scenario. The LUNs on the source host might also be accessible from RecoverPoint. I want to leave the access to the original host and RecoverPoint and just add access to the standby host. I've been able to look up the source server LUNs and their associated HLUs and their associated servers. But when I run the post for storageResource modify LUN, I get this error.'errorCode' => 131149864,'httpStatusCode' => 422,'messages' => [{'en-US' => 'Cannot find the specified host by id/name Host_47,Host_49. Please recheck if it exists. (Error Code:0x7d13028)' Host_47 is the source server and Host_49 is the standby server. Here is the code for this test. $resp = request(POST, "instances/storageResource/sv_1164/action/modifyLun",{"lunParameters"=> {"hostAccess"=> [{"host"=> {"id"=> "Host_47,Host_49"},"accessMask"=> 1,"hlu"=> 7 }]}}); When I removed "Host_47," from the call, it moved LUN sv_1164 from Host_47 to Host_49. Is there a way to add Host_49 instead of replacing the current access? Jim
Unity Rest API - update multiple hosts on LUNs