forked from distributed-system-analysis/pbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes distributed-system-analysis#227 - add *working* sar indexing su…
…pport Add unit tests for sar ingress under 'test-9'; Also: - fix existing unit tests for this branch; - update line no.s for gold test 7.{3..5}. Refer distributed-system-analysis#303 - update .gitignore: __pycache__ in any dir - cleanup sar-index code addition
- Loading branch information
Archit Sharma
committed
Feb 25, 2017
1 parent
cbef546
commit 5efd8ee
Showing
22 changed files
with
4,067 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
doc/*.html | ||
|
||
__pycache__ | ||
configtools/bin/getconf.3.py | ||
configtools/bin/getconf.py | ||
configtools/bin/gethosts.3.py | ||
configtools/bin/gethosts.py | ||
configtools/build | ||
.build | ||
.rpm-copy | ||
.spec-copy | ||
mock-build.log | ||
rpm.conf | ||
*.swp |
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,3 @@ | ||
#!/bin/bash | ||
|
||
head $1 | grep nodename | awk -F'=' '{print$2}' | sed 's#[">]##g' |
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,27 @@ | ||
#!/bin/bash | ||
|
||
sa_data_file=$1 | ||
file_path=$(dirname "${sa_data_file}") | ||
xml_file_path="$2" | ||
|
||
sadf_type=$( { ${BASH_SOURCE%/*}/satools/oscode "$sa_data_file"; } 2>&1) | ||
|
||
if [[ "$sadf_type" == *Invalid* ]]; then | ||
sadf_type="f23" | ||
echo "attempting to convert sa binary to compatible format.." | ||
conversion_output=$( { LC_ALL=C ${BASH_SOURCE%/*}/vos/analysis/bin/sadf-f23-64 -c "$sa_data_file" > "${sa_data_file%/}".conv ; } 2>&1) | ||
if [[ "$conversion_output" == *Invalid* ]]; then | ||
echo "invalid input file! check if its a SA *binary* file.." | ||
exit 1 | ||
fi | ||
sa_data_file="${sa_data_file%/}".conv | ||
fi | ||
|
||
LC_ALL=C ${BASH_SOURCE%/*}/vos/analysis/bin/sadf-$sadf_type-64 -x "$sa_data_file" -- -A > "$xml_file_path" | ||
|
||
client_nodename=$(${BASH_SOURCE%/*}/detect_nodename $xml_file_path) | ||
echo "nodename: $client_nodename" | ||
|
||
if [[ "$(basename $sa_data_file)" =~ ^.*\.conv$ ]]; then | ||
rm "$sa_data_file" | ||
fi |
Oops, something went wrong.