Last change
on this file since 13271 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
|
---|
7 | SCRIPTROOT="$HOME/wleiden/node-config/genesis/tools"
|
---|
8 | echo $PATH | grep -q $SCRIPTROOT || export PATH="$PATH:$SCRIPTROOT"
|
---|
9 |
|
---|
10 | alias allnodes='for F in CNode*; do echo $F.wleiden.net.; done'
|
---|
11 | alias allproxies='for F in proxy*; do echo $F.wleiden.net.; done'
|
---|
12 |
|
---|
13 | allwlip() {
|
---|
14 | cat */wleiden.yaml | grep " ip" | awk -F "[/']" '{print $2}' | grep 172 | sort -u
|
---|
15 | }
|
---|
16 |
|
---|
17 | allnonwlip() {
|
---|
18 | cat */wleiden.yaml | grep " ip" | awk -F "[/']" '{print $2}' | grep -v 172 | sort -u
|
---|
19 | }
|
---|
20 |
|
---|
21 | nodestatus() {
|
---|
22 | nmap -R -oG - -sP `allnodes` `allproxies` | tee status.txt
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.