Create Bash Sheel Utilities for TC054 67/17467/2
authortjuyinkanglin <14_ykl@tongji.edu.cn>
Sun, 24 Jul 2016 15:33:55 +0000 (23:33 +0800)
committertjuyinkanglin <14_ykl@tongji.edu.cn>
Mon, 25 Jul 2016 07:53:50 +0000 (15:53 +0800)
JIRA: YARDSTICK-277

Change-Id: I723bc6e0d054020831a8e9f743f20e51d937e4dc
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash [new file with mode: 0644]
yardstick/benchmark/scenarios/availability/monitor_conf.yaml

diff --git a/yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash b/yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash
new file mode 100644 (file)
index 0000000..1e30e3a
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+# this script check the ip status via ping
+# Usage:
+#   ping <ip>
+# parameter ip - ip address
+
+ping $1 -c 1
index d7bbdfe..c94e4fd 100644 (file)
@@ -9,3 +9,5 @@ nova-image-list:
   monitor_script: ha_tools/nova_image_list.bash
 service-status:
   monitor_script: ha_tools/check_service.bash
+ip-status:
+  monitor_script: ha_tools/network/ping.bash