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 ""
|
||||
free
|
||||
printf "\n"
|
||||
cat /proc/meminfo
|
||||
printf "\n\n"
|
||||
|
||||
echo "--------------------------------------"
|
||||
|
|
@ -157,7 +159,7 @@ make_report(){
|
|||
echo "- -"
|
||||
echo "--------------------------------------"
|
||||
echo ""
|
||||
netstat -n -l
|
||||
netstat -n -a -p
|
||||
printf "\n\n"
|
||||
|
||||
echo "--------------------------------------"
|
||||
|
|
@ -177,6 +179,8 @@ make_report(){
|
|||
echo ""
|
||||
ifconfig -a
|
||||
printf "\n"
|
||||
ip link show
|
||||
printf "\n"
|
||||
|
||||
echo "-------------End of report------------"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue