3 Posts

March 17th, 2023 07:00

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"`;

3 Posts

March 10th, 2023 15:00

This seems to be a bug with the Rest API. Rewrote the script using the CLI and it is working.

Where $str1 is the CLI LUN name,

$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"`;

I saw the script was hanging. When I ran the command by itself in bash I found it was prompting me yes or no. I found the -silent flag to stop that behavior.

3 Apprentice

 • 

483 Posts

March 11th, 2023 07:00

thanks @JimHInes its a known bug, rewriting the script will fix it.

No Events found!

Top