Technical Goulash

Script Archive: GPS Check

Script Archive: GPS Check

!/bin/sh Build Header /bin/echo “” > /var/log/gps.log /bin/echo “Node: “/bin/hostname -f >> /var/log/gps.log /bin/echo “OS: “/bin/uname -sr >> /var/log/gps.log /bin/echo “Date: “/bin/date >> /var/log/gps.log /bin/echo “” >> /var/log/gps.log /bin/ls -l /var/log/ntpstats/clockstats >> /var/log/gps.log /bin/echo “” >> /var/log/gps.log /bin/echo “Checking for GPS errors …” >> /var/log/gps.log /bin/echo “” >> /var/log/gps.log myGPSV=/usr/bin/grep […]

Script Archive: lunreport

Script Archive: lunreport

!/bin/sh Script for matching LUNs with local device names Tested on Linux using open-iscsi Build Header /bin/echo “” > /var/log/lun-report.log /bin/echo “Node: “/bin/hostname -f >> /var/log/lun-report.log /bin/echo “OS: “/bin/uname -o;/bin/uname -r >> /var/log/lun-report.log /bin/echo “Date: “/bin/date >> /var/log/lun-report.log /bin/echo “” >> /var/log/lun-report.log for v in /sbin/vgdisplay | /bin/grep “VG Name” […]