aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/availability/ha_tools
diff options
context:
space:
mode:
authortjuyinkanglin <14_ykl@tongji.edu.cn>2016-07-24 23:33:55 +0800
committertjuyinkanglin <14_ykl@tongji.edu.cn>2016-07-25 15:53:50 +0800
commitb3fe2550c2edb22a8b2c3222babfc5fc53ad74e5 (patch)
treeb85ac2796b8991b3b9945c5e71f4e54b57391f29 /yardstick/benchmark/scenarios/availability/ha_tools
parent6ce3a97548e95a62cf39f37c76bf5b618f5575c4 (diff)
Create Bash Sheel Utilities for TC054
JIRA: YARDSTICK-277 Change-Id: I723bc6e0d054020831a8e9f743f20e51d937e4dc Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/ha_tools')
-rw-r--r--yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash17
1 files changed, 17 insertions, 0 deletions
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
index 000000000..1e30e3ab6
--- /dev/null
+++ b/yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash
@@ -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