Changeset 963 for trunk/Monitoring/libIGCM_mock
- Timestamp:
- 11/05/13 09:26:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Monitoring/libIGCM_mock/libIGCM_mock.sh
r878 r963 18 18 # init 19 19 20 send_msg_cmd="/home/jripsl/snapshot/Monitoring/CNClient/sendAMQPMsg" 20 l__configcard_file_sample_dir="/home/cscompute/CNClient/sample" 21 send_msg_cmd="/home/cscompute/CNClient/sendAMQPMsg" 22 23 g__broker_host=cstest-broker.ipsl.jussieu.fr 24 g__broker_port=5672 21 25 g__stackfile= 22 26 g__scenario_dir=scenario … … 50 54 OPTIONS: 51 55 -c ask for confirmation 56 -d dry-run 52 57 -h this help 53 58 -f set stack file … … 94 99 send_cleanup_msg() 95 100 { 96 $send_msg_cmd -h localhost -p 5672-b "$( echo {\"code\":\"8888\"} | base64 -w 0 )"101 $send_msg_cmd -h $g__broker_host -p $g__broker_port -b "$( echo {\"code\":\"8888\"} | base64 -w 0 )" 97 102 } 98 103 … … 171 176 # special processing for "file" key (base64 encoding) 172 177 173 l__configcard_file=" /home/jripsl/snapshot/Monitoring/sample/${field_arr[1]}"178 l__configcard_file="$l__configcard_file_sample_dir/${field_arr[1]}" 174 179 175 180 # check … … 211 216 # debug 212 217 #echo $l__JSON_msg_buf_encoded 213 #echo $send_msg_cmd -h localhost -p 5672-b "$l__JSON_msg_buf_encoded"218 #echo $send_msg_cmd -h $g__broker_host -p $g__broker_port -b "$l__JSON_msg_buf_encoded" 214 219 215 220 # send AMQP message 216 221 if [ "$g__dryrun" = "1" ]; then 217 222 218 echo $send_msg_cmd -h localhost -p 5672-b "$l__JSON_msg_buf"223 echo $send_msg_cmd -h $g__broker_host -p $g__broker_port -b "$l__JSON_msg_buf" 219 224 220 225 … … 230 235 231 236 else 232 $send_msg_cmd -h localhost -p 5672-b "$l__JSON_msg_buf_encoded"237 $send_msg_cmd -h $g__broker_host -p $g__broker_port -b "$l__JSON_msg_buf_encoded" 233 238 fi 234 239 … … 266 271 #echo $line | awk -F" " '{print $4}' 267 272 callname=$(echo $line | awk -F" " '{print $4}' ) 268 $send_msg_cmd localhost 5672string "$callname"273 $send_msg_cmd $g__broker_host $g__broker_port string "$callname" 269 274 done 270 275 else
Note: See TracChangeset
for help on using the changeset viewer.