Skip to content
Snippets Groups Projects
Verified Commit 9a6f1cf5 authored by Štěpán Henek's avatar Štěpán Henek :bear:
Browse files

diagnostics: new modules added

* dns
* messages
parent dc2a4488
No related branches found
No related tags found
1 merge request!9Resolve "Add script(s) for generating diagnostics"
......@@ -10,7 +10,7 @@ if [ "$1" = "run" ] ; then
# get the package info
opkg info $(opkg search "$(which cron)" | cut -d ' ' -f1)
# md5 + sizes of the files
# read the cron files
grep '' /etc/cron.d/*
echo
......
help="
gather dns related informations
"
if [ "$1" = "run" ] ; then
# resolver config
uci -q show resolver
uci -q show unbound
uci -q show kresd
echo
# root key
ls -al /etc/root.keys
md5sum /etc/root.keys
ls -al /etc/unbound/root.key
md5sum /etc/unbound/root.key
echo
grep -H '' /etc/resolv.conf*
# try to resolve some server
dig @localhost api.turris.cz # should pass
dig @localhost www.rhybar.cz # should fail
dig @localhost *.wilda.rhybar.0skar.cz # should fail
dig @localhost *.wilda.nsec.0skar.cz A # should pass
dig @localhost *.wild.nsec.0skar.cz # should pass
dig @localhost *.wilda.0skar.cz # should pass
dig @localhost *.wild.0skar.cz # should pass
dig @localhost www.wilda.nsec.0skar.cz # should pass
dig @localhost www.wilda.0skar.cz # should pass
dig @localhost *.wilda.rhybar.ecdsa.0skar.cz # should fail
fi
help="
read /var/log/messages
"
if [ "$1" = "run" ] ; then
ls /var/log/messages* | sort -r | while read path; do
echo "$path"
if [ "${path:$((${#path} - 2))}" = "gz" ] ; then
zcat "$path"
else
cat "$path"
fi
done
fi
......@@ -4,9 +4,5 @@ list running processes
"
if [ "$1" = "run" ] ; then
if ls $(which ps) | grep -q busybox ; then
ps w
else
ps aux
fi
busybox ps w
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment