Hello There ,
can anyone please check once and let me know what am i doing wrong?
i am trying to create profiles in net_connect probe using API . command below . It is creating a profile , however ignore rest of the configuration .
below command is getting executed without any error and i can see the profile getting created but with empty fields. Any help would be great .
we are on UIM 9.10 and i am trying to create this profile on linux robot .
curl -trace -X POST -u administrator:'***********' --header 'Content-Type: application/json' --header 'Accept: application/json' -d '[{"key": "profiles/c-hongkong/qos_on_packets_lost", "value": "no"}, {"key": "profiles/c-hongkong/ping", "value": "yes"}, {"key": "profiles/c-hongkong/packets_to_send", "value": "0"}, {"key": "profiles/c-hongkong/flags", "value": "0"}, {"key": "profiles/c-hongkong/source", "value": "2"}, {"key": "profiles/c-hongkong/alarm_on_jitter", "value": "0"}, {"key": "profiles/c-hongkong/timeout", "value": "0"}, {"key": "profiles/c-hongkong/hostname", "value": "c-hongkong"}, {"key": "profiles/c-hongkong/QoS", "value": "yes"}, {"key": "profiles/c-hongkong/alarm", "value": "3"}, {"key": "profiles/c-hongkong/delay_between_packet_to_send", "value": "0"}, {"key": "profiles/c-hongkong/icmp_threshold", "value": "1"}, {"key": "profiles/c-hongkong/threshold_fail", "value": "ping threshold failed"}, {"key": "profiles/c-hongkong/msg_ok", "value": "MsgConnectOk"}, {"key": "profiles/c-hongkong/failures", "value": "1"}, {"key": "profiles/c-hongkong/threshold_ok", "value": "ping threshold OK"}, {"key": "profiles/c-hongkong/msg_fail", "value": "MsgConnectFail"}, {"key": "profiles/c-hongkong/ip", "value": "10.20.30.40"}, {"key": "profiles/c-hongkong/active", "value": "yes"}, {"key": "profiles/c-hongkong/target", "value": "2"}, {"key": "profiles/c-hongkong/retries", "value": "3"}, {"key": "profiles/c-hongkong/max_jitter", "value": ""}, {"key": "profiles/c-hongkong/contactinfo", "value": "dojha@mlp.com"}, {"key": "profiles/c-hongkong/max_packets_lost", "value": "0"}, {"key": "profiles/c-hongkong/interval", "value": "5sec"}, {"key": "profiles/c-hongkong/qos_source", "value": "2"}, {"key": "profiles/c-hongkong/alarm_on_packet_loss", "value": "no"}, {"key": "profiles/c-hongkong/icmp_size", "value": "0"}]' 'http://******/rest/probe/UIM_DEV/HUB/ROBOT/net_connect/config'
Thanks
Devi