Changeset 10638 in genesis for tools


Ignore:
Timestamp:
May 1, 2012, 1:46:48 PM (13 years ago)
Author:
rick
Message:

Some more play around commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/batch-cmd

    r10634 r10638  
    3434
    3535##
    36 ## View lvrouted configured flages
     36## View lvrouted configured flags and processes
    3737##
    3838#cat <<'EOF' > /tmp/command
    3939#/usr/local/etc/rc.d/lvrouted rcvar | grep flags
     40#pgrep -fl lvrouted
    4041#EOF
    4142
     
    4344## Restart lvrouted
    4445##
    45 cat <<'EOF' > /tmp/command
    46 sleep 30
    47 nohup /usr/local/etc/rc.d/lvrouted restart
    48 EOF
     46#cat <<'EOF' > /tmp/command
     47#sleep 30
     48#nohup /usr/local/etc/rc.d/lvrouted restart
     49#EOF
    4950
    5051##
     
    7273#EOF
    7374
     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##
     84cat << 'EOF' > /tmp/command
     85traceroute -m 15 -w 1 -q 1 -I rvdzwet.nl
     86EOF
     87
    7488
    7589# Cleanup old entries
Note: See TracChangeset for help on using the changeset viewer.