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:
Isaac Hermida 2016-07-12 12:09:32 +02:00
parent 8ccafb9492
commit 529102b2dc
1 changed files with 5 additions and 1 deletions

View File

@ -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------------"
} }