Browse Community
Help
Log In
Responses(3)
Solutions(1)
JimHInes
3 Posts
0
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"`;
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.
Praveen.Singh
3 Apprentice
•
483 Posts
March 11th, 2023 07:00
thanks @JimHInes its a known bug, rewriting the script will fix it.
Dell Support Resources
View All
Top
JimHInes
3 Posts
0
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"`;
JimHInes
3 Posts
0
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.
Praveen.Singh
3 Apprentice
•
483 Posts
0
March 11th, 2023 07:00
thanks @JimHInes its a known bug, rewriting the script will fix it.