Technical Goulash

ifconfig deprecated, use ip (bastards)

ifconfig deprecated, use ip (bastards)

Syntax ip OBJECT COMMANDip [options] OBJECT COMMANDip OBJECT help OBJECTS: Object Abbreviation Purpose link l Network device. address aaddr Protocol (IP or IPv6) address on a device. addrlabel addrl Label configuration for protocol address selection. neighbour nneigh ARP or NDISC cache entry. route r Routing table entry. rule ru Rule […]

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” […]