source: genesis/tools/oneliners.sh.inc@ 11701

Last change on this file since 11701 was 8646, checked in by rick, 14 years ago
  • reflections of genesis file location move
  • Hack thingy I use for one liner scripts with wleiden foo

Next: holiday :-)

  • Property svn:executable set to *
File size: 724 bytes
Line 
1# Semi usefull hacks to allow quicker scripting on this directories
2# under a bash/sh shell.
3#
4# To use: . one-liners.sh.inc
5
6# Make a big assumption about the genesis tools directory location
7SCRIPTROOT="$HOME/wleiden/node-config/genesis/tools"
8echo $PATH | grep -q $SCRIPTROOT || export PATH="$PATH:$SCRIPTROOT"
9
10alias allnodes='for F in CNode*; do echo $F.wleiden.net.; done'
11alias allproxies='for F in proxy*; do echo $F.wleiden.net.; done'
12
13allwlip() {
14cat */wleiden.yaml | grep " ip" | awk -F "[/']" '{print $2}' | grep 172 | sort -u
15}
16
17allnonwlip() {
18cat */wleiden.yaml | grep " ip" | awk -F "[/']" '{print $2}' | grep -v 172 | sort -u
19}
20
21nodestatus() {
22 nmap -R -oG - -sP `allnodes` `allproxies` | tee status.txt
23}
Note: See TracBrowser for help on using the repository browser.