- Timestamp:
- May 1, 2012, 1:46:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/batch-cmd
r10634 r10638 34 34 35 35 ## 36 ## View lvrouted configured flag es36 ## View lvrouted configured flags and processes 37 37 ## 38 38 #cat <<'EOF' > /tmp/command 39 39 #/usr/local/etc/rc.d/lvrouted rcvar | grep flags 40 #pgrep -fl lvrouted 40 41 #EOF 41 42 … … 43 44 ## Restart lvrouted 44 45 ## 45 cat <<'EOF' > /tmp/command46 sleep 3047 nohup /usr/local/etc/rc.d/lvrouted restart48 EOF46 #cat <<'EOF' > /tmp/command 47 #sleep 30 48 #nohup /usr/local/etc/rc.d/lvrouted restart 49 #EOF 49 50 50 51 ## … … 72 73 #EOF 73 74 75 ## 76 ## Detect routing loops and find out the actual default route 77 ## 78 ## Process output with: 79 ## a) Proxy per host: 80 ## for F in ip-*.txt; do printf "%-20s : %s\n" `echo "$F" | awk -F'[-.]' '{print $2}'` `grep -v '*' $F | tail -1 | awk '{print $2}'`; done 81 ## b) Count per proxy: 82 ## for F in ip-*.txt; do printf "%-20s : %s\n" `echo "$F" | awk -F'[-.]' '{print $2}'` `grep -v '*' $F | tail -1 | awk '{print $2}'`; done | awk '{print $3}' | sed 's/^2[a-z0-9-]*\.//g' | sort | uniq -c 83 ## 84 cat << 'EOF' > /tmp/command 85 traceroute -m 15 -w 1 -q 1 -I rvdzwet.nl 86 EOF 87 74 88 75 89 # Cleanup old entries
Note:
See TracChangeset
for help on using the changeset viewer.