summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2012-06-04 13:29:22 +0000
committerNick <nick@somerandomnick.ano>2012-06-04 13:29:22 +0000
commit44c60a6df1a4ceaf658ac689b9cc0882e5085dcd (patch)
treeffb1adbdcf5ff3bb7a998d1589c6034ebcb5d9e0 /contrib
parentc9e501b0a1663a1d8db724c568d0c2b6e9b7cde0 (diff)
downloadresdb-44c60a6df1a4ceaf658ac689b9cc0882e5085dcd.tar.gz
resdb-44c60a6df1a4ceaf658ac689b9cc0882e5085dcd.zip
the contrib scripts they should be in contrib/
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/sevilNatas/as_script11
-rw-r--r--contrib/sevilNatas/subnet_script11
2 files changed, 22 insertions, 0 deletions
diff --git a/contrib/sevilNatas/as_script b/contrib/sevilNatas/as_script
new file mode 100755
index 0000000..f01724b
--- /dev/null
+++ b/contrib/sevilNatas/as_script
@@ -0,0 +1,11 @@
+#!/bin/sh
+# READ ME:
+# If AS# is taken it will return the desired AS#
+# else it will not return the desired AS#
+echo -e "Enter path to resdb:\c"
+read resdb
+cd $resdb
+echo -e "Enter desired AS#:\c"
+read asn
+ls db/as/ | grep "^$asn\$"
+
diff --git a/contrib/sevilNatas/subnet_script b/contrib/sevilNatas/subnet_script
new file mode 100644
index 0000000..378bf04
--- /dev/null
+++ b/contrib/sevilNatas/subnet_script
@@ -0,0 +1,11 @@
+#!/bin/sh
+# READ ME:
+# If subnet is taken it will return the desired AS#
+# else it will not return the desired subnet
+echo -e "Enter path to resdb:\c"
+read resdb
+cd $resdb
+echo -e "Enter desired subnet:\c"
+read subnet
+cat db/ip/01/*/*/cidr | grep "^$subnet\$"
+