diff --git a/lgsm/functions/command_dev_query_raw.sh b/lgsm/functions/command_dev_query_raw.sh index 2b9267501..4d57e8aca 100644 --- a/lgsm/functions/command_dev_query_raw.sh +++ b/lgsm/functions/command_dev_query_raw.sh @@ -55,4 +55,18 @@ if [ "${querystatus}" == "0" ]; then echo "tcp query PASS" else echo "tcp query FAIL" -fi \ No newline at end of file +fi + +echo"" +echo "=================================" +echo "udp Raw Output" +echo "=================================" +echo"" +echo "bash -c 'exec 3<> /dev/udp/'${ip}'/'${queryport}''" +bash -c 'exec 3<> /dev/udp/'${ip}'/'${queryport}'' +querystatus="$?" +if [ "${querystatus}" == "0" ]; then + echo "udp query PASS" +else + echo "udp query FAIL" +fi