#ยช/bin/bash source /tmp/net-eth0.conf FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html FILEINFOCACHE=/opt/opengnsys/log/`ogGetIpAddress`.cache.txt ogMountCache CACHECONTENIDO=`ls -m /opt/opengnsys/cache/opt/opengnsys/images` SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}') DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}') CACHESIZEFREE=$(ogGetFreeSize `ogFindCache`) expr $CACHESIZEFREE / 1024 > /opt/opengnsys/log/`ogGetIpAddress`.cache.txt && echo '.MB,' >> /opt/opengnsys/log/`ogGetIpAddress`.cache.txt # # echo ''; # cat > $FILEINFOHTML << EOF
|
Hostname: | IP | MAC | Speed | duplex |
$HOSTNAME | $(ogGetIpAddress) | $(ogGetMacAddress) | $SPEED | $DUPLEX |