repo: resdb
action: commit
revision: 
path_from: 
revision_from: e336140e1beae2d0cefc9a0281f182224669a9c4:
path_to: 
revision_to: 
git.thebackupbox.net
resdb
git clone git://git.thebackupbox.net/resdb
commit e336140e1beae2d0cefc9a0281f182224669a9c4
Author: sevil 
Date:   Sun Mar 4 10:07:21 2012 +0000

    scripts: Added scripts to search for desired ASNs and subnets

diff --git a/scripts/as_script b/scripts/as_script
new file mode 100755
index 0000000000000000000000000000000000000000..f01724b22f090ffd750667b53a523fdcc46de6b0
--- /dev/null
+++ b/scripts/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/scripts/subnet_script b/scripts/subnet_script
new file mode 100644
index 0000000000000000000000000000000000000000..378bf04e9c442044d92379a1d8c041675295ca54
--- /dev/null
+++ b/scripts/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\$"
+

-----END OF PAGE-----