Category Archives: Linux Shell Scripts

Tshark command to show user agents

This is handy when looking at http traffic on an IDS: tshark -Y http.user_agent -T fields -e http.user_agent Advertisements

Posted in Linux Shell Scripts | Leave a comment

Read Grep exit codes

for x in `cat /tmp/t1.txt` do grep -q $x /tmp/t.txt if [[ $? -ne 0 ]] then echo $x fi done

Posted in Linux Shell Scripts | Leave a comment

SED one-liner to comment out all lines containing a string

sed -i ‘s/.*ET P2P.*/#&/g’ /etc/suricata/rules/emerging-all.rules

Posted in Linux Shell Scripts | Leave a comment

Vmware ESX preferred Path checker

Feed: Scriptorlog Posted on: Tuesday, April 21, 2009 11:18 AM Author: iRobx Subject: Vmware ESX preferred Path checker The default multipathing option for ESX is ‘Most Recently Used’ (MRU). For some active/active SAN’s however, a fixed path policy is desirable … Continue reading

Posted in Linux Shell Scripts | Leave a comment

Linux backup shell script – tar incrementals

Feed: Scriptorlog Posted on: Thursday, July 05, 2007 8:19 PM Author: iRobx Subject: Linux backup shell script – tar incrementals A simple linux shell script for performing a full monthly system backup then daily incrementals. The script does not do … Continue reading

Posted in Linux Shell Scripts | Leave a comment