#!/bin/bash


file=$1

log_info()
{
    echo "$1:" >> $file
    eval $1 >> $file
}

log_info "echo q | top"
log_info "date"  
log_info "uptime"
log_info "free"
log_info "ps aux" 
log_info "df" 
log_info "dmesg" 
log_info "cat /proc/li*" 
log_info "cat /proc/meminfo" 
log_info "cat /proc/cmdline" 
log_info "cat /proc/FPGA_VERSION" 
log_info "cat /proc/interrupts" 
log_info "cat /proc/l1_stats" 
log_info "cat /proc/l2_stats" 
log_info "lsmod" 
log_info "ifconfig" 
log_info "ifconfig -a" 
log_info "iptables -L"
log_info "iptables -L -t nat"
log_info "netstat -na"

