-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. New health command 2. SMD sync healthcheck 3. Feature for Collectinfo should dump data in both JSON and multiple snapshot in single collectinfo request. 4. Create new library for collectinfo parser 5. Separate out log-analyzer and collectinfo-analyzer as two different modes on operations of asadm.
- Loading branch information
Showing
85 changed files
with
19,199 additions
and
9,506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=pexpect | ||
|
||
PACKAGE=python-pexpect | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "pexpect already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ -f /etc/os-release ]; then | ||
. /etc/os-release | ||
fi | ||
|
||
distro_id=${ID,,} | ||
distro_version=${VERSION_ID} | ||
|
||
case "$distro_id:$distro_version" in | ||
'debian:8' | 'ubuntu:'* ) | ||
echo Installing ${PACKAGE} | ||
apt-get install -y ${PACKAGE} | ||
;; | ||
* ) | ||
if ! command_exists pip ; then | ||
echo Installing python-dev | ||
apt-get install -y python-dev | ||
|
||
echo Installing python-setuptools | ||
apt-get install -y python-setuptools | ||
|
||
echo Installing pip | ||
easy_install pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo Installing ${PYMODULE} | ||
pip install ${PYMODULE} | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=ply | ||
|
||
PACKAGE=python-ply | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "ply already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ -f /etc/os-release ]; then | ||
. /etc/os-release | ||
fi | ||
|
||
distro_id=${ID,,} | ||
distro_version=${VERSION_ID} | ||
|
||
case "$distro_id:$distro_version" in | ||
'debian:8' | 'ubuntu:'* ) | ||
echo Installing ${PACKAGE} | ||
apt-get install -y ${PACKAGE} | ||
;; | ||
* ) | ||
if ! command_exists pip ; then | ||
echo Installing python-dev | ||
apt-get install -y python-dev | ||
|
||
echo Installing python-setuptools | ||
apt-get install -y python-setuptools | ||
|
||
echo Installing pip | ||
easy_install pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo Installing ${PYMODULE} | ||
pip install ${PYMODULE} | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=pexpect | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "pexpect already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
if ! command_exists pip ; then | ||
echo Installing pip | ||
easy_install pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
echo Installing ${PYMODULE} | ||
pip install ${PYMODULE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=ply | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "ply already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
if ! command_exists pip ; then | ||
echo Installing pip | ||
easy_install pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
echo Installing ${PYMODULE} | ||
pip install ${PYMODULE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=pexpect | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "pexpect already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
pip_command="pip" | ||
if ! command_exists ${pip_command} ; then | ||
echo Installing epel-release | ||
yum install epel-release | ||
|
||
echo Installing pip | ||
yum install -y python-pip | ||
|
||
if ! command_exists ${pip_command} ; then | ||
if command_exists pip-python ; then | ||
pip_command="pip-python" | ||
elif command_exists python-pip ; then | ||
pip_command="python-pip" | ||
fi | ||
fi | ||
if ! command_exists ${pip_command} ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
echo Installing ${PYMODULE} | ||
${pip_command} install ${PYMODULE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
################################################################################ | ||
|
||
PYMODULE=ply | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
python <<EOF | ||
try: | ||
import ${PYMODULE} | ||
print "ply already installed on this machine" | ||
import sys | ||
sys.exit(0) | ||
except Exception as e: | ||
import sys | ||
sys.exit(1) | ||
EOF | ||
has_pymodule=$? | ||
|
||
if [ $has_pymodule -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
pip_command="pip" | ||
if ! command_exists ${pip_command} ; then | ||
echo Installing epel-release | ||
yum install epel-release | ||
|
||
echo Installing pip | ||
yum install -y python-pip | ||
|
||
if ! command_exists ${pip_command} ; then | ||
if command_exists pip-python ; then | ||
pip_command="pip-python" | ||
elif command_exists python-pip ; then | ||
pip_command="python-pip" | ||
fi | ||
fi | ||
if ! command_exists ${pip_command} ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
echo Installing ${PYMODULE} | ||
${pip_command} install ${PYMODULE} |
Oops, something went wrong.