@@ -15,21 +15,59 @@ info_config.sh
1515info_parms.sh
1616
1717echo -e " "
18- echo -e " Query Port - Raw Output "
18+ echo -e " ${lightgreen} Query IP Addresses ${default} "
1919echo -e " =================================================================="
2020echo -e " "
21- echo -e " QUERY IP"
2221for queryip in " ${queryips[@]} " ; do
2322 echo -e " ${queryip} "
2423done
24+ echo -e " "
25+ echo -e " ${lightgreen} Game Server Ports${default} "
26+ echo -e " =================================================================="
27+ {
28+ echo -e " ${lightblue} Port Name\tPort Number\tStatus\tTCP\tUDP${default} "
29+ if [ -v port ]; then
30+ echo -e " Game:\t${port} \t$( ss -tupl| grep ${port} | wc -l) \t$( ss -tupl| grep ${port} | grep tcp| awk ' { print $2 }' ) \t$( ss -tupl| grep ${port} | grep udp| awk ' { print $2 }' ) "
31+ else
32+ echo -e " Game:\tN/A"
33+ fi
34+
35+ if [ -v queryport ]; then
36+ echo -e " Query:\t${queryport} \t$( ss -tupl| grep ${queryport} | wc -l) \t$( ss -tupl| grep ${queryport} | grep tcp| awk ' { print $2 }' ) \t$( ss -tupl| grep ${queryport} | grep udp| awk ' { print $2 }' ) "
37+ else
38+ echo -e " Query:\tN/A"
39+ fi
40+
41+ if [ -v clientport ]; then
42+ echo -e " Client:\t${clientport} \t$( ss -tupl| grep ${clientport} | wc -l) \t$( ss -tupl| grep ${clientport} | grep tcp| awk ' { print $2 }' ) \t$( ss -tupl| grep ${clientport} | grep udp| awk ' { print $2 }' ) "
43+ else
44+ echo -e " Client:\tN/A"
45+ fi
46+
47+ if [ -v rconport ]; then
48+ echo -e " RCON:\t${rconport} \t$( ss -tupl| grep ${rconport} | wc -l) \t$( ss -tupl| grep ${rconport} | grep tcp| awk ' { print $2 }' ) \t$( ss -tupl| grep ${rconport} | grep udp| awk ' { print $2 }' ) "
49+ else
50+ echo -e " RCON:\tN/A"
51+ fi
52+
53+ if [ -v httpport ]; then
54+ echo -e " HTTP:\t${httpport} \t$( ss -tupl| grep ${httpport} | wc -l) \t$( ss -tupl| grep ${httpport} | grep tcp| awk ' { print $2 }' ) \t$( ss -tupl| grep ${httpport} | grep udp| awk ' { print $2 }' ) "
55+ else
56+ echo -e " HTTP:\tN/A"
57+ fi
58+ } | column -s $' \t ' -t
59+ echo -e " "
60+ echo -e " ${lightgreen} Query Port - Raw Output${default} "
61+ echo -e " =================================================================="
62+
2563echo -e " ================================="
26- echo -e " Ports"
64+ echo -e " ${lightgreen} Ports${default} "
2765echo -e " ================================="
2866echo -e " "
2967echo -e " PORT: ${port} "
3068echo -e " QUERY PORT: ${queryport} "
3169echo -e " "
32- echo -e " Gamedig Raw Output"
70+ echo -e " ${lightgreen} Gamedig Raw Output${default} "
3371echo -e " ================================="
3472echo -e " "
3573if [ ! " $( command -v gamedig 2> /dev/null) " ]; then
@@ -45,7 +83,7 @@ for queryip in "${queryips[@]}"; do
4583 echo " ${gamedigraw} " | jq
4684done
4785echo -e " "
48- echo -e " gsquery Raw Output"
86+ echo -e " ${lightgreen} gsquery Raw Output${default} "
4987echo -e " ================================="
5088echo -e " "
5189for queryip in " ${queryips[@]} " ; do
@@ -57,7 +95,7 @@ for queryip in "${queryips[@]}"; do
5795 " ${functionsdir} " /query_gsquery.py -a " ${queryip} " -p " ${queryport} " -e " ${querytype} "
5896done
5997echo -e " "
60- echo -e " TCP Raw Output"
98+ echo -e " ${lightgreen} TCP Raw Output${default} "
6199echo -e " ================================="
62100echo -e " "
63101for queryip in " ${queryips[@]} " ; do
@@ -73,10 +111,10 @@ for queryip in "${queryips[@]}"; do
73111 fi
74112done
75113echo -e " "
76- echo -e " Game Port - Raw Output"
114+ echo -e " ${lightgreen} Game Port - Raw Output${default} "
77115echo -e " =================================================================="
78116echo -e " "
79- echo -e " TCP Raw Output"
117+ echo -e " ${lightgreen} TCP Raw Output${default} "
80118echo -e " ================================="
81119echo -e " "
82120for queryip in " ${queryips[@]} " ; do
@@ -91,5 +129,15 @@ for queryip in "${queryips[@]}"; do
91129 echo -e " TCP query FAIL"
92130 fi
93131done
132+ echo -e " "
133+ echo -e " ${lightgreen} Steam Master Server Response${default} "
134+ echo -e " =================================================================="
135+ echo -e " "
136+
137+ echo -e " "
138+ echo -e " ${lightgreen} ss Details${default} "
139+ echo -e " =================================================================="
140+ echo -e " "
141+
94142exitcode=0
95143core_exit.sh
0 commit comments