meta-digi-dey: sysinfo: extend report information with more details
Extend the report with more details about: - memory usage - all network ports (-a) with their related PIDs (-p) - network link details (to determine if interface is up) Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
8ccafb9492
commit
529102b2dc
|
|
@ -131,6 +131,8 @@ make_report(){
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
free
|
free
|
||||||
|
printf "\n"
|
||||||
|
cat /proc/meminfo
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
|
|
@ -157,7 +159,7 @@ make_report(){
|
||||||
echo "- -"
|
echo "- -"
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
netstat -n -l
|
netstat -n -a -p
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
|
|
@ -177,6 +179,8 @@ make_report(){
|
||||||
echo ""
|
echo ""
|
||||||
ifconfig -a
|
ifconfig -a
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
ip link show
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
echo "-------------End of report------------"
|
echo "-------------End of report------------"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue