i hadn't test it, but it indeed works when i run the command direclty in a ssh window ...
unfortunately it does not in my bash script ... the script read mgmt_cli cmds from an input file and apply them one by one.
and it does work with single words color ... i'm certainly missing something in the below command.
_MSG=`mgmt_cli -s ${_SESSION_ID_F} ${1}`
$1 is add host name o365_40.81.156.153_32 ip-address 40.81.156.153 color "dark orange"
i thought it was maybe a mgmt_cli issue ... it's apparently not.
anyway, i will not ask you to troubleshoot my bash, thanks for your replies.
for information, it's not case sensitiv, And when entering a wrong color, it replies with the below error message that contains the list of allowed colors.
code: "generic_err_invalid_parameter"
message: "Invalid parameter for [color]. The invalid value [DarkOrange] should be replaced by one of the following values: [aquamarine, black, blue, crete blue, burlywood, cyan, dark green, khaki, orchid, dark orange, dark sea green, pink, turquoise, dark blue, firebrick, brown, forest green, gold, dark gold, gray, dark gray, light green, lemon chiffon, coral, sea green, sky blue, magenta, purple, slate blue, violet red, navy blue, olive, orange, red, sienna, yellow]"
thanks for your help