diff options
author | liang gao <jean.gaoliang@huawei.com> | 2016-07-26 07:04:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-07-26 07:04:59 +0000 |
commit | cde1aeb9fcb6b4227f15c667e4da5ac459870a45 (patch) | |
tree | 599d4e91da9ff268d35bc8e8c583a0a7c810ad64 | |
parent | 359a5cb1e9f3cbff04380e918f7a5ab179375d0a (diff) | |
parent | b3fe2550c2edb22a8b2c3222babfc5fc53ad74e5 (diff) |
Merge "Create Bash Sheel Utilities for TC054"
-rw-r--r-- | yardstick/benchmark/scenarios/availability/ha_tools/network/ping.bash | 17 | ||||
-rw-r--r-- | yardstick/benchmark/scenarios/availability/monitor_conf.yaml | 2 |
2 files changed, 19 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 diff --git a/yardstick/benchmark/scenarios/availability/monitor_conf.yaml b/yardstick/benchmark/scenarios/availability/monitor_conf.yaml index d7bbdfe60..c94e4fdfe 100644 --- a/yardstick/benchmark/scenarios/availability/monitor_conf.yaml +++ b/yardstick/benchmark/scenarios/availability/monitor_conf.yaml @@ -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 |