forked from ErickRamirezDS/cass_log_tools
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhighlight_output_log.sh
executable file
·54 lines (42 loc) · 1.15 KB
/
highlight_output_log.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
#
# Gets a list of support-relevant entries from the output.log
#
# Author Erick Ramirez, 2015 Jul 14
#
logs=*/logs/cassandra/output.log
#logs=*/logs/cassandra/system.log
# validate script is run in nodes/ directory
this_pwd=`pwd`
this_dir=`basename "$this_pwd"`
#echo "DEBUG >>>>> this_dir [$this_dir]"
if [ ! "$this_dir" = "nodes" ]
then
echo "USAGE - Please run script in the nodes directory of a Diagnostics Report"
exit 1
fi
echo "===== DSE version ====="
grep "DSE version" $logs 2> /dev/null
echo ""
echo "===== Cassandra version ====="
grep "Cassandra version" $logs 2> /dev/null
echo ""
echo "===== JNA ====="
grep "JNA" $logs 2> /dev/null
echo ""
echo "===== Heap size ====="
grep "Heap size" $logs 2> /dev/null
echo ""
echo "===== Java version ====="
grep "JVM vendor" $logs 2> /dev/null
echo ""
echo "===== Workload ====="
grep "etting my workload" $logs 2> /dev/null
echo ""
echo "===== Snitch ====="
grep "Snitch" $logs 2> /dev/null | grep Initialized
echo ""
echo "===== Topology ====="
grep "cassandra-topology.properties" $logs 2> /dev/null
echo ""
echo "NOTE - For the output to be readable, run the rename_node_dirs.sh script."