gpt-2741gnac_root_files/_mtdblock5.img.extracted/squashfs-root/usr/script/zydbg.sh
2023-11-26 03:26:24 -03:00

80 lines
1.4 KiB
Bash
Executable file

#! /bin/sh
dbgon()
{
voice zyims debug dest 2
sleep 1
voice zyims debug all 1
}
dbgoff()
{
voice zyims debug dest 0
sleep 1
voice zyims debug all 0
}
dbgget()
{
echo "Start to get debug data"
echo " (1) ====> "
date
echo " (2) ====> "
ifconfig
echo " (3) ====> "
cat /proc/meminfo
echo " (4) ====> "
ps
echo " (5) ====> "
ip rule
echo " (6) ====> "
ip route
echo " (7) ====> "
ip route ls table 301
echo " (8) ====> "
ip route ls table 302
echo " (9) ====> "
ip route ls table 303
echo " (10) ====> "
ip route ls table 304
echo " (11) ====> "
arp
echo " (12) ====> "
iptables -t mangle -L -nv; sleep 1; iptables -t mangle -L -nv;sleep 1; iptables -t mangle -L -nv
echo " (13) ====>"
voice zyims sip show
echo " (14) ====> "
voice zyims sip showapp
echo " (15) ====>"
voice zyims sip showline 0
echo " (16) ====>"
voice zyims sip showsys
echo " (17) ====>"
voice zyims mm status dsp
echo " (18) ====>"
voice zyims fsm phone
echo " (19) ====>"
voice zyims fsm ccm
echo " (20) ====>"
cat /var/log/swdogrec.log
echo " (21) ====>"
cat /var/log/voipRegistrationRec.log
echo "Cpature completely!"
}
case "$1" in
dbgon)
dbgon
;;
dbgoff)
dbgoff
;;
dbgget)
dbgget
;;
*)
echo "Usage: $0 {dbgon|dbgoff|dbgget}" >&2
exit 1
;;
esac
exit 0